Skip to content

Instantly share code, notes, and snippets.

View beathorst's full-sized avatar
🐢

Janek Rüßmann beathorst

🐢
View GitHub Profile
@beathorst
beathorst / mysql gzip
Created September 14, 2017 07:42
mysql gzip
mysqldump -u [USERNAME] -p[PASSWORD] -h [HOST] [DATABASE] | gzip > [DBFILENAME].sql.gz
zcat [DBFILENAME].sql.gz | mysql -u [USERNAME] -p[PASSWORD] -h [HOST] [DATABASE]
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
@beathorst
beathorst / ish-bookmarklet.js
Created November 18, 2015 09:38 — forked from mremco/ish-bookmarklet.js
Bookmarklet that opens the current page into Brad Frost's ish. viewport resizing tool (http://bradfrostweb.com/demo/ish/). Ish. is opened in a new tab.
Standard mode:
javascript:var current_location=document.URL; var load=window.open('http://bradfrostweb.com/demo/ish/?url='+encodeURIComponent(current_location));
Open in disco mode!
javascript:var current_location=document.URL; var load=window.open('http://bradfrostweb.com/demo/ish/?url='+encodeURIComponent(current_location)+'#disco');