Skip to content

Instantly share code, notes, and snippets.

@rudylattae
rudylattae / polychrome.sh
Created November 24, 2012 20:57
polychrome.sh
#!/bin/sh
if [ -z "$1" ]; then
echo "Usage: $0 profile_name"
exit 1
fi
PROFILE_NAME="$1"
GOOGLE_CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
USER_DIR="/Users/$USER/Library/Application Support/Google/Chrome/${PROFILE_NAME}"
exec "$GOOGLE_CHROME" \
@rudylattae
rudylattae / npm-debug.log
Created November 4, 2013 16:25
Log output of failed attempt to install grunt-contrib-testem
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'grunt-contrib-testem' ]
2 info using npm@1.3.11
3 info using node@v0.10.21
4 verbose node symlink C:\Program Files\nodejs\\node.exe
5 warn package.json borked@0.0.1 No repository field.
6 warn package.json borked@0.0.1 No README data
var ourl = (function () {
function ourl(url) {
url = url || window.location.href;
return new ObjectifiedUrl(url);
};
ourl.parse = parseUrl;
var MicroEvent = function(){};
MicroEvent.prototype = {
bind : function(event, fct){
this._events = this._events || {};
this._events[event] = this._events[event] || [];
this._events[event].push(fct);
},
once: function(event, fct){
var wrapped = function() {
this.unbind(event, fct);
@rudylattae
rudylattae / Basic-Powershell-Profile.ps1
Last active February 16, 2020 02:18
Powershell Profile
function Edit-Profile {
code $profile.CurrentUserAllHosts
}
function Edit-GitConfig {
code $HOME/.gitconfig
}
Function Touch-File
{