Skip to content

Instantly share code, notes, and snippets.

View paulczar's full-sized avatar

Paul Czarkowski paulczar

View GitHub Profile
@paulczar
paulczar / logstash.conf
Last active December 19, 2015 11:09
logstash config file for testing docker
input {
tcp {
port => "514"
type => "syslog"
tags => ["gisticles"]
}
}
filter {
grok {
@paulczar
paulczar / Vagrantfile
Created November 27, 2013 15:26
add help command for your vagrantfile with this one easy trick
if ARGV[0] == 'help' and ARGV[1] == 'vagrantfile'
puts <<eof
How to use this Vagrantfile:
env['BRANCH'] - set a different branch to clone
eof
ARGV.shift(2)
ARGV.unshift('status')
@paulczar
paulczar / gist:e412cb5e11e6a8e69945
Created May 1, 2014 23:12
building and running mysql on solum
vagrant@devstack:~$ solum app create /opt/stack/solum/examples/plans/mysql.yaml
+-------------+---------------------------------------------------------------------+
| Property | Value |
+-------------+---------------------------------------------------------------------+
| description | mysql server |
| uri | http://10.0.2.15:9777/v1/plans/86665816-389c-4c5b-8b8b-e20d536f878b |
| uuid | 86665816-389c-4c5b-8b8b-e20d536f878b |
| name | mysql_server |
+-------------+---------------------------------------------------------------------+
vagrant@devstack:~$ solum assembly create http://10.0.2.15:9777/v1/plans/86665816-389c-4c5b-8b8b-e20d536f878b --assembly=mysql01
$ docker ps
ID                  IMAGE                 COMMAND             CREATED             STATUS              PORTS
02ccb9c0fb8e        paulczar/znc:latest   start-znc           5 days ago          Up 5 days           49173->6667         
a7dd99cc7653        paulczar/znc:latest   start-znc           10 days ago         Up 10 days          49172->6667         
1fee2ef5337e        paulczar/znc:latest   start-znc           4 weeks ago         Up 4 weeks          49171->6667         
2f61a32e31ca        paulczar/znc:latest   start-znc           5 weeks ago         Up 5 weeks          49170->6667         
8d6a91853355        paulczar/znc:latest   start-znc           7 weeks ago         Up 7 weeks          49169->6667         
7a42a6b01d8c        paulczar/znc:latest   start-znc           4 months ago        Up 4 months         49168->6667         
5b76cb53e660        paulczar/znc:latest   start-znc           6 months ago        Up 6 months         49167->6667         
@paulczar
paulczar / deis.yaml
Created August 16, 2014 15:59
Heat Template for installing DEIS
heat_template_version: 2013-05-23
description: Deploy a CoreOS cluster that tracks the Stable Channel
parameters:
count:
description: Number of CoreOS machines to deploy
type: number
default: 3
constraints:
@paulczar
paulczar / fix_gecode.sh
Last active August 29, 2015 14:05
fix gecode for chefdk on ubuntu 14.04
#!/bin/bash
URL=http://ubuntu.cs.utah.edu/ubuntu/pool/universe/g/gecode
PACKAGES=(libboost1.54-dev_1.54.0-2ubuntu3_amd64.deb libgecode-dev_3.7.3-1_amd64.deb libgecodegist32_3.7.3-1_amd64.deb libgecodeflatzinc32_3.7.3-1_amd64.deb libgecode32_3.7.3-1_amd64.deb)
sudo apt-get -yq remove libgecode-dev
gem uninstall --force dep-selector-libgecode
for PKG in ${PACKAGES[@]}
do
import socket
print ("fqdn:", socket.getfqdn())
So if you're in Austin for a few days for DevOps Days ATX and want some tips on where to eat... I'm not posting locations or hours or anything, you've got a google. Be aware though a lot of places are closed on mondays.
Barbecue
========
Texas barbecue is all about the brisket. The best way to eat it is to order 'Moist outside cut' but if you don't like fatty meat go for lean. Here's some great options :
Rudy's - This is a local chain. If you've never eaten Texas BBQ before this is probably the place to go. It's the IBM of BBQ, nobody ever got fired for buying it. Tell them its your first time and they'll carry on like a pork chop for a few minutes to embarrass you and then proceed to give you a little of each item to taste. The creamed corn here is where its at.
Franklin BBQ - Arguably the best Texas style BBQ in the world. but is it worth a 4-5 hour wait ? Let us know if you brave the lines.
@paulczar
paulczar / gist:b1f42e1f70cd6ef1c687
Created September 23, 2015 23:34
rackspace firewall rules
root@test01:~# ufw status
Status: active
To Action From
-- ------ ----
22 ALLOW Anywhere
Anywhere ALLOW 72.3.128.84
Anywhere ALLOW 69.20.0.1
Anywhere ALLOW 69.20.3.135
Anywhere ALLOW 120.136.34.22
@paulczar
paulczar / doing_xmas_wrong.md
Created December 25, 2015 23:34
running local registry backed by cloud files on carina
$ for i in 1 2 3; do
  docker run -d \
      --env constraint:node==bf76bea4-47ef-43ac-a7ae-67a6e6db15bd-n$i \
      -p 127.0.0.1:5000:5000 \
      --name registry-$i \
      -e REGISTRY_STORAGE=swift \
      -e REGISTRY_STORAGE_SWIFT_USERNAME=notreallyme \
      -e REGISTRY_STORAGE_SWIFT_PASSWORD=reallyismypasswordtho \
 -e REGISTRY_STORAGE_SWIFT_AUTHURL=https://identity.api.rackspacecloud.com/v2.0/ \