Posts in 2020
-
psql 101
February 20, 2020 in PostgreSQL
psql
is 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 …
-
Azure function Did not find any initialized language workers
February 17, 2020 in Azure
Azure function app random response
500 Internal error
to 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 …
-
hugo-page-lastmod
February 13, 2020 in Hugo
Use
.GitInfo
or.Page.Lastmod
as last update date in hugo pageUse .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 …
-
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 …
-
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 …
-
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 …
-
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 …
-
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 …
-
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 …
-
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. …