Skip to content

Instantly share code, notes, and snippets.

View gist:dd457d97e1cf99de2c362d21f2afd4d5
augeas { "add sss to nsswitch":
context => "/files/etc/nsswitch.conf",
changes => [
"set database[. = 'passwd']/service[last()+1] 'sss'",
],
onlyif => "match database[. = 'passwd']/service[. = 'sss'] size == 0",
}
View gist:9d838cc9dba83ba36425d953c47a124b
### Keybase proof
I hereby claim:
* I am wandernauta on github.
* I am wandernauta (https://keybase.io/wandernauta) on keybase.
* I have a public key whose fingerprint is 48B7 5653 600D 17BB A5FF 233D B3DC C8CA BAD3 EEEE
To claim this, I am signing this object:
View Example.java
import com.fasterxml.jackson.databind.ObjectMapper;
public class Example {
public static void main(String[] args) throws Exception {
String jsonInput = "{\"name\": \"Redshirt\", \"phaserToKill\": true}";
new ObjectMapper().readValue(jsonInput, StarfleetEnsign.class);
}
}
View gist:f5c87ddda2b702cc56e0
http://abcde.einval.com/download/abcde-2.7.tar.gz
http://alioth.debian.org/frs/download.php/file/3977/minicom-2.7.tar.gz
http://aphyr.com/riemann/riemann-0.2.9.tar.bz2
http://archive.apache.org/dist/jena/binaries/apache-jena-3.0.1.tar.gz
http://archive.apache.org/dist/jena/binaries/apache-jena-fuseki-2.3.1.tar.gz
http://archive.apache.org/dist/jmeter/binaries/apache-jmeter-2.11.tgz
http://archive.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz
http://archive.mozilla.org/pub/thunderbird/releases/38.6.0/source/thunderbird-38.6.0.source.tar.bz2
http://archives.eyrie.org/software/kerberos/pam-krb5-4.7.tar.gz
http://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-0.8.13.tar.gz
View haha.xml
<!DOCTYPE x [ <!ENTITY y "a]>b"> ]>
<x>
<a b="&y;>" />
<![CDATA[[a>b <a>b <a]]>
<?x <a> <!-- <b> ?> c --> d
</x>
@wandernauta
wandernauta / Main.hs
Last active Nov 30, 2016
Floating-point Haskell type for use in VW diesel engines
View Main.hs
import VWFloat
testResult :: VWFloat
testResult = 214.0
limit :: VWFloat
limit = 200.0
main = do
putStrLn "Emissions within limit?"
View genericinterface.ooc
Builder: interface <T> {
build: func -> T
}
HelloWorldBuilder: class implements Builder<String> {
init: func {
}
build: func -> String {
"Hello, world!"
@wandernauta
wandernauta / Dockerfile
Created Sep 21, 2015
Untested Dockerfile for rock
View Dockerfile
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y git build-essential libpcre3-dev wget
RUN wget https://github.com/fasterthanlime/rock/archive/master.tar.gz && \
tar xvzf master.tar.gz && \
cd rock-master && \
make rescue
ENV PATH /rock-master/bin:$PATH
ENV OOC_LIBS /:/rock-master
CMD ["/bin/bash"]
@wandernauta
wandernauta / app.py
Last active Aug 27, 2015
Authenticating Estonian ID cards using Flask and nginx
View app.py
import re
from flask import Flask, request
app = Flask(__name__)
@app.route("/")
def hello():
dn = request.headers['X-Client']
fields = dict(re.findall("/([^=]*)=([^/]*)", dn))
doctype = "<!doctype html>"
You can’t perform that action at this time.