most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| #!/bin/bash | |
| # Idea and interface taken from https://github.com/macmade/host-manager | |
| path="/etc/hosts" | |
| addusage="Usage: `basename $0` -add host address" | |
| remusage="Usage: `basename $0` -remove host" | |
| case "$1" in | |
| -add) | |
| if [ $# -eq 3 ]; then | |
| if [[ -n $(grep "^$3.*[^A-Za-z0-9\.]$2$" ${path}) ]]; then |
| This playbook has been removed as it is now very outdated. |
Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.
| /etc/init.d/<servicename>: | |
| # chkconfig: 345 20 80 | |
| # description: my service | |
| 345 - 3,4,5 runlevels | |
| 20 - start priority | |
| 80- stop prioroty |
| sudo apt-get update && sudo apt-get upgrade -y; | |
| sudo apt-get build-dep -y libqt4-gui libqt4-network libqt4-webkit; | |
| sudo apt-get install -y openssl build-essential xorg git git-core libssl-dev libxrender-dev t1-xfree86-nonfree xfonts-scalable ttf-ubuntu-font-family ttf-mscorefonts-installer poppler-utils libqt4-dev qt4-dev-tools; | |
| cd ~; | |
| git clone git://gitorious.org/~antialize/qt/antializes-qt.git wkhtmltopdf-qt; | |
| git clone git://github.com/antialize/wkhtmltopdf.git wkhtmltopdf; | |
| cd wkhtmltopdf; | |
| qmake-qt4; | |
| cd ../wkhtmltopdf-qt; | |
| git checkout 4.8.4; |
| (function() { | |
| var CSSCriticalPath = function(w, d, opts) { | |
| var opt = opts || {}; | |
| var css = {}; | |
| var pushCSS = function(r) { | |
| if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
| var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
| for(var i = 0; i < styles.length; i++) { | |
| if(!!styles[i] === false) continue; | |
| var pair = styles[i].split(": "); |
| <?php | |
| /** Full path to project dir on host */ | |
| isset($_SERVER['HOST_DIR']) or $_SERVER['HOST_DIR'] = realpath(__DIR__ . '/../../'); | |
| /** Full path to vagrant directory on host */ | |
| $_SERVER['VAGRANT_DIR'] = $_SERVER['HOST_DIR'] . '/vagrant'; | |
| /** Full path to project dir on virtual machine */ | |
| $_SERVER['GUEST_DIR'] = '/path/to/project/on/vm'; |
| // 1. Go to page https://www.linkedin.com/settings/email-frequency | |
| // 2. You may need to login | |
| // 3. Open JS console | |
| // ([How to?](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers)) | |
| // 4. Copy the following code in and execute | |
| // 5. No more emails | |
| // | |
| // Bookmarklet version: | |
| // http://chengyin.github.io/linkedin-unsubscribed/ |