Skip to content

Instantly share code, notes, and snippets.

@tmcls
tmcls / UpdateCSS.js
Created August 24, 2012 08:17
Run this jQuery script to update your css. Be creative and create a bookmarklet from it ;-)
$("link[rel=stylesheet]").each(function(){
var url = $(this).attr('href');
url = url.replace(/\?tcnc=\d+/,'').replace(/\&tcnc=\d+/,'');
url += (url.indexOf('?')>0 ? '&' : '?') + 'tcnc=' + (new Date()).getTime();
$(this).attr('href', url);
console.log('[UPDATED CSS] '+ url);
});
@tmcls
tmcls / .bash_profile
Created August 31, 2011 09:10
Ultimate Bash
# Git completion: https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion
source ~/.git-completion.sh
# Git Flow completion: https://github.com/bobthecow/git-flow-completion
source ~/.git-flow-completion.sh
# Make the PS1 beter
PS1='\e[0;34m\][\t] \e[0;32m\]\u@\h \w`__git_ps1`:\e[0m\] \[\033]0;\h: \W\007\]'
# Aliases