Skip to content

Instantly share code, notes, and snippets.

Wolfgang Richter theonewolf

Block or report user

Report or block theonewolf

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
@theonewolf
theonewolf / nbd-speed-correctness.log
Last active Aug 29, 2015
nbd speed + correctness test
View nbd-speed-correctness.log
➜ ~>cd /tmp
➜ tmp>dd if=/dev/urandom bs=8M count=640 of=test-random.bin
640+0 records in
640+0 records out
5368709120 bytes (5.4 GB) copied, 466.544 s, 11.5 MB/s
➜ tmp>mkdir test-mount
➜ tmp>sudo nbd-client -N test fog.elijah.cs.cmu.edu /dev/nbd0
View nbd.log
got flush.
got flush.
+ [1416005909289892] write size: 1024
write[1]: 1024 cumulative bytes (1024 B)
got flush.
got trim.
got trim.
got trim.
got trim.
got trim.
View cherrypy-hello.py
#!/usr/bin/env python
import cherrypy
from flask import Flask
from logging import ERROR, getLogger
app = Flask(__name__)
log = getLogger('werkzeug')
log.setLevel(ERROR)
View Makefile
default: off-test32 off-test64
off-test32: off-test32.c
gcc off-test32.c -o off-test32
off-test64: off-test64.c
gcc off-test64.c -o off-test64
@theonewolf
theonewolf / Makefile
Created Nov 5, 2014
endian test program
View Makefile
endian-test: endian-test.c
gcc endian-test.c -o endian-test
@theonewolf
theonewolf / make_ext4_example_android_fs.sh
Last active Aug 29, 2015
Make Android-like ext4 File System for gammaray testing
View make_ext4_example_android_fs.sh
#!/usr/bin/bash
truncate -s 0 ext4-match-android.raw
truncate -s 14540582912 ext4-match-android.raw
echo ''
echo 'Create a Single Primary Partition w/ Defaults'
read
sfdisk ext4-match-android.raw << EOF
@theonewolf
theonewolf / swap.log
Created Sep 9, 2014
Bytes on Pristine Swap Partition
View swap.log
➜ tmp>truncate --size 1G testswap
➜ tmp>hexdump -C testswap
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
40000000
# Note the file starts as complete zeros
# Let's find out what happens when we "create/initialize" swap space
@theonewolf
theonewolf / introspection_test.py
Created Sep 4, 2014
OpenStack Introspection API Test
View introspection_test.py
#!/usr/bin/env python
from getpass import getpass
from logging import basicConfig, DEBUG, getLogger, INFO
from novaclient.v1_1 import client
from novaclient.exceptions import HTTPNotImplemented, NotFound
View kern.log
Apr 6 21:40:38 gs9671 kernel: [ 43.018316] init: plymouth-stop pre-start process (2575) terminated with status 1
Apr 7 11:35:48 gs9671 kernel: [50152.946628] coda_read_super: device index: 0
Apr 7 11:35:48 gs9671 kernel: [50152.947593] coda_read_super: rootfid is (00000001.ff000001.00000001.00000001)
Apr 7 11:35:48 gs9671 kernel: [50152.947938] coda_read_super: rootinode is 1049600 dev coda
Apr 7 11:42:14 gs9671 kernel: [50538.867095] coda: Venus dead, not sending upcall
Apr 7 11:42:14 gs9671 kernel: [50538.867100] coda: Venus dead, not sending upcall
Apr 7 11:42:14 gs9671 kernel: [50538.867104] coda: Venus dead, not sending upcall
Apr 7 11:42:15 gs9671 kernel: [50540.290824] coda: Venus dead, not sending upcall
Apr 7 11:42:15 gs9671 kernel: [50540.339017] coda: Venus dead, not sending upcall
Apr 7 11:42:16 gs9671 kernel: [50540.459311] coda: Venus dead, not sending upcall
@theonewolf
theonewolf / pushme
Created Jan 31, 2014
test push ability
You can’t perform that action at this time.