Skip to content

Instantly share code, notes, and snippets.

Andrew mcandre

Block or report user

Report or block mcandre

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mcandre
mcandre / how-to-make-a-windows-boot-usb-drive.md
Last active Mar 31, 2020
How to Make a Windows Boot USB Drive
View how-to-make-a-windows-boot-usb-drive.md

How to Make a Windows Boot USB Drive

  1. Obtain a reliable copy of a Windows ISO. When in doubt, reference well known cryptographic checksums when validating such critical files.

  2. Format a USB drive for an MS-DOS partition (FAT32). For modern hardware, opt for GPT-style instead of MBR.

  3. Mount the Windows ISO as a virtual disc.

  4. Copy all files from the Windows virtual disc onto the USB FAT32 partition.

@mcandre
mcandre / how-to-duplicate-preview.app-pages.md
Created Mar 19, 2020
How to Duplicate Preview.app Pages
View how-to-duplicate-preview.app-pages.md
  1. Click on the desired page.
  2. Press and hold the Option key.
  3. Drop duplicated page between other pages.
@mcandre
mcandre / arturia-keystep-hold-midi-samples.md
Created Feb 2, 2020
Arturia KeyStep Hold MIDI Samples
View arturia-keystep-hold-midi-samples.md
  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.
  3. Play notes.
@mcandre
mcandre / arturia-keystep-hold-midi-samples.md
Created Feb 2, 2020
Arturia KeyStep Hold MIDI Samples
View arturia-keystep-hold-midi-samples.md
  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 Jan 19, 2020
macOS Format Disk as FAT-16
View macos-format-fat16.md

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 Jan 10, 2020
Dump a website's certificate chain
View dump-certs.sh
openssl s_client -host google.com -port 443 -prexit -showcerts
@mcandre
mcandre / patches.md
Last active Nov 26, 2019
patches, bb!
View patches.md
@mcandre
mcandre / mysqllint.go
Last active Oct 18, 2019
pass SQL code through Go SQL parser
View mysqllint.go
package main
import (
"github.com/xwb1989/sqlparser"
"flag"
"fmt"
"io"
"io/ioutil"
"os"
@mcandre
mcandre / virtualbox-list-os-types.md
Created Aug 28, 2019
VirtualBox: List OS types
View virtualbox-list-os-types.md
VBoxManage list ostypes
@mcandre
mcandre / docker-spin-up-test-http-server.md
Created Aug 14, 2019
Docker: Spin up test HTTP server
View docker-spin-up-test-http-server.md
$ ifconfig en0 | awk '/inet / { print $2 }'
192.168.1.224

$ docker run \
	--rm \
	-e host=192.168.1.224 \
	-p 8080:80 \
	izdock/httpd
  
You can’t perform that action at this time.