Skip to content

Instantly share code, notes, and snippets.

View dolanor's full-sized avatar

Tanguy ⧓ Herrmann dolanor

  • Strasbourg, France
View GitHub Profile
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
@dolanor
dolanor / import_cacert_java.sh
Created October 16, 2014 10:10
Import CACert root and class3 certificate to the java keystore with keytool
# From http://wiki.cacert.org/FAQ/ImportRootCert#Java
curl -O http://www.cacert.org/certs/root.crt
curl -O http://www.cacert.org/certs/class3.crt
sudo keytool -keystore /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/cacerts -import -trustcacerts -v -alias cacertclass1 -file root.crt
sudo keytool -keystore /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/cacerts -import -trustcacerts -v -alias cacertclass3 -file class3.crt
@dolanor
dolanor / base_epigraphy.kml
Created February 16, 2015 23:28
kml import
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:ns2="http://www.google.com/kml/ext/2.2" xmlns:ns3="http://www.w3.org/2005/Atom" xmlns:ns4="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">
<Document>
<Schema name="base_epigraphy_1" id="base_epigraphy_1">
<SimpleField type="string" name="Noms"/>
<SimpleField type="string" name="références"/>
<SimpleField type="string" name="Lieu/cité"/>
<SimpleField type="string" name="INSEE"/>
<SimpleField type="string" name="coord. X"/>
<SimpleField type="string" name="coord.Y"/>
@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();
#!/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 / .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]