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 / 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
#!/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 / 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

// 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 / 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