- Do you have an Github account? If not create one.
- Install required tool.
- Latest Git Client.
- gpg tools.
# Ubuntu
sudo apt-get install gpa seahorse
_complete_ssh_hosts () | |
{ | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
cut -f 1 -d ' ' | \ | |
sed -e s/,.*//g | \ | |
grep -v ^# | \ | |
uniq | \ | |
grep -v "\[" ; |
# Ubuntu
sudo apt-get install gpa seahorse
#!/usr/bin/env bash | |
usage() { | |
cat <<HERE | |
usage: git make-remote <project-name> | |
or: git make-remote <path/to/project-name> | |
HERE | |
} | |
GIT_SERVER="git.zikes.me" |
a:hover { | |
/* border glow effect on hover */ | |
box-shadow: 0px 0px 20px #000; | |
filter:progid:DXImageTransform.Microsoft.Glow(Color=black,Strength=20); | |
} |
To generate it (from current date/time): | |
`date +%s` | |
Under macOS/BSD, to generate it based a given date: | |
`date -j -f "%d-%M-%Y" 20-12-2016 +%s` | |
And on Linux: |
maintained by Mac-arena the Bored Zo, [email address that no longer works] copyright 2003 Mac-arena the Bored Zo available from [URL no longer works] HTML/PHP version at [URL works but no longer has a mirror] MIRRORS WELCOME! please email me if you want to mirror. some commands submitted by Steve Leopardi [email address deleted], frost, and rajnchaos Linux Cheatsheet IS NOT PUBLISHED BY IDG BOOKS and anyone who says it is is
man() { | |
env \ | |
LESS_TERMCAP_md=$'\e[1;36m' \ | |
LESS_TERMCAP_me=$'\e[0m' \ | |
LESS_TERMCAP_se=$'\e[0m' \ | |
LESS_TERMCAP_so=$'\e[1;40;92m' \ | |
LESS_TERMCAP_ue=$'\e[0m' \ | |
LESS_TERMCAP_us=$'\e[1;32m' \ | |
man "$@" | |
} |
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
I hereby claim:
To claim this, I am signing this object:
This will allow tilde style user directory on nginx:
location ~ ^/~(.+?)(/.*)?$ {
alias /home/$1/www$2;
autoindex on;
}