Skip to content

Instantly share code, notes, and snippets.

@westberliner
westberliner / messages.de.yaml
Created May 3, 2020 10:30
Http Status Codes Translation Yaml EN
http_status_code:
400: Ungültige Anfrage
401: Nicht autorisiert
402: Bezahlung erforderlich
403: Unerlaubte Anfrage
404: Nicht gefunden
405: Methode nicht erlaubt
406: Inakzeptabel
407: Proxy Authentifizierung Benötigt
408: Zeitüberschreitung bei Anfrage
@westberliner
westberliner / Readme.md
Created March 8, 2020 12:11
Ubuntu 19 local tld domain via dnsmasq
@westberliner
westberliner / enabledockerapi.sh
Created November 28, 2018 22:52
Create Docker API Auth CA with Client Cert and enable Docker API via TCP on systemd based os.
#!/bin/bash
showmanual()
{
echo "
Define the following:
-h|--help (this page)
-n|--hostname (hostname of docker server)
-i|--ip (ip address (either v4 or v6) of docker server)
-l|--location (path to place a tarball for client pki)
@westberliner
westberliner / Readme.md
Last active June 6, 2017 12:10
Macvim Plugins

Macvim / Neovim

brew install neovim/neovim/neovim
brew install homebrew/php/phpctags
pip3 install neovim --upgrade

Distribution

@westberliner
westberliner / Dockerfile owncloud:latest
Last active January 28, 2023 13:41
Add ldap php extension to official owncloud docker container.
FROM owncloud:latest
RUN \
apt-get update && \
apt-get install libldap2-dev -y && \
rm -rf /var/lib/apt/lists/* && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
docker-php-ext-install ldap
@westberliner
westberliner / keybase.md
Last active August 29, 2015 14:07
keybase

Keybase proof

I hereby claim:

  • I am westberliner on github.
  • I am westberliner (https://keybase.io/westberliner) on keybase.
  • I have a public key whose fingerprint is 586B 926E 0BF8 8AD9 2CA4 EAE8 F23A F4F3 1492 6452

To claim this, I am signing this object:

@westberliner
westberliner / Postleitzahlen zu Bundesland
Last active November 30, 2019 14:35
Array die Postleitzahlen nach Bundesländern ausgibt
array(
array('from' => 1001, 'till' => 1936, 'region' => "Sachsen"),
array('from' => 1001, 'till' => 1936, 'region' => "Sachsen"),
array('from' => 1941, 'till' => 1998, 'region' => "Brandenburg"),
array('from' => 2601, 'till' => 2999, 'region' => "Sachsen"),
array('from' => 3001, 'till' => 3253, 'region' => "Brandenburg"),
array('from' => 4001, 'till' => 4579, 'region' => "Sachsen"),
array('from' => 4581, 'till' => 4639, 'region' => "Thüringen"),
array('from' => 4641, 'till' => 4889, 'region' => "Sachsen"),
array('from' => 4891, 'till' => 4938, 'region' => "Brandenburg"),
@westberliner
westberliner / redmine.sh
Created April 18, 2014 18:37
Debian/Redmine service script to start/stop/restart redmine via thin with rvm
#! /bin/sh
# /etc/init.d/redmine
#
USER="redmine"
THIN="/usr/local/rvm/gems/ruby-1.9.3-p545/bin/thin"
CONFIG="/home/redmine/redmine/config/thin-config.yml"
# Carry out specific functions when asked to by the system
case "$1" in
start)