Skip to content

Instantly share code, notes, and snippets.

View mcandre's full-sized avatar

Andrew mcandre

  • Milwaukee, WI
View GitHub Profile
@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
@mcandre
mcandre / preseed
Created July 6, 2019 19:42
work in progress preseed configuration
d-i passwd/root-login boolean false
d-i passwd/username string vagrant
d-i passwd/user-fullname string vagrant
d-i passwd/user-password password vagrant
d-i passwd/user-password-again password vagrant
d-i user-setup/encrypt-home boolean false
d-i time/zone string UTC
d-i clock-setup/utc boolean true
d-i clock-setup/utc-auto boolean true
d-i partman-auto-lvm/guided_size string max
@mcandre
mcandre / work-in-progress-mips-provision.md
Last active July 6, 2019 19:43
work in progress mips provision
@mcandre
mcandre / iphone-set-custom-ringtone.md
Last active June 16, 2019 15:02
iPhone Set Custom Ringtone

Warning: Apple software quality has slipped over the years. You may need to manually retry a step dozens of times in order for the step to take effect.

  1. Obtain an original iTunes-compatible ringtone audio file, such as MP3, WAV, AAC/M4A/M4R.
  2. Import this original file into your iTunes library.
  3. Use the iTunes File menu to ensure the file is converted to AAC format.
  4. Navigate to the song using iTunes search.
  5. Use the alternate menu to navigate to the AAC-formatted song's location in Finder.
  6. Rename that file to use a M4R extension.
  7. Connect iPhone to Mac via wired connection.
  8. In iTunes, nagivate to the iPhone device.
@mcandre
mcandre / openssl-separate-public-and-private-keys.md
Created June 5, 2019 14:34
OpenSSL: Separate Public Key (Certificate) and Private Key into Different Files
$ openssl x509 -in <combined.pem> >cert.pem
$ openssl rsa -in <combined.pem> >key.pem
(Enter password)
@mcandre
mcandre / word-and-color-diff.md
Created June 4, 2019 21:56
Word and Color diff between two files
$ git diff --color-words --no-index <file a> <file b>
@mcandre
mcandre / itunes-disable-device-backups.md
Last active May 27, 2019 22:07
iTunes disable device backups
$ defaults write com.apple.iTunes DeviceBackupsDisabled -bool true
@mcandre
mcandre / homebrew-install-mkpasswd.md
Created May 21, 2019 21:16
Homebrew install mkpasswd
$ brew install --build-from-source https://raw.githubusercontent.com/mcandre/homebrew-core/27757013b40567774c223a93faa720ed813ece71/Formula/whois.rb