Skip to content

Instantly share code, notes, and snippets.

@mendeni
mendeni / Dockerfile
Created June 29, 2015 13:46
Minecraft Server via Dockerfile
FROM ubuntu:14.04
MAINTAINER steven.e.wilson@gmail.com
# update
RUN \
apt-get update && \
apt-get -y upgrade
### Keybase proof
I hereby claim:
* I am mendeni on github.
* I am mendeni (https://keybase.io/mendeni) on keybase.
* I have a public key whose fingerprint is 11CF 767C 35F1 038B 5DE6 CEA3 CE3D DD0F D665 8A9B
To claim this, I am signing this object:
@mendeni
mendeni / gist:30f9ec06c9be72fda123
Last active August 29, 2015 14:04
idmap fail with filesystem type='block'
# virsh dumpxml sew02
<domain type='lxc'>
<name>sew02</name>
<uuid>18f76f2f-0852-434c-8a3d-18a56ffdf33b</uuid>
<memory unit='KiB'>65536</memory>
<currentMemory unit='KiB'>65536</currentMemory>
<vcpu placement='static'>1</vcpu>
<resource>
<partition>/machine</partition>
</resource>
root@haproxy:~# ps -efw
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 14:15 pts/0 00:00:00 init [3]
root 1255 1 0 14:15 ? 00:00:00 dhclient -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0
root 1370 1 0 14:15 ? 00:00:00 /usr/sbin/dropbear -d /etc/dropbear/dropbear_dss_host_key -r /etc/dropbear/dropbear_
root 1373 1 0 14:15 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid
root 1409 1 0 14:15 ? 00:00:00 /usr/sbin/snmpd -LS 0-4 d -Lf /dev/null -u root -g root -I -smux -p /var/run/snmpd.p
root 1416 1 0 14:15 ? 00:00:00 /bin/login --
root 1417 1416 0 14:15 ? 00:00:00 -bash
root 1423 1417 0 14:17 ? 00:00:00 ps -efw
<domain type='lxc'>
<name>haproxy</name>
<uuid>e24c721b-a00c-4ccf-9e65-87be531ebd4c</uuid>
<memory unit='KiB'>65536</memory>
<currentMemory unit='KiB'>65536</currentMemory>
<vcpu placement='static'>1</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
@mendeni
mendeni / gist:304dc3f34c41b7516c95
Created April 30, 2014 19:30
libvirt.idmap.xml
<domain type='lxc'>
<name>sew02</name>
<uuid>2f4d4d57-2a9a-4e7c-9668-bbe5406cb4a9</uuid>
<memory unit='KiB'>65536</memory>
<currentMemory unit='KiB'>65536</currentMemory>
<vcpu placement='static'>1</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
@mendeni
mendeni / gist:10742889
Created April 15, 2014 15:45
dpkg -c redis_2.8.8-1-rackos_amd64.deb
# dpkg -c redis_2.8.8-1-rackos_amd64.deb
drwxr-xr-x 0/0 0 2014-04-15 13:43 ./
drwxr-xr-x 0/0 0 2014-04-15 13:43 ./etc/
drwxr-xr-x 0/0 0 2014-04-15 13:43 ./etc/redis/
-rw-r--r-- 0/0 30544 2014-04-15 13:39 ./etc/redis/redis.conf
-rw-r--r-- 0/0 5660 2014-04-15 13:39 ./etc/redis/sentinel.conf
drwxr-xr-x 0/0 0 2014-04-15 13:43 ./etc/logrotate.d/
-rw-r--r-- 0/0 133 2014-04-15 13:39 ./etc/logrotate.d/redis-server
drwxr-xr-x 0/0 0 2014-04-15 13:43 ./etc/init.d/
-rwxr-xr-x 0/0 1600 2014-04-15 13:39 ./etc/init.d/redis-server
@mendeni
mendeni / gist:9809432
Created March 27, 2014 14:58
make[2]: Entering directory `/usr/src/linux-3.13.7'
make[2]: Entering directory `/usr/src/linux-3.13.7'
CC [M] /usr/src/openvswitch/datapath/linux/datapath.o
In file included from /usr/src/openvswitch/datapath/linux/datapath.c:52:0:
/usr/src/openvswitch/datapath/linux/compat/include/net/genetlink.h:20:13: error: conflicting types for ‘genl_notify’
In file included from /usr/src/openvswitch/datapath/linux/compat/include/net/genetlink.h:7:0,
from /usr/src/openvswitch/datapath/linux/datapath.c:52:
include/net/genetlink.h:176:6: note: previous declaration of ‘genl_notify’ was here
/usr/src/openvswitch/datapath/linux/datapath.c: In function ‘ovs_notify’:
/usr/src/openvswitch/datapath/linux/datapath.c:73:10: error: ‘struct genl_multicast_group’ has no member named ‘id’
/usr/src/openvswitch/datapath/linux/datapath.c: In function ‘ovs_flow_cmd_new_or_set’:
@mendeni
mendeni / gist:9764596
Last active August 29, 2015 13:57
lxc.se_context = unconfined_u:unconfined_r:lxc_t:s0-s0:c0.c1023
root@debian:~# sh -x eg
+
+
+ echo
+ cat /var/lib/lxc/sew100/config
# Template used to create this container: /usr/share/lxc/templates/lxc-rackos-debian-secure
# Parameters passed to the template:
# For additional config options, please look at lxc.conf(5)
@mendeni
mendeni / gist:9624123
Created March 18, 2014 16:48
ERROR: 'module' object has no attribute 'add_arg'
swilson@racker:~$ pip show os-diskconfig-python-novaclient-ext
---
Name: os-diskconfig-python-novaclient-ext
Version: 0.1.2
Location: /usr/local/lib/python2.7/dist-packages
Requires: python-novaclient
swilson@racker:~$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.