Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
It's delicate ...

Florent Fridus

🤔
It's delicate ...
View GitHub Profile
@Fridus
Fridus / install.sh
Last active Aug 19, 2016
Install wkhtmltopdf
View install.sh
#!/usr/bin/env bash
_UVERSION=${1:-precise}
_WVERSION=0.12.2.1
_WVERSION_M=`echo $_WVERSION | awk -F. '{print $1"."$2}'`
FILENAME="wkhtmltox-${_WVERSION}_linux-${_UVERSION}-amd64.deb"
URL="http://download.gna.org/wkhtmltopdf/${_WVERSION_M}/${_WVERSION}/${FILENAME}"
apt-get update
@Fridus
Fridus / jQuery.getScripts.js
Created Nov 28, 2014
jQuery getScript multiple
View jQuery.getScripts.js
jQuery.getScripts = function(scripts, callback) {
var progress = 0;
var _getScript = function() {
if (progress == scripts.length) { return callback(); }
$.getScript(scripts[progress], function() {
progress++;
_getScript();
});
};
View Default (OSX).sublime-keymap
[
{ "keys": ["super+alt+f"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
{ "keys": ["super+r"], "command": "show_panel", "args": {"panel": "replace"} },
{ "keys": ["super+alt+n"], "command": "clone_file" },
{ "keys": ["ctrl+t"], "command": "side_bar_new_file2" },
{ "keys": ["f2"], "command": "side_bar_rename" },
{ "keys": ["ctrl+alt+f"], "command": "side_bar_find_files_path_containing" },
{ "keys": ["super+shift+h"], "command": "encode_html_entities" }
]