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 /
Last active Nov 26, 2019
patches, bb!
mcandre / mysqllint.go
Last active Oct 18, 2019
pass SQL code through Go SQL parser
View mysqllint.go
package main
import (
mcandre /
Created Aug 28, 2019
VirtualBox: List OS types
VBoxManage list ostypes
mcandre /
Created Aug 14, 2019
Docker: Spin up test HTTP server
$ ifconfig en0 | awk '/inet / { print $2 }'

$ docker run \
	--rm \
	-e host= \
	-p 8080:80 \
mcandre /
Created Aug 13, 2019
Docker: Spin up test FTP server
$ ifconfig en0 | awk '/inet / { print $2 }'

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