Skip to content

Instantly share code, notes, and snippets.

View technolo-g's full-sized avatar

Matt Bajor technolo-g

View GitHub Profile
@technolo-g
technolo-g / gimp.md
Created September 19, 2015 22:36
Gimp Notes

Notes

Export Transparent PNG busted

Menu - Image - Mode - Convert to Color Profile -> RGB

Transparent Background

  • Select layer and add alpha if needed
  • Select by color
  • Edit -> Clear
@technolo-g
technolo-g / app1.conf
Created August 27, 2015 13:00
Dynamic Routing to your PaaS With NGINX
## -- Begin app1 Cluster -- ##
upstream app1 {
server 10.32.28.2:32851;
}
server {
listen 80;
server_name app1.paas.domain.com;
xcode with development tools
homebrew
rvm
vagrant
virtualbox
iterm2
alfred
http://spectacleapp.com/ (allows you to snap windows around with kb shortcuts)
BetterSnapTool if spectacle doesn't do what you want
remap your caps lock key to command
@technolo-g
technolo-g / gist:78e647630cdc87285a11
Created May 19, 2015 05:06
Anil Madhavapeddy – Unikernels: Functional Infrastructure with Mirage OS
"Unikernels give you a chance to rebuild the world in the way you want to think about it." --Anil Madhavapeddy
@technolo-g
technolo-g / mnesia_error.md
Created April 11, 2015 01:25
Mnesia on LING
vagrant@vagrant-xen-trusty64:~/testn-autoproxy$ cat domain_config
name = "testn-autoproxy"
kernel = "testn-autoproxy.img"
extra = "-home /testn-autoproxy -pz /testn-autoproxy/apps/autoprox/ebin /testn-autoproxy/deps/ej/ebin /testn-autoproxy/deps/mnesia/ebin /testn-autoproxy/deps/mochijson2/ebin -goofs /tmp"
vif = []
disk = [ "tap:aio:/tmp/fs.img,xvda,w" ]
memory = 1024
vagrant@vagrant-xen-trusty64:~/testn-autoproxy$ sudo xl create -c domain_config
Parsing config from domain_config
@technolo-g
technolo-g / tls.md
Last active August 29, 2015 14:12
TLS Issue

CLI Output

[14:56:23 mbajor@mbajor-DraakBookPro:~/Dev/docker-swarm/master]
$ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
[14:57:53 mbajor@mbajor-DraakBookPro:~/Dev/docker-swarm/master]
$ docker run -d -t ubuntu:latest /bin/bash
342e581c14c6ebf9c4b40c5913cd0ffa2824744996781f1379b49f86c18585d4
FATA[0000] Error response from daemon: Post https://dockerhost01:2376/v1.16/containers/342e581c14c6ebf9c4b40c5913cd0ffa2824744996781f1379b49f86c18585d4/start: x509: certificate signed by unknown authority
[14:57:59 mbajor@mbajor-DraakBookPro:~/Dev/docker-swarm/master]
@technolo-g
technolo-g / report.md
Created January 6, 2015 18:22
Vagrant + VMware Issue

Versions

VMware Fusion 7.1.0

$ vagrant version
Installed Version: 1.7.1
Latest Version: 1.7.1

You're running an up-to-date version of Vagrant!
@technolo-g
technolo-g / gen_ssl.sh
Created January 6, 2015 16:43
Generate Docker SSL Certificates
#!/bin/bash
echo 'Creating CA (ca-key.pem, ca.pem)'
echo 01 > ca.srl
openssl genrsa -des3 -passout pass:password -out ca-key.pem 2048
openssl req -new -passin pass:password \
-subj '/CN=Non-Prod Test CA/C=US' \
-x509 -days 365 -key ca-key.pem -out ca.pem
echo 'Creating client certificates (key.pem, cert.pem)'
@technolo-g
technolo-g / versions.md
Created January 6, 2015 00:00
Docker Version vs. Swarm version

Docker version info

$ docker version
Client version: 1.4.1
Client API version: 1.16
Go version (client): go1.4
Git commit (client): 5bc2ff8
OS/Arch (client): darwin/amd64
Server version: 1.4.1
Server API version: 1.16