Skip to content

Instantly share code, notes, and snippets.

☔️

Roman Bogorodskiy novel

☔️
Block or report user

Report or block novel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View openbsd61.xml
<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>
View prof_traces.py
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 Jan 28, 2017
brew doctor --debug
View -
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
View brew_remove_qemu.log
$ 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
View git-mailsort.py
#!/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'])
View bsdrpcgen.rb
# !!! 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"
View gist:5ca8ab6a88e5d32efcdd1166db1efcbb
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
@novel
novel / xenfreebsd.xml
Last active Aug 29, 2015
Linux HVM guest
View xenfreebsd.xml
<domain type='xen'>
<name>xentest</name>
<uuid>4dea22b31d52d8f32516782e98ab3fa0</uuid>
<os>
<type>hvm</type>
<loader>/usr/local/lib/xen/boot/hvmloader</loader>
<boot dev='hd'/>
</os>
<memory>524288</memory>
<vcpu>1</vcpu>
View cmd
/usr/sbin/bhyve -c 1 -m 214 -A -I -H -P -s 0:0,hostbridge -s 4:0,virtio-net,tap0,mac=52:54:00:e7:0f:14 -s 5:0,virtio-net,tap1,mac=52:54:00:cf:1a:91 -s 1:0,ahci-hd,/home/novel/bhyve_freebsd.img -s 2:0,ahci-hd,/home/novel/test.img -s 3:0,virtio-blk,/home/novel/test.img -s 31,lpc -l com1,/dev/nmdm0A bhyve-mutli
View gist:8151244
<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'/>
You can’t perform that action at this time.