I hereby claim:
- I am antonagestam on github.
- I am antonagestam (https://keybase.io/antonagestam) on keybase.
- I have a public key ASAlMX3lP7UfVfGXWkM1XC13pab0Uy3TSbaDmtfzl0-brgo
To claim this, I am signing this object:
// Works in modern browsers + IE9, but Modernizr has a polyfill baked in for function.bind. | |
// Hat tip Paul Irish | |
(function($){ | |
var o = $( {} ); | |
$.subscribe = o.on.bind(o); | |
$.unsubscribe = o.off.bind(o); | |
$.publish = o.trigger.bind(o); | |
})(jQuery); |
function f(){ | |
if [[ $VIRTUAL_ENV != /Users/anton/.virtualenvs/fundedbyme ]]; | |
then | |
workon fundedbyme | |
fi | |
cdvirtualenv | |
} | |
function r(){ | |
f |
for u in User.objects.all(): | |
if u.email not in ['msn@antonagestam.se','appel268576@gmail.com']: | |
u.email = '%s@example.com' % u.username | |
u.save() |
function dev(){ | |
f | |
sass --watch fundedbyme/static/css/sass:fundedbyme/static/css --style compressed & | |
rabbitmq-server -detached & | |
open /Applications/Postgres.app & | |
} |
# … | |
###### AWS SETTINGS | |
AWS_MEDIA_BUCKET_NAME = AWS_MEDIA_CUSTOM_DOMAIN = 'media.mysite.com' | |
AWS_STATIC_BUCKET_NAME = AWS_STATIC_CUSTOM_DOMAIN = 'static.mysite.com' | |
###### END AWS SETTINGS |
\{% url (?!(?:\'|\"))(.*?)( .*?) ?%} |
# Move contents of dir to current dir | |
function level_up(){ | |
temp_name="_$1_temp" | |
mv $1 $temp_name; mv $temp_name/{,.}* .; rmdir $temp_name; | |
} |
osascript -e 'tell application "Spotify" to activate'; | |
sleep 5; | |
osascript -e 'tell application "Spotify" to set shuffling to true'; | |
osascript -e 'tell application "Spotify" to play track "spotify:user:bananatrapp:playlist:4a6RQIxSGXZVvXy6ckDeL5"' |
I hereby claim:
To claim this, I am signing this object:
from https://twitter.com/Viss/status/809168960495063040 | |
$ brew install Caskroom/cask/qlstephen | |
$ defaults write com.apple.finder QLEnableTextSelection -bool TRUE | |
$ killall Finder | |
$ brew install Caskroom/cask/qlcolorcode | |
$ qlmanage -r |