Colored log output
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
And every time you need to see your log, just type in
git lg
#spBothColumnsTeaser { | |
border: none; | |
} | |
#spBoxColumn { | |
background-color: #ffffff; | |
} | |
#spBreadcrumb { | |
border-style: none; |
find . -type f -iname '*.flac' | while read FILE; do FILENAME="${FILE%.*}"; flac -cd "$FILE" | lame -q 0 --vbr-new -V 0 - "${FILENAME}.mp3" && rm "${FILENAME}.flac"; done |
recentcp() { find `pwd` -mindepth 1 -maxdepth 1 -type d -mtime "${1}" -exec cp -rn -t "${2}" {} +; } |
#! /bin/sh | |
export EXTERNAL_STORAGE=/mnt/storage | |
PYTHONPATH=/mnt/storage/com.googlecode.pythonforandroid/extras/python | |
PYTHONPATH=${PYTHONPATH}:/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6/lib-dynload | |
export PYTHONPATH | |
export TEMP=/mnt/storage/com.googlecode.pythonforandroid/extras/python/tmp | |
export PYTHON_EGG_CACHE=$TEMP | |
export PYTHONHOME=/data/data/com.googlecode.pythonforandroid/files/python | |
export LD_LIBRARY_PATH=/data/data/com.googlecode.pythonforandroid/files/python/lib |
Colored log output
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
And every time you need to see your log, just type in
git lg
Anecdotally, Using NFS with Vagrant / Virtualbox instead of the default Virtualbox shared folder speeds up things drastically. Add the following line in your Vagrantfile to test it out:
config.vm.share_folder "/vagrant", "/vagrant", "./", :nfs => true
Also, tweaking the DNS settings seems to help:
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "off"]
### Linux ### | |
.* | |
!.gitignore | |
!.git* | |
*~ | |
### Windows ### | |
# Windows image file caches | |
Thumbs.db |
#!/bin/bash -e | |
# install silverstripe + common modules from github | |
# usage sh install_silverstripe.sh <folder_name> <tag/branch> | |
# examples: | |
# sh install_silverstripe.sh some_folder tags/2.4.5 | |
# sh install_silverstripe.sh some_folder master | |
#set up project base folder | |
git clone [email protected]:silverstripe/silverstripe-installer.git "$1" |
SUBSYSTEM=="leds", RUN+="/bin/sh /sbin/thinklight_permissions" |