git v2.0.0
$ cd ~/Desktop
git help branch
man git
- not
man git branch
#! /bin/bash | |
# Timed unlock script. Must be run as root. | |
input=$(zenity --entry --text="Enter directory to be unlocked.") | |
name="$input" | |
thetime="5" | |
unit="m" | |
( | |
counter=0 |
#! /bin/python | |
print "Wadsworth's Constant" | |
theString = raw_input('] ') | |
theStringLength = len(theString) | |
WadsworthsAmount = int(round((0.3) * theStringLength)) | |
firstSpace = theString.find(' ', WadsworthsAmount) | |
if firstSpace == -1: | |
FinalString = theString[WadsworthsAmount:] | |
else: | |
FinalString = theString[firstSpace+1:] |
/* Solarized Dark | |
For use with Jekyll and Pygments | |
http://ethanschoonover.com/solarized | |
SOLARIZED HEX ROLE | |
--------- -------- ------------------------------------------ | |
base03 #002b36 background | |
base01 #586e75 comments / secondary content |
#!/usr/bin/env python2 | |
# Functional Python: reduce, map, filter, lambda, *unpacking | |
# REDUCE EXAMPLE | |
add = lambda *nums: reduce(lambda x, y: x + y, nums) | |
def also_add(*nums): | |
'''Does the same thing as the lambda expression above.''' | |
def add_two_numbers(x, y): |
# replace --with-python-config-dir and --with-lua-prefix with a system-specific directory | |
mkdir -p ~/build | |
cd ~/build | |
hg clone https://vim.googlecode.com/hg/ vim | |
cd vim | |
hg pull | |
hg update | |
# might also need --with-python-config-dir=/usr/lib64/python2.6/config |
sudo kill `sudo lsof -t -i:8000` |
defaults write /Applications/iTerm.app/Contents/Info LSUIElement true |
find . -maxdepth 1 -mindepth 1 -type d | while read dir; do | |
printf "%-25.25s : " "$dir" | |
find "$dir" -type f | wc -l | |
done |