#DocPad Benchmark
In one terminal window run:
git clone git://github.com/docpad/kitchensink.docpad.git docpad-benchmark
cd docpad-benchmark
npm install
docpad run
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\sublime] | |
@="Open Folder with &Sublime Text 2" | |
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command] | |
@="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\" \"%1\"" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime] | |
@="Open Folder with &Sublime Text 2" |
#DocPad Benchmark
In one terminal window run:
git clone git://github.com/docpad/kitchensink.docpad.git docpad-benchmark
cd docpad-benchmark
npm install
docpad run
#!/bin/bash | |
# http://commanigy.com/blog/2012/03/31/a-bash-version-of-keep-releases-known-from-capistrano-ruby-scripts | |
keep_releases=3 | |
#versions=`find ./cwp* -maxdepth 0 -type d -exec echo '{}' +` | |
#versions=`ls -xrt` | |
versions=`find ./cwp* -maxdepth 0 -type d | tac` | |
releases=(${versions// / }) | |
# check available number of versions in releases directory |
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Enable-RemoteDesktop | |
Disable-UAC | |
Disable-MicrosoftUpdate | |
cinst git.install | |
cinst git-credential-winstore | |
cinst console-devel | |
cinst sublimetext2 |
# setup our remotes | |
git remote add all git@myrepo:pathtorepo | |
git remote set-url all --add [email protected]:me/myrepo | |
git remote set-url all --add [email protected]:me/myrepo | |
git remote set-url all --add https://gitlab.cwp.govt.nz/pathtorepo | |
# do work | |
git add . | |
git commit -m "Commiting work" | |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\powershell] | |
@="Open Powershell here" | |
[HKEY_CLASSES_ROOT\Directory\shell\powershell\command] | |
@="C:\\\\WINDOWS\\\\system32\\\\cmd.exe /c start powershell -NoExit -Command Set-Location -LiteralPath '%L'" | |
We prefer to point to our WAMP PHP CLI as our system-wide PHP CLI version, and we do this by | |
including the following script at /usr/local/bin/php: | |
#!/bin/bash | |
# e.g. php="/cygdrive/c/Program Files (x86)/php/php.exe" | |
php="/cygdrive/c/wamp/bin/php/current/php.exe" | |
for ((n=1; n <= $#; n++)); do | |
if [ -e "${!n}" ]; then |
Appropriated from dergachev
This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
// Requires jQuery. | |
// Return every classname in the current document, one per line | |
// (i.e. splitting multiple classnames where they appear) | |
$('*').each( | |
function(i, e) { | |
var classNames = e.className.split(/\s+/); | |
classNames.map(function(className){ | |
console.log(className); | |
}); | |
} |
################################################################################ | |
# Once the following has been added to the .gitconfig and .extra, we can view | |
# all our git aliases by either using | |
# | |
# gla # List git aliases without comments | |
# | |
# galias # List git aliases with comments | |
# | |
# Refer to the following for more information: | |
# https://gist.github.com/mwhite/6887990 |