Posts in 2020
February 20, 2020 in PostgreSQL
psqlis a terminal-based front-end to PostgreSQL. It enables you to type in queries interactively, issue them to PostgreSQL, and see the query results. Alternatively, input can be from a file.
psql shell command List exist databases $ psql --list List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges ------------------------+-------+----------+-------------+-------------+------------------- dvdrental | dbch | UTF8 …
February 17, 2020 in Azure
Azure function app random response
500 Internal errorto client. log indicate Azure function: Did not find any initialized language workers.
Symptom We deployed a very simple Azure function with nodejs runtime, on an Linux container. However after deployment, the service is not stable stable, it goes up and down, server random response 500 Internal error to client. From Azure's log, it …
February 13, 2020 in Hugo
.Page.Lastmodas 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 …
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 …
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 …
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 …
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 …
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 …
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 …
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. …