Skip to content

Instantly share code, notes, and snippets.


Matthias Pigulla mpdude

View GitHub Profile
FabianSchmick / Bratkartoffeln mit
Last active Sep 22, 2022
Meine Lieblings-Koch-Rezepte
View Bratkartoffeln mit

Bratkartoffeln mit Speck


  • Kartoffeln (je nach gewünschter Menge)
  • Salz, Pfeffer, Chilipulver, Paprikapulver, Knoblauchgranulat, Rosmariengewürz
  • 1 Zwiebel
  • 2 Knoblauchzehen
  • Speckwürfel


  1. Kartoffeln schälen und ca. 10 Minuten vorkochen (kann auch am abend davor gemacht werden)
vhermecz / custom_keys_git_ssh
Created Jun 8, 2020
Allow configuring multiple ssh deploy keys with git
View custom_keys_git_ssh
# Script to use custom ssh keys for various git repositories
# Run without arguments to get usage info.
# How it works:
# When used with SSH, git sends the path to the repository in the SSH command.
# @see:
# We extract this info and search for a key with the name.
# Based on the source, this seems to be used format since v2.0 at least.
# @see:
View secrets.yaml
env(SECRETS_FILE): .secrets.php
# default configuration for services in *this* file
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
$someSecret: '%env(key:KEY3:require:SECRETS_FILE)%'
Ocramius /
Created Jun 12, 2017 — forked from lelandbatey/
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!


This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"


bastman /
Created Mar 31, 2016
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see:

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

iacchus /
Last active Sep 21, 2022
Set reverse proxy websockets in Apache 2.4 using 1.0. Needs mod_rewrite module, this version uses SSL. As seen here
<VirtualHost *:80>
Redirect permanent /
<VirtualHost *:443>
kbarber / gist:6456420
Created Sep 5, 2013
Renewing a Puppet CA cert
View gist:6456420
Renew Puppet CA cert.
Not the perfect idea, but should alleviate the need to resign every cert.
What you need from existing puppet ssl directory:
Create an openssl.cnf:
jasonberanek /
Last active Jan 29, 2018
Enabling VNC support in the VMware ESXi 5.x Firewall

VMware ESXi includes a built in VNC server that can be used to access a VMs console for manipulation via automated tools (e.g., veewee) or by users on platforms where the vSphere Client is not supported. In ESXi 5.x, the built-in firewall does not allow VNC traffic to be received by the VNC server, even when an individual VM is configured to support this configuration. To complete this activity, the firewall has to be modified to allow the appropriate ports.

The below script can be run via the ESXi command line to setup the firewall rules necessary to run VNC. A few items to note:

  • Scripts assumes the firewall rules file is the default provided as by 5.0.0 update 2 build 914586 and/or 5.1.0 build 799733 (may work in other versions)
  • In order to persist settings after a reboot, it is necessary to copy the firewall settings to either a specific datastore mapped to the host, or the local persistent storage linked under the /store directory. Further, the either the /etc/rc.local (ESXi 5.0) or `/etc/rc.local