Home

Enabling Minted in Latex

Created on: 3/11/20 Last update: 3/11/20 Minted is a great package for latex users to insert colorful code in the manuscript. But enabling minted in latex might not as easy as other packages. Here are some tips to save your time. Installation & Configuration Note: This guide is based on MacTex. Import package Import the minted package:...

Read more

Changing Default File Permission in Linux

Created on: 2/11/20 Last update: 3/11/20 Change the default permissions for new files umask Check the umask value for the current directory: umask Change the default umask value for the current directory, for example: umask u=,g=w,o=rwx setfacl setfacl -d -m g::rwx . References Set the default permissions for newly created files D...

Read more

CKAN Postgre Database Migration

Created on: 12/4/19 Last update: 12/4/19 The CKAN postgres database might take a lot of spaces in the Linux system. Today I notice the disk of our CKAN system is almost full. So I have to move the entire databse to an external disk. As you know, any modification of database could be dangerous. It takes me whole afternoon to deal with and I rec...

Read more

Upgrading Openssl for Apache on Ubuntu

Created on: 11/21/19 Last update: 11/21/19 Just upgraded the OpenSSL from 1.0.2 to 1.1.1. on a server with Ubuntu 16.04. Install OpenSSL Install required packages sudo apt-get install make Download OpenSSL cd /usr/local wget https://www.openssl.org/source/openssl-1.1.1.tar.gz tar -xvf openssl-1.1.1.tar.gz Compile cd openssl-1.1.1 ./c...

Read more

Ssh Passwordless

http://www.fixedbyvonnie.com/2017/01/ssh-bash-ubuntu-instance-windows-10/#.XcpJ9i2ZM1I https://superuser.com/questions/1111591/how-can-i-ssh-into-bash-on-ubuntu-on-windows-10 http://stupidstuffihadtofix.blogspot.com/2016/08/ubuntu-on-windows-10-getting-openssh.html cat ~/.ssh/id_rsa.pub | ssh <user>@<target_server_ip> "mkdir -p ~/...

Read more

Z Shell (zsh) and Oh My Zsh

Created on: 11/9/19 Last update: 11/9/19 The Bash had been the default shell on macOS for a long time. In the macOS Catalina, Apple replaced Bash with Z Shell (zsh), which is a more modern shell and compatible with Bash. As an open source, community-driven framework to manage zsh configuration, Oh My Zsh makes it very easy for users to make t...

Read more

Managing Packages Using Chocolatey

Created on: 11/9/19 Last update: 11/9/19 It is painful to manage packages on Windows. So I found Chocolatey, which is a command line-based software manager just like Homebrew but for Windows. It is probably the best solution for Windows users who prefer to manage applications in Homebrew way. Installation The Chocolatey can be installed usin...

Read more