Skip to content

Instantly share code, notes, and snippets.

View dolanor's full-sized avatar

Tanguy ⧓ Herrmann dolanor

  • Strasbourg, France
View GitHub Profile
@dolanor
dolanor / gist:1196087
Created September 5, 2011 22:41
Fix the icons not showing in menu (in eclipse, on the right click on nautilus) on GNOME 2.28+ (Ubuntu 10.10+)
gconftool-2 --type boolean --set /desktop/gnome/interface/menus_have_icons true
// Instead of this
std::string s("19991217T151515");
ptime t = from_iso_string(s);
std::cout << t << std::endl;
// Use this
time_input_facet* input_facet = new time_input_facet();
input_facet->set_iso_extended_format();
@dolanor
dolanor / README.md
Created November 22, 2012 10:16
Apache2 configuration for multiple subdomains pointing to different local ports with SSL

#Apache2 and bind configuration for subdomain for each web application running on different port

#!/bin/bash
DRIVER=/usr/lib/fglrx/xorg/modules/drivers/fglrx_drv.so
echo "Come on AMD!"
for token in $DRIVER; do
echo "Removing AMD logo from "$token
for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do
sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER
done
done
echo "Reboot computer to finish"
@dolanor
dolanor / org.eclipse.cdt.ui.prefs
Created February 11, 2013 14:28
My semanticHighlighting configuration of eclipse CDT (I just copy pasted the semanticHighlighting part)
semanticHighlighting.staticMethod.color=255,136,0
semanticHighlighting.localVariableDeclaration.color=94,94,94
semanticHighlighting.localVariableDeclaration.enabled=true
semanticHighlighting.method.enabled=true
semanticHighlighting.localVariable.color=94,94,94
semanticHighlighting.macroDefinition.color=247,0,0
semanticHighlighting.macroDefinition.bold=true
semanticHighlighting.enumerator.color=33,97,225
semanticHighlighting.externalSDK.italic=true
semanticHighlighting.staticField.underline=true
ca marche
@dolanor
dolanor / gist:5695732
Created June 3, 2013 01:50
Optimize a pdf file for printing (got a 45MB file down to 300KB)
ps2pdf -dPDFSETTINGS=/prepress input-file.pdf output-file.pdf
@dolanor
dolanor / .gitconfig
Last active December 25, 2015 14:39
[alias]
l = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s%Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
la = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
ci = commit -m
s = status -s --untracked=no
dc = diff --color=auto
dw = diff --color-words
co = checkout
b = branch
[core]
body {
-webkit-font-smoothing:antialiased;
font:normal .8764em/1.5em HelveticaNeue-Light,Helvetica,Arial,sans-serif;
margin:0;
}
html > body {
font-size:1em;
padding:1em;
}
@dolanor
dolanor / gist:eebab398ee3cc3d5a044
Created October 9, 2014 21:03
Error with deisctl installer
$ curl -sSL http://deis.io/deisctl/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1773k 100 1773k 0 0 500k 0 0:00:03 0:00:03 --:--:-- 525k
Verifying archive integrity... All good.
Uncompressing Deis Control Utility 100% Extraction failed.
Terminated