Skip to content

Instantly share code, notes, and snippets.

View novel's full-sized avatar

Roman Bogorodskiy novel

View GitHub Profile
<domain type='bhyve'>
<name>openbsd61</name>
<memory unit='G'>4</memory>
<vcpu>2</vcpu>
<os>
<type>hvm</type>
<boot dev='hd'/>
<loader readonly="yes" type="pflash">/usr/local/share/uefi-firmware/BHYVE_UEFI.fd</loader>
</os>
<features>
import pprint
from osprofiler.drivers.base import get_driver
CONN = "mongodb://localhost"
if __name__ == "__main__":
drv = get_driver(CONN)
fields = ['base_id', 'timestamp', 'info.request.path']
@novel
novel / -
Created January 28, 2017 17:34
brew doctor --debug
Checking check_access_cache
Checking check_access_cellar
Checking check_access_homebrew_repository
Checking check_access_lock_dir
Checking check_access_logs
Checking check_access_prefix_directories
Checking check_access_site_packages
Checking check_clt_minimum_version
Checking check_clt_up_to_date
Checking check_dyld_vars
$ brew remove --debug qemu
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtasn1.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/qemu.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gmp.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/nettle.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnutls.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libgpg-error.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoad
#!/usr/bin/env python
import getopt
import mailbox
import sys
def parse_mailbox(filename, dry_run):
mbox = mailbox.mbox(filename)
sorted_messages = sorted(mbox, key=lambda x: x['subject'])
@novel
novel / bsdrpcgen.rb
Last active December 20, 2016 10:40
# !!! NOTE !!!
# This version is not relevant anymore, please use the 'rpcgen' formula:
# https://github.com/Homebrew/homebrew-core/blob/master/Formula/rpcgen.rb
class Bsdrpcgen < Formula
desc "FreeBSD's rpcgen"
homepage "http://freebsd.org"
url "http://people.freebsd.org/~novel/misc/rpcgen-20161114.tar.gz"
sha256 "6a785a24b5c40096cf8a6e4a6b21846a8cf8bc25d04bc20ff9ba1d90ff3e9df5"
bonnie vbox fixed size
Version 1.97 ------Sequential Output------ --Sequential Input- --Random-
Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
vboxvm01 8G 1027 99 51933 4 106805 13 1673 99 1051989 83 +++++ +++
Latency 9013us 226ms 3737ms 5946us 2193us 1369us
Version 1.97 ------Sequential Create------ --------Random Create--------
vboxvm01 -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
<domain type='bhyve'>
<name>bhyve</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory>219136</memory>
<currentMemory>219136</currentMemory>
<vcpu>1</vcpu>
<os>
<type>hvm</type>
</os>
<clock offset='utc'/>
<domain type='qemu'>
<name>qemu</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory>219136</memory>
<currentMemory>219136</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='i686' machine='pc'>hvm</type>
<boot dev='hd'/>
</os>
#!/usr/bin/env python
import sys
import urllib
import json
URL = "http://beta-api.formspring.me/answered/list/%s"