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 / chaincode_query.go
Created February 20, 2017 11:52
Query some HyperLedger chaincode from Go
package main
import (
"fmt"
"github.com/hyperledger/fabric/peer/chaincode"
pb "github.com/hyperledger/fabric/protos/peer"
)
func main() {
@dolanor
dolanor / volumetric-clouds.glsl
Created September 30, 2016 11:09
Volumetric clouds GLSL webGL
// Created by inigo quilez - iq/2013
// License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
// Volumetric clouds. It performs level of detail (LOD) for faster rendering
float noise( in vec3 x )
{
vec3 p = floor(x);
vec3 f = fract(x);
f = f*f*(3.0-2.0*f);
@dolanor
dolanor / wait.sh
Created August 3, 2016 10:42
A wait script that will return the list of the return code for a list of pid that we want to wait on
#!/bin/bash
# to get pids, you can just do a
# myprocess &
# pids+="$! "
pids="$@"
rets=""
for i in $pids
do
@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 / 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 / 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
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 / .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]
@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
ca marche