Skip to content

Instantly share code, notes, and snippets.

View toffebjorkskog's full-sized avatar

Christoffer Björkskog toffebjorkskog

View GitHub Profile
@toffebjorkskog
toffebjorkskog / gist:d7553565761d4bb78cd3bf9791b7d6f2
Last active August 18, 2016 09:48
Kaffe jumppa beskrivning
Måndag
Tisdag
Onsdag
Torsdag - 10 + 10 - Sid-vrid-kyykky-hälsning-med-lyfta-knän
@toffebjorkskog
toffebjorkskog / gist:4635c0775b95ad0a9068
Created January 22, 2015 07:58
Find large folders on a server
cd /
find . -type f -exec du -Sh {} + | sort -rh | head -n 15
@toffebjorkskog
toffebjorkskog / facebook page to tab bookmarklet
Created November 21, 2012 08:24
Bookmarklet for adding facebook page to tab
javascript:(function(){
var app_id = prompt("I can ha aPp id?");
var redirect_url = prompt("I can haz redirect url. ie the site where it is");
var new_url = "https://www.facebook.com/dialog/pagetab?app_id="+app_id+"&display=popup&next=" + redirect_url;
window.top.location = new_url;
}());
@toffebjorkskog
toffebjorkskog / when varnish dies
Created October 16, 2012 07:53
Restart varnish pound and apache, oneliner
sudo sh -c 'killall {varnish,pound,apache2} && service pound restart && service varnish restart && service apache2 restart'
#Thanks to oxyc!
drush sql-dump --result-file="dump_$(date -d now +'%H%m').sql"
@toffebjorkskog
toffebjorkskog / search-mdn-bookmarklet.js
Created December 11, 2011 12:25
Search MDN bookmarklet
javascript:(function (q){
window.location = "http://google.com/?q=" + q + "#q=" + q;
}(prompt("Search MDN") + " site:http://developer.mozilla.org"));