Skip to content

Instantly share code, notes, and snippets.

View lluchs's full-sized avatar

Lukas Werling lluchs

  • Karlsruhe, Germany
View GitHub Profile
@lluchs
lluchs / test_runtimejoin.py
Created November 5, 2017 21:28
Script for automatically testing OpenClonk runtime join
#!/usr/bin/env python3
import pexpect
import os
import sys
import time
openclonk = './openclonk-server'
#scenario = 'planet/Tests.ocf/Minimal.ocs'
@lluchs
lluchs / builder.rs
Last active November 14, 2020 10:57 — forked from anonymous/playground.rs
Rust builder pattern with lifetime on struct
struct Foo;
struct FooBuilder<'a> {
foo: &'a Foo,
}
impl Foo {
fn build(&self) -> FooBuilder {
FooBuilder { foo: &self }
}
}
@lluchs
lluchs / PKGBUILD
Last active January 25, 2016 16:11
curlftpfs Arch package
# $Id: PKGBUILD 97936 2013-10-01 16:49:40Z bpiotrowski $
# Maintainer: Chris Brannon <[email protected]>
# Contributor: Allan McRae <[email protected]>
# Contributor: Philip Nilsson <[email protected]>
pkgname=curlftpfs
pkgver=0.9.2
pkgrel=6
pkgdesc="A filesystem for acessing FTP hosts based on FUSE and libcurl."
url="http://curlftpfs.sourceforge.net/"
@lluchs
lluchs / .SRCINFO
Last active January 19, 2016 16:45
openclonk PKGBUILD
# Generated by mksrcinfo v8
# Tue Jan 19 15:49:56 UTC 2016
pkgbase = openclonk
pkgdesc = Multiplayer-action-tactic-skill game
pkgver = 7.0
pkgrel = 3
url = http://openclonk.org
install = openclonk.install
arch = i686
arch = x86_64
@lluchs
lluchs / rvn.c
Created November 24, 2015 19:10
#include <stdio.h>
#include <string.h>
/* Calculates the cross sum of a non-negative integer a. */
int qsum(int a)
{
if (a < 10) return a;
return (a % 10) + qsum(a / 10);
}
#!/bin/zsh
set -e
utf8() {
iconv -f ISO-8859-1 -t UTF-8 $1 > $1.tmp
mv $1.tmp $1
}
files=($(find -name '*.txt' | xargs file | grep ISO-8859 | sed 's/:.*//'))
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>~/src/wren/example/syntax.wren.html</title>
<meta name="Generator" content="Vim/7.4">
<meta name="plugin-version" content="vim7.4_v1">
<meta name="syntax" content="wren">
<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=">
<meta name="colorscheme" content="gruvbox">
@lluchs
lluchs / nginx-uberspace.md
Last active January 3, 2020 18:14
nginx auf dem Uberspace

nginx auf dem Uberspace

Installation

Lade die neueste "mainline"-Version (hier 1.7.9) von http://nginx.org/en/download.html herunter und entpacke sie:

$ wget http://nginx.org/download/nginx-1.7.9.tar.gz 
$ tar xf nginx-1.7.9.tar.gz
@lluchs
lluchs / imagus.json
Last active August 29, 2015 14:10
Imagus sieve definition for mwforum attachments
{
"mwforum": {
"link": "/attach_show.pl\\?aid=\\d+$",
"res": ":\nreturn new DOMParser().parseFromString($._, 'text/html').querySelector('.ims > img').src"
}
}
@lluchs
lluchs / keybase.md
Created July 15, 2014 19:45
Keybase proof

Keybase proof

I hereby claim:

  • I am lluchs on github.
  • I am luchs (https://keybase.io/luchs) on keybase.
  • I have a public key whose fingerprint is 1487 D617 520E 799D FC7D A2E7 9E0C A84A D471 92E5

To claim this, I am signing this object: