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 / 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
  
@mcandre
mcandre / docker-spin-up-test-ftp-server.md
Created Aug 13, 2019
Docker: Spin up test FTP server
View docker-spin-up-test-ftp-server.md
$ 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 Jul 22, 2019
How to make a directory mutable in OpenShift
View mutable-src-directory.Dockerfile
RUN chgrp -R 0 /src && \
chmod -R g=u /src
@mcandre
mcandre / preseed
Created Jul 6, 2019
work in progress preseed configuration
View preseed
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 / iphone-set-custom-ringtone.md
Last active Jun 16, 2019
iPhone Set Custom Ringtone
View iphone-set-custom-ringtone.md

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.
You can’t perform that action at this time.