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
[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
@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 #
# #
@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 / 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"
},
{
"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"
},
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CoreOS on EC2: http://coreos.com/docs/running-coreos/cloud-providers/ec2/",
"Mappings" : {
"RegionMap" : {
"eu-central-1" : {
"AMI" : "ami-bececaa3"
},
@christian-blades-cb
christian-blades-cb / coreos-kubernetes-hvm.json
Created January 18, 2016 20:14
cloudformation-coreos-kubernetes-hvm
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Kubernetes on CoreOS",
"Mappings" : {
"RegionMap" : {
"ap-northeast-1": {
"AMI": "ami-dae8c1b4"
},
"ap-southeast-1": {
"AMI": "ami-085a9a6b"
@christian-blades-cb
christian-blades-cb / celery.five.py
Created April 26, 2016 20:01
my own personal hell
# celery/five.py
__all__ = ['Counter', 'reload', 'UserList', 'UserDict', 'Queue', 'Empty',
'zip_longest', 'map', 'string', 'string_t',
'long_t', 'text_t', 'range', 'int_types', 'items', 'keys', 'values',
'nextfun', 'reraise', 'WhateverIO', 'with_metaclass',
'OrderedDict', 'THREAD_TIMEOUT_MAX', 'format_d',
'class_property', 'reclassmethod', 'create_module',
'recreate_module', 'monotonic']
# ...
from kombu.five import monotonic

Keybase proof

I hereby claim:

  • I am christian-blades-cb on github.
  • I am cblades (https://keybase.io/cblades) on keybase.
  • I have a public key ASCnnfuBpu8Fz3IRjGtmjBFHJT1lPzzw6VVjVeTbisBbhQo

To claim this, I am signing this object:

FROM python:2.7-alpine
RUN pip install tox
ADD . /src
WORKDIR /src
CMD tox