ssh

– ssh without password
– ssh to specific directory

Details

random choice

– make a random choice from a list

Details

directory

– get script’s running directory

Details

dirname

– get current path

Details

netstat

– get process & port mapping

Details

types

– get typename

Details

customize

– page template
– colorful tag cloud

Details

basename

– remove path, keep name

Details

media elements

– audio player

Details

shortcut

– delete whole line backward
– delete one word backward
– delete one character backward

Details

git commands

– get file list in recent commits
– check commit history of a specific file
– check changes of a specific commit

Details

admin

– backup mysql database

Details

tips

– path to iCloud drive
– enable airdrop with ethernet

Details

chrome extensions

– setup proxy
– cilp to evernote
– reload chrome tabs
– image downloader

Details

commands

– alias
– redirect stderr to stdout

Details

rsync

– tutorial
– run as a daemon

Details

crontab

– crontab format

Details

sublime text

– config
– packages

Details

string operation

– remove a certain character from a string
– replace a certain character inside the string

Details

find info

– check memory
– check cpu
– check dns

Details

config

– installation

Details

modules

– parse parameters easily
– enrich keyboard interaction
– print colorful text

Details

centos

– setup yum repo
– yum usage
– disable firewall and selinux
– localectl usage
– systemctl usage

Details

config

– config maximum upload size
– remove the toolbar for all users
– configure a site in localhost
– fix the “Error: The password field is empty”

Details

rpm

– check files inside the rpm file
– check the pre / post scripts

Details

firefox

– open multiple tabs
– set default page to current date

Details

arguments

– command itself
– input arguments
– skip the 1st param
– judge if argument exists

Details

config

– set system locale

Details

mail

– sending mails using mail command

Details

array

– define an array
– get the length of the array
– put lines into an array

Details

while read

– extract text line by line

Details

tools

– create isolated Python environments
– specify version for pip to install a package
– specify a customized pip repo
– setup proxy for pip

Details

arguments

– check if an argument exists

Details

clearcase

– remove a dynamic view
– remove a version
– find currently used view

Details

simplify routines

– save security credentials
– auto login into user account

Details

tcpdump

– basic usages
– references

Details

uname

– check 32 or 64 bit kernel

Details

eval

– run command from a string

Details

du

– print total size of a directory
– print sizes of all sub-directories

Details

config

– multiple domain names
– virtual servers

Details

ubuntu

– change apt-get repository
– check release version

Details

config

– rc file

Details

cut

– print specific field

Details

advanced comparison

– check variable in a list

Details

for loop

– decompress files inside a dir
– for loop within a range

Details

find

– ignore case when searching files

Details

echo

– print special character
– print string without the new line
– change color of output text

Details

awk

– awk syntax
– print the last 2 fields
– print the first to the last fields
– search with regular expression

Details

sed

– remove leading space and tab
– add an empty line for each line
– delete empty lines
– extract integer from a string
– print lines from file
– directly update file
– frequently used commands

Details

grep

– caculate char’s occurance
– ignore the matching items
– recursively look for files containing a string
– parsing xml element
– include or condition

Details
X