RSS

Posts in 2020

  • hugo-page-lastmod

    February 13, 2020 in Hugo

    Use .GitInfo or .Page.Lastmod as last update date in hugo page

    Use .GitInfo or .Page.Lastmod Hugo have build-in support to get the last Git revision information for every content file. To enable Hugo get git commit info, first need change enableGitInfo to true in config.toml: Page.Lastmod is fetched from …

    Read more

  • Add git commit to docker image tag in Azure pipeline

    February 12, 2020 in Azure

    Add git commit to docker image tag in Azure pipeline

    Problem I have Azure devops pipeline to build docker image from source. I want the docker image have the source code revision info like git commit hash. I tried to use Build.SourceVersion as a docker image tag, Build.SourceVersion: The latest …

    Read more

  • Pass var in Azure pipeline

    February 11, 2020 in Azure

    Use variable to pass data in Azure devops pipelines

    I have an Azure devops pipeline and want to pass some data between different tasks. One way to do is use environment var. Variables give you a convenient way to get key bits of data into various parts of the pipeline. As the name suggests, the value …

    Read more

  • Azure WALinuxAgent Backdoor

    February 08, 2020 in Azure

    WALinuxAgent is Azure backdoor with root access. Remove it if you donot use it.

    WALinuxAgent is Azure backdoor with root access. It is pretty powerful to manage Linux on Azure. The source code is host at https://github.com/Azure/WALinuxAgent The Microsoft Azure Linux Agent (waagent) manages Linux provisioning and VM interaction …

    Read more

  • python-cas Flask Example

    February 03, 2020 in CAS

    An example project to demo how to integrate python-cas into a Flask app.

    python-cas is Python CAS (Central Authentication Server) client library support CAS 1.0/2.0/3.0. It was initially split from django-cas-ng to support any Python app to easily implement a CAS client. This post is an example project to demo how to …

    Read more

  • python-cas Release 1.5.0

    January 30, 2020 in CAS Releases

    python-cas 1.5.0 released on 2020-01-30

    python-cas 1.5.0 released on 2020-01-30. Release Notes PR-17: Test and document support for all modern Python versions PR-18: Distribute package as an universal Python Wheel PR-20: README: Link to python.org using HTTPS PR-21: Minor refactor: Prefer …

    Read more

  • django-cas-ng Example

    January 26, 2020 in CAS

    An example project to demo how easy to integrate with django-cas-ng

    django-cas-ng is Django CAS (Central Authentication Service) 1.0/2.0/3.0 client library to support SSO (Single Sign On) and SLO (Single Logout)! To demo how easy to integrate with django-cas-ng, here is an example project to show how to use …

    Read more

  • A Comparison of Django CAS clients

    January 20, 2020 in CAS

    A Compare of Django CAS clients: django-cas-ng, django-cas-client and django-cas

    Here is a comparison of some exist Django CAS clients: django-cas-ng, django-cas-client and django-cas. If you want to add new repo to the following table, please create an issue. Note: Data is fetched in real time and alway up to date. …

    Read more

  • django-cas-ng Release 4.0.0

    January 16, 2020 in CAS Releases

    django-cas-ng 4.0.0 released on 2020-01-16

    django-cas-ng 4.0.0 released on 2020-01-16. Release Notes Break change: Drop python 2.x support Break change: Drop django 1.x support PR-206: New behavior for CAS_USERNAME_ATTRIBUTE setting which will now fallback to setting the specified attribute …

    Read more

  • Sphinx-doc 101

    January 12, 2020 in Posts

    An introduction to sphinx-doc, a documentation tool that makes it easy to create intelligent and beautiful documentation.

    Sphinx is a documentation generator that makes it easy to create intelligent and beautiful documentation. Sphinx was originally created for the Python documentation, then it extend to support many other languages. It use reStructuredText format to …

    Read more