Skip to content

Instantly share code, notes, and snippets.

@jbonney
jbonney / pagespeed_url
Created June 9, 2013 11:19
Pagespeed analysis tool from Google. Test speed of website / application and identify how to improve it. https://developers.google.com/speed/pagespeed/insights
https://developers.google.com/speed/pagespeed/insights#url=yourwebsite.com&mobile=false
@jbonney
jbonney / pingdom_url
Created June 9, 2013 11:46
Pingdom Website Speed Test. Test speed of website / application and identify how to improve it. http://tools.pingdom.com/fpt/
http://tools.pingdom.com/fpt/#!/pevip/yourwebsite.com
@jbonney
jbonney / todomvc
Created June 9, 2013 12:34
Javascript MVC / MVVC / MVW framework comparison. Todo application with Backbone, AngularJS, Ember.js, KnockoutJS, Dojo, YUI, JQuery, RequireJS, etc... http://todomvc.com/
http://todomvc.com/
@jbonney
jbonney / spotify_keybindings
Created June 9, 2013 13:22
Spotify - Linux key bindings. From XFCE / Ubuntu keyboard shortcuts configuration, assign the control command to their key. http://shkspr.mobi/blog/2011/12/linux-spotify-keybindings/
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrevious
@jbonney
jbonney / nodejs
Created June 9, 2013 14:45
nodejs and npm (latest version) installation instruction through package manager on Ubuntu 12.04. https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
sudo apt-get update
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
@jbonney
jbonney / html5boilerplate
Created June 10, 2013 17:11
HTML5Boilerplate. HTML5 best practices framework - client and server side setup. http://html5boilerplate.com/
http://html5boilerplate.com/
@jbonney
jbonney / new_gist_file
Created June 10, 2013 21:45
Free high resolution pictures / images. http://unsplash.com/
_
@jbonney
jbonney / websites
Created June 11, 2013 08:52
Network tools (IP address, traceroute, port scanner, http compression, ping, whois, http headers, email, mx, etc...).
http://www.whatsmyip.org/
http://network-tools.com/
http://mxtoolbox.com/
@jbonney
jbonney / unveil.js
Created June 12, 2013 07:19
Unveil.js: Lazy load images with support for serving high-resolution images to devices with retina displays. http://luis-almeida.github.io/unveil/
$(document).ready(function() {
$("img").unveil();
// Alternatively, load images X pixels before they are displayed
//$("img").unveil(X);
});
db1_production:
adapter: mysql2
encoding: utf8
database: db1
username: user_db1
password: mypass
host: localhost
timeout: 5000
db2_production: