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