Skip to content

Instantly share code, notes, and snippets.

@migerh
migerh / 4min-admin-guide-test.md
Last active April 9, 2019 16:56
markdown test stuff
@migerh
migerh / Dockerfile
Created September 7, 2018 20:00
hello gitlab registry
FROM node:10
COPY hello.js /
CMD ["node", "/hello.js"]
@migerh
migerh / converge.js
Last active August 10, 2018 19:41
ramda.js forked processing
const person = {
first: "Nikola",
last: "Testa"
};
const getFirstName = prop('first');
const getLastName = prop('last');
const whitespace = () => ' ';
const concatenateMultipleStrings = unapply(reduce(concat, ''))
@migerh
migerh / .babelrc
Created September 22, 2016 17:24
JSXGraph import example
{
"presets": [
"es2015",
"stage-3"
],
"plugins": [
"transform-runtime"
]
}
@migerh
migerh / Dockerfile
Last active May 20, 2016 04:21
pdftk docker container
FROM ubuntu:16.04
MAINTAINER Michael Gerhaeuser <michael.gerhaeuser@gmail.com>
RUN mkdir /work
WORKDIR /work
VOLUME ["/work"]
RUN apt-get update
RUN apt-get install -y --no-install-recommends pdftk sudo
@migerh
migerh / day1.erl
Created August 15, 2015 15:58
erlang
-module(day1).
-export([count/1]).
-export([count10/0]).
-export([check/1]).
count([32| Rest]) -> count(Rest) + 1;
count([_| Rest]) -> count(Rest);
count([]) -> 1.
count10(10) -> 10;
@migerh
migerh / PKGBUILD
Created May 20, 2015 15:18
wxlua-svn
# Maintainer: hollunder <murks at tuxfamily dot org>
pkgname=wxlua-svn
pkgver=247
pkgrel=1
pkgdesc="WxLua - SVN version."
arch=('i686' 'x86_64')
url="http://wxlua.sourceforge.net"
license=('custom:wxWindows')
depends=('desktop-file-utils' 'wxgtk' 'webkitgtk2')
@migerh
migerh / PKGBUILD
Last active August 29, 2015 14:12
wxlua
# Maintainer : Michael Gerhaeuser <michael dot gerhaeuser at gmail dot com>
# Contributor : speps <speps at aur dot archlinux dot org>
# Contributor: Eric Forgeot < http://ifiction.free.fr >
pkgname=wxlua
pkgver=2.8.12.3
pkgrel=3
pkgdesc="A set of bindings to the wxWidgets library for the Lua programming language."
arch=('i686' 'x86_64')
url="http://wxlua.sourceforge.net"
@migerh
migerh / Base game
Last active August 29, 2015 14:05
bl2 items
== Weapons ==
Acuminous Hellfire OP1
BL2(hwAAAAD5XABDKANBEJE8rmIxwYKLJQELC5YGLBJY/v/nYpnBIozl)
Analytical Bane 72
BL2(hwAAAABncwBCSAFBDIFEdmIZwZKJBQELChYILBNY/v9rYsHBAorl)
Analytical Bitch 72
BL2(hwAAAAAOZwBCSANBDIFEpmIZwWKLZQGLCpYGLBNY/v/fYsHBEozl)
@migerh
migerh / groups.c
Created December 29, 2013 23:29
List all groups the current user is member of.
#include <stdio.h>
#include <unistd.h>
#include <grp.h>
#include <stdlib.h>
#include <malloc.h>
int main()
{
struct group *gr;
int i, n;