Skip to content

Instantly share code, notes, and snippets.

View mcandre's full-sized avatar

Andrew mcandre

  • Milwaukee, WI
View GitHub Profile
@mcandre
mcandre / arturia-keystep-hold-midi-samples.md
Created February 2, 2020 19:48
Arturia KeyStep Hold MIDI Samples
  1. In MIDI Control Center, set the KeyStep's "Hold Switch Function" to "Both".
  2. In either Sequencer or Arpeggiator mode, engage the Hold button.
@mcandre
mcandre / macos-format-fat16.md
Created January 19, 2020 21:17
macOS Format Disk as FAT-16

Use Disk Utility.app to identify the drive number for the desired disk device. Then:

$ diskutil unmountDisk disk<n>
$ sudo newfs_msdos -F 16 /dev/disk<n>
$ diskutil mount /dev/disk<n>
@mcandre
mcandre / dump-certs.sh
Created January 10, 2020 22:10
Dump a website's certificate chain
openssl s_client -host google.com -port 443 -prexit -showcerts
@mcandre
mcandre / patches.md
Last active November 26, 2019 02:57
patches, bb!
@mcandre
mcandre / mysqllint.go
Last active October 18, 2019 14:29
pass SQL code through Go SQL parser
package main
import (
"github.com/xwb1989/sqlparser"
"flag"
"fmt"
"io"
"io/ioutil"
"os"
@mcandre
mcandre / virtualbox-list-os-types.md
Created August 28, 2019 15:35
VirtualBox: List OS types
VBoxManage list ostypes
@mcandre
mcandre / docker-spin-up-test-http-server.md
Created August 14, 2019 00:22
Docker: Spin up test HTTP server
$ ifconfig en0 | awk '/inet / { print $2 }'
192.168.1.224

$ docker run \
	--rm \
	-e host=192.168.1.224 \
	-p 8080:80 \
	izdock/httpd
 
@mcandre
mcandre / docker-spin-up-test-ftp-server.md
Created August 13, 2019 23:57
Docker: Spin up test FTP server
$ ifconfig en0 | awk '/inet / { print $2 }'
192.168.1.224

$ docker run -v "$(pwd):/home/vsftpd/admin" \
	-p 20:20 \
	-p 21:21 \
	-p 21100-21110:21100-21110 \
	-e FTP_USER=admin \
	-e FTP_PASS=vagrant \
@mcandre
mcandre / mutable-src-directory.Dockerfile
Created July 22, 2019 14:54
How to make a directory mutable in OpenShift
RUN chgrp -R 0 /src && \
chmod -R g=u /src