Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Coding

Matthias Pigulla mpdude

💭
Coding
View GitHub Profile
@FabianSchmick
FabianSchmick / Bratkartoffeln mit Speck.md
Last active Sep 22, 2022
Meine Lieblings-Koch-Rezepte
View Bratkartoffeln mit Speck.md

Bratkartoffeln mit Speck

Zutaten

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

Zubereitung

  1. Kartoffeln schälen und ca. 10 Minuten vorkochen (kann auch am abend davor gemacht werden)
@vhermecz
vhermecz / custom_keys_git_ssh
Created Jun 8, 2020
Allow configuring multiple ssh deploy keys with git
View custom_keys_git_ssh
#!/bin/bash
# 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: https://github.com/git/git/blob/e870325/connect.c#L1268
# 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: https://github.com/git/git/commit/a2036d7
View secrets.yaml
parameters:
env(SECRETS_FILE): .secrets.php
services:
# default configuration for services in *this* file
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
bind:
$someSecret: '%env(key:KEY3:require:SECRETS_FILE)%'
@Ocramius
Ocramius / whiteboardCleaner.md
Created Jun 12, 2017 — forked from lelandbatey/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!
View whiteboardCleaner.md

Description

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:

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

Results

@bastman
bastman / docker-cleanup-resources.md
Created Mar 31, 2016
docker cleanup guide: containers, images, volumes, networks
View docker-cleanup-resources.md

Docker - How to cleanup (unused) resources

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

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

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

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

@iacchus
iacchus / socket.io-1-0-apache-2.4-ssl.conf
Last active Sep 21, 2022
Set reverse proxy websockets in Apache 2.4 using socket.io 1.0. Needs mod_rewrite module, this version uses SSL. As seen here https://serverfault.com/questions/616370/configuring-apache-2-4-mod-proxy-wstunnel-for-socket-io-1-0
View socket.io-1-0-apache-2.4-ssl.conf
<VirtualHost *:80>
ServerName forum.example.com
Redirect permanent / https://forum.example.com
</VirtualHost>
<VirtualHost *:443>
ServerName forum.example.com
@kbarber
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:
ca/ca_crt.pem
ca/ca_key.pem
Create an openssl.cnf:
[ca]
@jasonberanek
jasonberanek / README.md
Last active Jan 29, 2018
Enabling VNC support in the VMware ESXi 5.x Firewall
View README.md

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