RSS

Posts in 2019

  • Setup a Git Server over SSH

    in Git

    Setting up a Git service running over SSH.

    Plan server Like GitHub, I want to have git url like git@example.com:repos/myrepo.git, so I can clone as: $ git clone git@example.com:repos/myrepo.git Create git user To do this, I need create a user named git on my Linux server: $ sudo useradd -m …

    Read more

  • Git quick reference

    Last Update: in Git

    Git quick reference for daily work

    Why Git Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. help git help outline the most common use git commands. $ git help usage: …

    Read more

  • npm publish

    in npm

    Tips on contributing packages to npm registry by npm publish, how to reduce package size, how to use scoped package, how to debug package locally etc.

    Reduce package size Use files field in package.json to specific installed files The optional files field is an array of file patterns that describes the entries to be included when your package is installed as a dependency. File patterns follow a …

    Read more

  • Configure Debian startup services

    in Linux

    Configure debian start up services with sysv-rc-conf.

    I used to use chkconfig to configure which service to run at system start up. With my Raspberry Pi running based on Debian distribution, there is no chkconfig 😔. The replacement for Debian is sysv-rc-conf: Run-level configuration for SysV like init …

    Read more

Posts in 2018

  • Integrate with Django admin site

    in CAS

    Integrate django-cas-ng with Django admin site authentication

    Problem I’m using django-cas-ng framework to authenticate users. The main problem is that the admin page still uses the default login view. Methods used this far: 1.- Using env var From docs: CAS_ADMIN_PREFIX: The URL prefix of the Django …

    Read more

  • CAS Single Logout (SLO)

    Last Update: in CAS

    How CAS single logout (SLO) works?

    SLO Overview NOTE: Single Logout (SLO) need CAS Server support. With Single Logout (SLO), user gets logged out not only from the CAS Server, but also from all visited CAS client applications. django-cas-ng proudly support SLO since release 3.5.0. The …

    Read more

  • CAS History

    in CAS

    CAS (Central Authentication Server) Protocol History

    CAS is a simple central authentication server protocol. It was initially conceived and developed by Shawn Bayern of Yale University Technology and Planning. It was later maintained by Drew Mazurek at Yale. CAS 1.0 implemented single-sign-on. CAS 2.0 …

    Read more

  • CAS 101

    Last Update: in CAS

    A brief introduction to CAS (Central Authentication Service) key conceptions and flows to newbie. login flow, logout flow, ticket validation etc.

    CAS Introduction The Central Authentication Service (CAS) is a single-sign-on / single-sign-off protocol for the web. It permits a user to access multiple applications while providing their credentials (such as userid and password) only once to a …

    Read more

Posts in 0001

  • What's new in SwiftUI iOS 16.4 beta 2

    Last Update: in iOS

    What’s new in SwiftUI iOS 16.4 beta 2: new view modifiers, navigation fixes etc.

    iOS & iPadOS 16.4 Beta 2 Released on Feb 28, 2023. Here is what’s the change on SwiftUI. New Features in SwiftUI iOS 16.4 beta 2 A family of new view modifiers lets you build even richer resizable sheet experience with SwiftUI. Use these …

    Read more