Skip to content

Instantly share code, notes, and snippets.

View hmarcelodn's full-sized avatar

Hugo Marcelo Del Negro hmarcelodn

  • Melon Technologies
  • Argentina
View GitHub Profile
@hmarcelodn
hmarcelodn / gist:7417187
Created November 11, 2013 17:43
Gist for bash to remove Ruby installation when it is generated by compiling the binaries. First check you source folder and you will find the .installed.list (doing ls -la for instance).
#!/bin/bash
for line in $(cat /home/developer/ruby-2.0.0-p247/.installed.list); do
if [[ -f $line ]]; then
eval "rm $line"
elif [[ -d $line ]]; then
eval "rm -rf $line"
fi;
done
@jfromaniello
jfromaniello / continous-qunit.ps1
Created August 4, 2011 14:22
The powershell continuously watch for file changes in a directory, then it executes PhantomJs with the Run-Qunit.js attached to your htm qunit test harness.
# watch a file changes in the current directory,
# execute all tests when a file is changed or renamed
$watcher = New-Object System.IO.FileSystemWatcher
$watcher.Path = get-location
$watcher.IncludeSubdirectories = $true
$watcher.EnableRaisingEvents = $false
$watcher.NotifyFilter = [System.IO.NotifyFilters]::LastWrite -bor [System.IO.NotifyFilters]::FileName
while($TRUE){