Skip to content

Instantly share code, notes, and snippets.

View xarses's full-sized avatar

Andrew Woodward xarses

  • San Francisco, Bay Area, CA
View GitHub Profile
@xarses
xarses / directions
Last active August 29, 2015 14:14
reset fuel database (WARNING WILL ERASE EVERYTHING)
dockerctl shell nailgun
manage.py drobdb
manage.py syncdb
manage.py loaddefault
exit
@xarses
xarses / keybase.md
Created February 9, 2015 20:27
keybase.md

Keybase proof

I hereby claim:

  • I am xarses on github.
  • I am xarses (https://keybase.io/xarses) on keybase.
  • I have a public key whose fingerprint is 683D DB7C CC60 E9F8 E271 3CBD 1853 F7E7 35DF BAED

To claim this, I am signing this object:

@xarses
xarses / Dockerfile
Created February 19, 2015 20:18
fuel-main docker file
# fuel-iso-builder
#
# iso building container for fuel
#
# Version 0.1
FROM ubuntu:14.04
MAINTAINER Andrew Woodward awoodward@mirantis.com
WORKDIR /root
@xarses
xarses / print-parts.sh
Created March 30, 2015 23:11
print-partations
for dev in $devs ;
do
echo "device: ${dev}"
parts=$(ls /dev/${dev}?*)
for part in $parts ;
do
partnum=$(echo ${part} | awk -F"/dev/${dev}" '{print $2}')
echo "Part: ${part}"
sgdisk -i ${partnum} /dev/${dev} | grep "Partition GUID code"
@xarses
xarses / gist:b780e45bc8b6385b6b83
Created April 28, 2015 15:18
Getting webex to work in Linux (Debian derived)

You cant use chrome/chromium as it can't launch java applets

Using firefox/iceweasel

Note: the packages here are what I was missing on Debian:Sid around Dec 2014. Your mileage may varry. If you install just icedtea, you can jump to attempting to run Webex and just chase the deps from there

echo missing packages for webex
sudo dpkg --add-architecture i386
sudo apt-get install icedtea-netx icedtea-plugin
@xarses
xarses / ksm-check.sh
Created May 28, 2015 17:25
ksm check script
#!/bin/bash
if [[ $(head /sys/kernel/mm/ksm/run) = "0" ]] ; then
echo "ksm is not enabled. /sys/kernel/mm/ksm/run must be 1"
exit 1
fi
files=$(ls /sys/kernel/mm/ksm/pages*)
pagesz=$(getconf PAGESIZE)
for file in $files
. ~/openrc
nova flavor-create flavor 7 64 0 1
nova secgroup-add-default-rule icmp -1 -1 0.0.0.0/0
nova secgroup-add-default-rule tcp 22 22 0.0.0.0/0
nova boot --flavor flavor --image TestVM --nic net-id=$(neutron net-show net04 -c id -f value) test
nova floating-ip-create
nova floating-ip-associate test <ip returned by ip-create>
#in newer versions it may be necessary to replace nova floating-ip* with neutron calls
fuel node --help
usage: fuel node [-h] [--env ENV]
[--list | --set | --delete | --network | --disk | --deploy | --hostname HOSTNAME | --delete-from-db | --provision]
[--default | --download | --upload] [--dir DIR]
[--node NODE [NODE ...]] [--force] [--all] [--role ROLE]
[--skip TASK [TASK ...] | --tasks TASK [TASK ...]]
[--end TASK] [--start TASK]
optional arguments:
-h, --help show this help message and exit
[21:19:51] [Server thread/WARN] [OpenComputers]: A component of type 'li.cil.oc.common.tileentity.Adapter' threw an error while being connected to the component network.
java.lang.NoClassDefFoundError: cofh/api/tileentity/IEnergyInfo
at li.cil.oc.integration.cofh.tileentity.DriverEnergyInfo.getTileEntityClass(DriverEnergyInfo.java:15) ~[DriverEnergyInfo.class:?]
at li.cil.oc.api.prefab.DriverTileEntity.worksWith(DriverTileEntity.java:11) ~[DriverTileEntity.class:?]
at li.cil.oc.server.driver.Registry$$anonfun$2.apply(Registry.scala:70) ~[Registry$$anonfun$2.class:?]
at li.cil.oc.server.driver.Registry$$anonfun$2.apply(Registry.scala:70) ~[Registry$$anonfun$2.class:?]
at scala.collection.TraversableLike$$anonfun$filterImpl$1.apply(TraversableLike.scala:259) ~[TraversableLike$$anonfun$filterImpl$1.class:?]
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59) ~[ResizableArray$class.class:?]
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48) ~[ArrayBuffer.cla
---- Minecraft Crash Report ----
// Shall we play a game?
Time: 1/24/16 9:21 PM
Description: Exception while updating neighbours
java.lang.NoClassDefFoundError: cofh/api/tileentity/IEnergyInfo
at li.cil.oc.integration.cofh.tileentity.DriverEnergyInfo.getTileEntityClass(DriverEnergyInfo.java:15)
at li.cil.oc.api.prefab.DriverTileEntity.worksWith(DriverTileEntity.java:11)
at li.cil.oc.server.driver.Registry$$anonfun$2.apply(Registry.scala:70)