Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am gfa on github.
  • I am gfa (https://keybase.io/gfa) on keybase.
  • I have a public key whose fingerprint is 1AE0 322E B8F7 4717 BDEA BF1D 44BB 1BA7 9F6C 6333

To claim this, I am signing this object:

--- api.py 2015-03-26 16:37:22.995355584 +0800
+++ /usr/lib/python2.7/dist-packages/nova/virt/disk/api.py 2015-03-26 16:34:58.062630920 +0800
@@ -377,7 +377,8 @@
Returns path of image device which is mounted to the container directory.
"""
- img = _DiskImage(image=image, use_cow=use_cow, mount_dir=container_dir)
+ #img = _DiskImage(image=image, use_cow=use_cow, mount_dir=container_dir)
+ img = _DiskImage(image=image, use_cow=use_cow, mount_dir=container_dir, partition=1)
dev = img.mount()
#!/bin/bash
[ -f $HOME/.keychain/$HOSTNAME-sh ] &&
. $HOME/.keychain/$HOSTNAME-sh
scp ~/.Xauthority firefox.lap:
xhost +firefox
xhost +firefox.lap
export DISPLAY=laptop${DISPLAY}
ssh -oCompression=no firefox.zumbi.lap DISPLAY=${DISPLAY} firefox $@
#!/bin/sh -e
nm-online || exit 0
logger "empezando $0"
#export http_proxy="http://192.168.255.1:3128"
LOCAL_VERSION=`grep ^Version /opt/firefox/application.ini | awk -F = '{print $2}'`
LATEST_VERSION=`curl -v https://download.mozilla.org/\?product\=firefox-latest\&os\=linux\&lang\=en-US 2>&1 |grep Location | cut -c 90- | sed 's/firefox-//' | sed 's/.tar.bz2//' |sed 's/\r//'`
if [ ${LOCAL_VERSION}x != ${LATEST_VERSION}x ]; then
TEMPDIR=`mktemp -d`
#! /usr/bin/env python3
import boto3
import pprint
import json
import sys
from tempfile import mkstemp
import json_delta
from json_delta._util import read_bytestring

Keybase proof

I hereby claim:

  • I am gfa on github.
  • I am gfa (https://keybase.io/gfa) on keybase.
  • I have a public key whose fingerprint is 2726 3FA4 2553 615F 904A 7EBE 2A40 A2EC B8DA D8D5

To claim this, I am signing this object: