Skip to content

Instantly share code, notes, and snippets.

View pmeinhardt's full-sized avatar

Paul Meinhardt pmeinhardt

View GitHub Profile
pmeinhardt /
Created November 9, 2022 20:54
Get URLs for fonts available via Homebrew
brew search --cask /font-.+/ | xargs brew info | grep -E ^https\: | sed -E 's/#[^#]+$//' | sort --unique
pmeinhardt / hmm
Created June 24, 2019 08:37
Find out what you did today
#!/usr/bin/env bash
# Find out what you did today
# Lists all your commits from repos found in the given paths.
# Use it to prepare your daily stand-up or to write job logs.
# Uses `git`, depends on `fd` - install via `brew install fd`.
# Usage:
pmeinhardt / otp-ssh-agent-demo-script.erl
Created June 22, 2019 09:43
escript to try out ssh-agent support in OTP
#!/usr/bin/env escript
receive_data() ->
{ssh_cm, _, {closed, __}} ->
io:fwrite("Channel closed~n", []);
{ssh_cm, _, Msg} ->
io:fwrite("SSH message: ~p~n", [Msg]),
after 1000 ->
pmeinhardt /
Last active May 22, 2019 08:53
Develop Erlang/OTP inside a Docker container

Develop Erlang/OTP inside the official erlang/ubuntu-build Docker image.

It comes with all the correct versions of dependencies pre-installed.

Place the develop script in the scripts directory of your local erlang/otp checkout.

namespace :cachetool do
CACHETOOL = 'cachetool.phar'.freeze
desc <<~DESC
Installs #{CACHETOOL} to the shared directory.
This is best used after deploy:starting:
namespace :deploy do
after :starting, 'cachetool:install_executable'
pmeinhardt / Capfile
Created April 18, 2018 13:39
capistrano config for geordi defect
require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/scm/git'
install_plugin Capistrano::SCM::Git
require 'capistrano/bundler'
require 'capistrano/yarn'
require 'capistrano/rails/assets'
require 'capistrano/rails/migrations'
require 'capistrano/passenger'
# Example code for connecting to OpenSSH ssh-agent and retrieving key information,
# quickly hacked together so please excuse bad naming and style etc.
# This is just intended to provide a starting point
# Message constants
ssh2_agentc_request_identities = 11
pmeinhardt / site.yml
Created August 3, 2016 08:23
Create vSphere virtual machines using Ansible
- hosts: esxi
connection: local
remote_user: root
become: no
- name: hostname
prompt: "Enter the VMware ESXi hostname"
default: ""
private: no
pmeinhardt /
Created June 29, 2016 18:21
AirPlay via Raspberry Pi 3
# Tested on a Raspberry Pi 3 running Raspbian Jessie Lite (2016-05-27,, kernel 4.4)
# –
# install dependencies
sudo apt-get install build-essential libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl libmodule-build-perl libasound2-dev libao-dev pulseaudio libpulse-dev avahi-utils libavahi-client-dev
# configure and build
git clone
cd shairport
pmeinhardt / config.txt
Last active July 9, 2016 10:52
HiFiBerry Setup (Raspbian Jessie Lite, Kernel 4.4)
# For more options and information see
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan