Skip to content

Instantly share code, notes, and snippets.

Avatar
🐫
Copyright 1987-2013, Larry Wall

Jon Williams WIZARDISHUNGRY

🐫
Copyright 1987-2013, Larry Wall
View GitHub Profile
@WIZARDISHUNGRY
WIZARDISHUNGRY / .gitattributes
Created Apr 13, 2009
Apple's .plist files have two equivalent on-disk representations, binary and xml. These snippets help keep binary crap out of your repository.
View .gitattributes
*.plist filter=xmlplist
# surprise! Quartz patches are plists, too!
*.qtz filter=xmlplist
@WIZARDISHUNGRY
WIZARDISHUNGRY / vmm-alpine.sh
Last active May 22, 2020 — forked from voutilad/vmm-alpine.sh
Installing Alpine Linux in OpenBSD's VMM Hypervisor and setup k3s
View vmm-alpine.sh
# Assuming you're a regular user that has doas allowances for vmctl
mkdir -p ~/vmm
cd ~/vmm
# Grab the the one of the virt iso's of Alpine Linux
curl http://dl-cdn.alpinelinux.org/alpine/v3.11/releases/x86_64/alpine-virt-3.11.6-x86_64.iso -o alpine-virt-3.11.6-x86_64.iso
# Make a new virtual disk image, change the size as needed. Make one for each node.
doas vmctl create -s 2G alpine-virt1.img
doas vmctl create -s 2G alpine-virt2.img
@WIZARDISHUNGRY
WIZARDISHUNGRY / commands.sh
Created Oct 23, 2013
list of new commands in OSX Mavericks
View commands.sh
/usr/bin/a2p5.16
/usr/bin/afida
/usr/bin/btmmdiagnose
/usr/bin/c2ph5.16
/usr/bin/config_data5.16
/usr/bin/corelist5.16
/usr/bin/cpan2dist5.16
/usr/bin/cpan5.16
/usr/bin/cpanp-run-perl5.16
/usr/bin/cpanp5.16
@WIZARDISHUNGRY
WIZARDISHUNGRY / bgpd.conf
Created Sep 26, 2018
checkpoint jesse's vm bgp conf
View bgpd.conf
# global configuration
AS 64986
router-id 10.70.145.196
#holdtime 15
#keepalive 5
# listen on 127.0.0.1
# listen on ::1
fib-update yes
# route-collector no
log updates
View boot2docker-openbsd.sh
GOOS=openbsd GOARCH=amd64 go get github.com/docker/cli/cmd/docker
GOOS=openbsd GOARCH=amd64 go get github.com/docker/machine/cmd/docker-machine
doas sysctl net.inet.ip.forwarding=1
wget "https://github.com/boot2docker/boot2docker/releases/download/v18.06.0-ce/boot2docker.iso"
vmctl create disk.img -s 4.5G
doas vmctl start docker -d ./boot2docker.iso -d ./disk.img -m 1024M -L -c
# -c is for console
View README.md

So I just ran into this interesting situation in a select IO handler which is trapping control-C and listening for messages/errors from partitionConsumer. I’ve run into a case where I am unable to catch signals. The problem occurs when no one is consuming b.output but we enter the block for <-partitionConsumer.Messages()

Rest of functions ommited.

View Taco Bell Menu
# check for php syntax errors in changed files
git status|grep php| cut -d : -f 2 | xargs -n1 php -l
@WIZARDISHUNGRY
WIZARDISHUNGRY / knot-resolver.md
Last active Apr 7, 2018
knot-resolver subjective performance
View knot-resolver.md

Query local knot-resolver instance forwarding to 1.1.1.1 per these directions (3698.7 ms 😫 ):

kdig slashdot.org @127.0.0.1                                                                                                                                                                                master ‹2.3.0›
;; ->>HEADER<<- opcode: QUERY; status: NOERROR; id: 17572
;; Flags: qr rd ra; QUERY: 1; ANSWER: 1; AUTHORITY: 0; ADDITIONAL: 0

;; QUESTION SECTION:
;; slashdot.org.       		IN	A

;; ANSWER SECTION:
@WIZARDISHUNGRY
WIZARDISHUNGRY / Gemfile
Last active Feb 12, 2018
Vagrant snippet to set VirtualBox guest CPU count to the number of host cores on Linux or OS X (broken 2018)
View Gemfile
gem 'concurrent'
@WIZARDISHUNGRY
WIZARDISHUNGRY / community-builds-from-source.sh
Last active Jan 14, 2018 — forked from Chaircrusher/community-builds-from-source.sh
This script pulls down the VCV Rack community repo, finds source urls, pulls down source repos, and builds plugins.
View community-builds-from-source.sh
#!/usr/bin/env bash
#################################################################################################################################
# community-builds-from-source.sh
# by Jeremy Wentworth
#
# Modified by Kent Williams chaircrusher@gmail.com
# Modified by Jon Williams jon@jonwillia.ms
#
# This script pulls down the VCV Rack community repo, finds source urls, pulls down source repos, and builds plugins.