This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set +e | |
VBoxManage controlvm saio_vm poweroff | |
VBoxManage unregistervm saio_vm --delete | |
rm /home/john/vbox_storage/saio_vm/* | |
set -e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
from argparse import ArgumentParser | |
from swift.common.ring import RingData | |
import random | |
parser = ArgumentParser() | |
parser.add_argument('ring', help='the ring') | |
parser.add_argument('part', type=int, help='the part') | |
parser.add_argument('replica', nargs='?', type=int, help='the replica') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Timeout server program | |
import sys | |
from eventlet import spawn_n, sleep, Timeout | |
from eventlet.green import socket | |
HOST = '' | |
PORT = int(sys.argv[1]) | |
TIMEOUT = 3.1 | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# taken from https://github.com/Homebrew/homebrew/blob/master/Library/Formula/python3.rb | |
# and adapted to use 3.3.x instead of 3.4 | |
# Homebrew: https://github.com/Homebrew/homebrew | |
# Homebrew is licensed under BSD 2 Clause: https://github.com/Homebrew/homebrew/blob/master/LICENSE.txt | |
require "formula" | |
class Python33 < Formula | |
homepage "https://www.python.org/" |