Skip to content

Instantly share code, notes, and snippets.

View anttikantee's full-sized avatar

Antti Kantee anttikantee

View GitHub Profile
pooka@watou:~/src/brewcalc$ ./bin/wbckegp.py -h
usage: ./bin/wbckegp.py [-v keg volume]
temperature|pressure|vols temperature|pressure|vols
pooka@watou:~/src/brewcalc$ ./bin/wbckegp.py 3.4 18degC
Pressure : 2.85 bar 41.3 psi
Temperature : 18.0°C 64.4°F
CO2 (v/v) : 3.4
Dissolved CO2 (w/v) : 6.72 g/l 0.25 oz/qt
pooka@watou:~/tmp/rumprun-arm/platform/hw$ qemu-system-arm -machine integratorcp -kernel hello.bin -serial stdio -s -net nic -net tap,ifname=tap0,script=no
rump kernel bare metal bootstrap (ARM)
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 7.99.17 (RUMP-ROAST)
@anttikantee
anttikantee / gist:15259b8796eb724722e3
Created May 20, 2015 17:17
dmesg for rumprun/nginx unikernel booting on bare metal from USB stick
rumpctrl (tcp://192.168.2.106:12345)$ sysctl -r kern.msgbuf
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 7.99.17 (RUMP-ROAST)
total memory = 1004 MB
timecounter: Timecounters tick every 10.000 msec
nman () {
local c s m;
c=links
[ "$1" = "-e" ] && { c=echo; shift; }
[ $# -gt 1 ] && { s=$1; shift; }
m=$1
$c "http://man.netbsd.org/cgi-bin/man-cgi?${m}+${s}+NetBSD-current"
}
@anttikantee
anttikantee / gist:6587371
Created September 16, 2013 22:18
Initial success for generic PCI device drivers with rump kernels on Xen
[root@localhost pooka]# xl console rump-kernel
start_info: 0x2e1000(VA)
nr_pages: 0x1000
shared_inf: 0x00256000(MA)
pt_base: 0x2e4000(VA)
nr_pt_frames: 0x5
mfn_list: 0x2dd000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0
Index: rumpuser_sp.c
===================================================================
RCS file: /cvsroot/src/lib/librumpuser/rumpuser_sp.c,v
retrieving revision 1.58
diff -u -r1.58 rumpuser_sp.c
--- rumpuser_sp.c 30 Apr 2013 12:39:20 -0000 1.58
+++ rumpuser_sp.c 18 Jul 2013 06:02:13 -0000
@@ -647,8 +647,9 @@
if (pfdlist[i].fd == -1 && spclist[i].spc_state == SPCSTATE_NEW)
break;