Skip to content

Instantly share code, notes, and snippets.

View VictorLowther's full-sized avatar

Victor Lowther VictorLowther

View GitHub Profile
@VictorLowther
VictorLowther / squid.conf
Last active June 9, 2016 17:20
Example squid cache config including upstream proxy stuff
# These should be customized to reflect the local address ranges of the networks Rebar nodes use
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
acl to_localnet dst 10.0.0.0/8 # RFC1918 possible internal network
acl to_localnet dst 172.16.0.0/12 # RFC1918 possible internal network
acl to_localnet dst 192.168.0.0/16 # RFC1918 possible internal network
acl to_localnet dst fc00::/7 # RFC 4193 local private network range
@VictorLowther
VictorLowther / gist:7e9430a7cbd4143ccded
Last active August 29, 2015 14:19
dell/instack RDO install instructions and annoyances
* br-ctlplane config file is rewritten when the services are
restarted. There needs to be a comment at the top of the file
indicating that it is automatically generated, and that points to where
the configuration actually comes from.
* Ceph deployment?
* Any mistake in networking config in instack.answers seems to necessitate
a complete reinstall -- simply making changes and rerunning
instack-install-undercloud will not work.
* Ironic code for full RAID and BIOS control needs to be merged into
Ironic. As of now, it is in the redhat tree, so we are OK.
http_port 8123
acl localhost src 127.0.0.1/32
acl localhost src ::1
acl to_localhost dst 127.0.0.0/8
acl to_localhost dst ::1/128
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # For Docker VMs running locally.
acl to_localnet dst 192.168.0.0/16
acl to_localnet dst fe80::/10
acl to_localnet dst 172.16.0.0/12
victor@m4700:~/src/opencrowbar/core (master)
$ docker version
Client version: 0.8.0
Go version (client): go1.2
Git commit (client): cc3a8c8
Server version: 0.8.0
Git commit (server): cc3a8c8
Go version (server): go1.2
Last stable version: 0.8.0
victor@m4700:~/src/opencrowbar/core (master)
crowbar@build30:~/core$ docker info
Containers: 23
Images: 4
Driver: aufs
Root Dir: /var/lib/docker/aufs
Dirs: 50
WARNING: No swap limit support
crowbar@build30:~/core$ docker version
Client version: 0.8.0
Go version (client): go1.2
@VictorLowther
VictorLowther / multi-version-gem.rb
Created December 19, 2012 17:07
Rubygems wrapper that allows for multiple --version arguments.
#!/usr/bin/ruby
require 'rubygems'
require 'rubygems/gem_runner'
require 'rubygems/exceptions'
# Stupid hack to allow multiple --version options.
module Gem::VersionOption
def add_version_option(task = command, *wrap)
OptionParser.accept Gem::Requirement do |value|
Gem::Requirement.new value
@VictorLowther
VictorLowther / att-6rd.wanup
Created June 21, 2012 23:35
AT&T 6rd script for DD-WRT
#!/bin/sh
# This adds the appropriate 6rd tunnel for AT&T DSL users with a DD-WRT based router.
# Place it in /jffs/etc/config/att-6rd.wanup, and then ln -s /jffs/etc/config/att-6rd.ipup to it.
# The AT&T customer 6rd gateway.
# This is an anycast address that picks the closest one to you on the AT&T network.
REMOTE=12.83.49.81
# Your local IP address.
LOCAL="$(ip -o -4 addr show dev ppp0 |awk '{print $4}')"