Essential Apps
- SublimeText
- Skype
- Chrome
- Firefox
- Alfred
- iTerm
- Clipmenu
- SizeUp
require_once 'Math/Combinatorics.php'; | |
$combinatorics = new Math_Combinatorics; | |
var_dump($combinatorics->combinations(array( | |
'one' => 'a', | |
'two' => 'b', | |
'three' => 'c', | |
'four' => 'd', | |
), 3)); |
perl -pi -w -e 's/SEARCH_FOR/REPLACE_WITH/g;' *.txt |
ALTER IGNORE TABLE table ORDER BY address ASC ADD UNIQUE KEY 'address' (`address`); |
export PATH=/usr/local/bin:$PATH | |
export PATH=/usr/local/share/python:$PATH | |
export PATH=/usr/local/sbin:$PATH | |
#export PS1="\W \$ " | |
PS1="\[\e[1;96m\]\u@\h:\[\e[1;93m\] \w \[\e[1;96m\]\@\n\$\[\e[0m\] " | |
export LANG="en_US.UTF-8" | |
export LC_COLLATE="en_US.UTF-8" | |
export LC_CTYPE="en_US.UTF-8" |
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
"\e[C": forward-char | |
"\e[D": backward-char | |
set show-all-if-ambiguous on | |
set completion-ignore-case on |
Const ForReading = 1, ForWriting = 2, ForAppending = 8 | |
Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0 | |
Dim fso, startFolder, folder, files, lines | |
Set fso = CreateObject("Scripting.FileSystemObject") | |
startFolder = fso.GetAbsolutePathName(".") | |
Set folder = fso.GetFolder(startFolder) | |
Set files = folder.Files |
set autoindent | |
set const | |
set fill 80 | |
unset nonewlines | |
set smooth | |
set tabsize 4 | |
set tabstospaces | |
set smarthome | |
include ~/.nano/apacheconf.nanorc |
Essential Apps
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%} git:" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" | |
ZSH_THEME_HG_PROMPT_PREFIX="%{$fg[green]%} hg:" | |
ZSH_THEME_HG_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_HG_PROMPT_DIRTY=" %{$fg[red]%}⚡" | |
ZSH_THEME_HG_PROMPT_CLEAN="" |
set -e | |
set -x | |
sudo aptitude update | |
sudo aptitude upgrade -y | |
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f2) | |
do | |
sudo npm -g install "$package" |