Skip to content

Instantly share code, notes, and snippets.

View wandernauta's full-sized avatar

Wander Nauta wandernauta

View GitHub Profile
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",
}
### 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:
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);
}
}
<xsl:template>a<![CDATA[</xsl:template>]]>b</xsl:template>
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
<!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 November 30, 2016 16:15
Floating-point Haskell type for use in VW diesel engines
import VWFloat
testResult :: VWFloat
testResult = 214.0
limit :: VWFloat
limit = 200.0
main = do
putStrLn "Emissions within limit?"
Builder: interface <T> {
build: func -> T
}
HelloWorldBuilder: class implements Builder<String> {
init: func {
}
build: func -> String {
"Hello, world!"
@wandernauta
wandernauta / Dockerfile
Created September 21, 2015 21:16
Untested Dockerfile for rock
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 August 27, 2015 13:33
Authenticating Estonian ID cards using Flask and nginx
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>"