Skip to content

Instantly share code, notes, and snippets.

View jmeyo's full-sized avatar
👸
Focusing

Jean-Christophe Meillaud jmeyo

👸
Focusing
View GitHub Profile
# I managed to get the compiled version with patched QT working on ubuntu precise 64bit (12.04 LTS) and thought I'd share my bash history in the hopes it might spare others some trouble shooting.
# Also note that this install process takes rather long, you might want to consider running it in a screen or something
# you will be needing git if you haven't got it yet
sudo apt-get install git-core
# as per installation instructions, install dependencies for wkhtmltopdf
sudo apt-get install openssl build-essential xorg libssl-dev libxrender-dev
# clone the repo
git clone git://github.com/antialize/wkhtmltopdf.git wkhtmltopdf
@jmeyo
jmeyo / view_daflash.sh
Last active August 29, 2015 13:56
Watch streamed videos from chromium with VLC (Youtube/Dailymotion or any Streaming platform) (from https://github.com/beaudev/view-da-flash/blob/master/view_da_flash.sh)
#!/bin/bash
# That function could be added to your bash_profile for example
# send all the current videos loaded in your chromium browser or in Firefox into a vlc instance byt calling at any time "view_daflash"
view_daflash(){
SAVE_IT=
com_func_file=$( dirname "${BASH_SOURCE[0]}" )/common_functions.sh
if [ ! -f ${com_func_file} ]; then
curl -sSL https://raw.github.com/jmeyo/CommonBashScripts/master/common_functions.sh >${com_func_file}
@jmeyo
jmeyo / gist:8864822
Last active August 29, 2015 13:56
Update apache after upgrading Ubuntu to 13.10

Apache 2.4 now use .conf files for vhost, so you need to upgrade your old vhost

for name in `ls /etc/apache2/sites-available|grep -v conf`;do 
    sudo mv /etc/apache2/sites-available/$name /etc/apache2/sites-available/$name.conf ;
done
@jmeyo
jmeyo / favicon.sh
Last active December 31, 2015 01:29 — forked from lavoiesl/favicon.sh
#!/bin/bash
# Converts an image in a multi-resolution favicon
# Requires Imagemagick
function generate_favicon() {
command -v convert >/dev/null 2>&1 || (echo "Imagemagick not here, install it" && return )
case "$#" in
"0")
echo "Usage: $FUNCNAME input.png output.ico"