Skip to content

Instantly share code, notes, and snippets.

View filebeat.yml
output:
logstash:
enabled: true
hosts:
- elk:5044
tls:
certificate_authorities:
- /etc/pki/tls/certs/logstash-beats.crt
timeout: 15
View keybase.md

Keybase proof

I hereby claim:

  • I am schabernack on github.
  • I am nicolasmneu (https://keybase.io/nicolasmneu) on keybase.
  • I have a public key whose fingerprint is D068 AD45 7872 1D18 D5A9 9A0F 9EE8 4F2A 38C4 0662

To claim this, I am signing this object:

View gist:46987782e88d1deec277
using ghostscript, preinstalled by default on osxx
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf source1.pdf source2.pdf source3.pdf etc.pdf
View gist:2466201
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Uhr</title>
</head>
<script type="text/javascript">
function getTime(){
date = new Date();
h = date.getHours();
View gist:2466195
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Uhr</title>
</head>
<script type="text/javascript">
function Set(valuestring){
this.mengenwerte = new Array();
@Schabernack
Schabernack / ps_plot.py
Created Nov 24, 2011
Plot csv files for ps
View ps_plot.py
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import csv
files=[ "l1dsize.csv","l1dassoc.csv", "l2uassoc.csv", "l2usize.csv", "l3uassoc.csv", "l3usize.csv", "lsize.csv"]
for filename in files:
with open(filename, 'r') as csvfile:
View nw.java
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
public class needlemanwunsch {
public static int D= 1;
public static int MATCH = 2;
public static int MISMATCH = 0;
View gist:729191
import java.util.Arrays;
public class alignment {
public static int D= 1;
public static int MATCH = 2;
public static int MISMATCH = -1;
public static void main(String[] args){
View gist:719089
import java.util.Arrays;
public class alignment {
public static int D= 1;
public static int MATCH = 2;
public static int MISMATCH = -1;
public static void main(String[] args){
View gist:280251
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
typedef struct
{
unsigned short telefonNummer;