Posts in 2019
-
tcp_tw_recycle No such file or directory
September 15, 2019 in Linux
Troubleshooting setting
net.ipv4.tcp_tw_recycle = 0
in/etc/sysctl.conf
caused error: sysctl: cannot stat /proc/sys/net/ipv4/tcp_tw_recycle: No such file or directoryWhat is net.ipv4.tcp_tw_recycle Per Linux kernel document networking/ip-sysctl.txt: tcp_tw_recycle - BOOLEAN Enable fast recycling TIME-WAIT sockets. Default value is 0. It should not be changed without advice/request of technical experts. This …
-
Huge improve TCP performance by BBR
September 10, 2019 in Linux
Huge improve Linux network performance by change TCP congestion control to BBR (Bottleneck Bandwidth and RTT).
What is BBR BBR is Bottleneck Bandwidth and RTT. BBR congestion control computes the sending rate based on the delivery rate (throughput) estimated from ACKs. BBR was contributed to Linux kernel 4.9 since 2016 by Google. BBR has significantly …
-
Upgrade jessie to buster
September 09, 2019 in Raspberry Pi
Upgrade existing jessie to buster without re-image on Raspberry Pi, there is no data loss during upgrade. In-place upgrade.
How to do in-place upgrade I have a old Raspberry Pi 3 running for many years, it still running on jessie and everything goes well, except I want to install some software which does not exist on jessie. Since jessie, there are two major releases …
-
Secure Squid Proxy Server
August 25, 2019 in Linux
Install and quick configure squid to make it securely
Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Installation Install on Mac with brew $ brew install squid ==> …
-
OAuth2 101
August 15, 2019 in OAuth2
Introduction to OAuth2 Protocol
What is OAuth2 OAuth 2.0 focuses on client developer simplicity while providing specific authorization flows for web applications, desktop applications, mobile phones, and living room devices. This specification and its extensions are being developed …
-
Setup a Git Server over SSH
July 07, 2019 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 …
-
Git quick reference
July 06, 2019 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: …
-
npm publish
June 12, 2019 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 …
-
Configure Debian startup services
March 02, 2019 in Linux
Configure debian start up services by
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 …
Posts in 2018
-
django-cas-ng Release 3.6.0
November 23, 2018 in django-cas-ng Releases
django-cas-ng 3.6.0 released on 2020-01-16
django-cas-ng 3.6.0 released on 2018-11-23. This is the last release to support Django 1.x and Python 2.7. 3.5.0 to 3.6.0 There are some break changes between 3.5.0 and 3.6.0. Please refer to https://github.com/django-cas-ng/django-cas-ng/issues/191 …