Skip to content

Instantly share code, notes, and snippets.

View christian-blades-cb's full-sized avatar

Christian Blades christian-blades-cb

View GitHub Profile
@christian-blades-cb
christian-blades-cb / cloudformation-coreos-stable-vpc.json
Created January 28, 2015 02:56
Cloudformation for launching CoreOS inside a VPC
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CoreOS on EC2: http://coreos.com/docs/running-coreos/cloud-providers/ec2/",
"Mappings" : {
"RegionMap" : {
"eu-central-1" : {
"AMI" : "ami-448dbd59"
},
@christian-blades-cb
christian-blades-cb / vpn_fix.sh
Last active January 23, 2024 15:09
Fix issues with using boot2docker with Cisco's AnyConnect
#!/usr/bin/env bash
# If you're using docker-machine, call this script with your
# environment name
# Ex: ./vpn_fix dev
DEFAULTVM="boot2docker-vm"
[ $(id -u) = 0 ] || { echo "You must be root (or use 'sudo')" ; exit 1; }
report_success ()
@christian-blades-cb
christian-blades-cb / composer_lock_merge.coffee
Last active February 7, 2017 17:51
Merge composer.lock files
#!/usr/bin/env coffee
#################################################################
# credit goes to: jphass, because I totally ripped off his code #
# (https://gist.github.com/jphaas/ad7823b3469aac112a52) #
#################################################################
#################################################################################################
# INSTALLING #
# #
[cblades@lat-cblades docker-paperboy (master)]$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
10.198.52.167:80/cbdr/paperboy latest ebc5250f5907 25 minutes ago 558.3 MB
phusion/baseimage 0.9.9 745d3ac92697 26 hours ago 345.8 MB
10.198.52.167:80/phusion/baseimage latest 745d3ac92697 26 hours ago 345.8 MB
[cblades@lat-cblades docker-paperboy (master)]$ docker -D push 10.198.52.167:80/phusion/baseimage
[debug] registry.go:144 Registry https://10.198.52.167:80/v1/ does not work (Get https://10.198.52.167:80/v1/_ping: EOF), falling back to http
[debug] registry.go:57 Registry standalone header: 'True'
The push refers to a repository [10.198.52.167:80/phusion/baseimage] (len: 1)
Sending image list