Skip to content

Instantly share code, notes, and snippets.

View paulczar's full-sized avatar

Paul Czarkowski paulczar

View GitHub Profile
@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
# redis-cli info
redis_version:2.2.5
redis_git_sha1:00000000
redis_git_dirty:0
arch_bits:64
multiplexing_api:epoll
process_id:29465
uptime_in_seconds:371
uptime_in_days:0
lru_clock:1378336
@paulczar
paulczar / gist:4369921
Created December 24, 2012 16:37
top output from logstash/elasticsearch server showing two logstash-indexers running.
top - 16:33:42 up 19 days, 19:51, 1 user, load average: 1.74, 1.41, 1.42
Tasks: 382 total, 1 running, 380 sleeping, 0 stopped, 1 zombie
Cpu(s): 17.2%us, 2.2%sy, 0.0%ni, 79.9%id, 0.0%wa, 0.0%hi, 0.6%si, 0.0%st
Mem: 49541808k total, 6487760k used, 43054048k free, 156548k buffers
Swap: 51642360k total, 40856k used, 51601504k free, 1255156k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3979 root 20 0 32.2g 2.3g 10m S 60.4 4.8 24:55.91 java # elasticsearch
7032 root 20 0 24.3g 718m 12m S 196.3 1.5 75:04.11 java # logstash
10312 root 20 0 14.6g 407m 11m S 156.8 0.8 49:35.96 java # logstash2
@paulczar
paulczar / gist:5459528
Created April 25, 2013 13:04
openstack chef broked.
using https://github.com/rcbops/chef-cookbooks inside vagrant with a chef 10.x Server and Chef 10.x client/knife etc.
vagrant@chef:~/chef-cookbooks$ knife node show allinone
Node Name: allinone
Environment: example_environment
FQDN: allinone
IP: 10.0.2.15
Run List: role[allinone]
Roles: