This file contains hidden or 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
➜ ~>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 |
This file contains hidden or 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
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. |
This file contains hidden or 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 cherrypy | |
from flask import Flask | |
from logging import ERROR, getLogger | |
app = Flask(__name__) | |
log = getLogger('werkzeug') | |
log.setLevel(ERROR) |
This file contains hidden or 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
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 |
This file contains hidden or 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
endian-test: endian-test.c | |
gcc endian-test.c -o endian-test |
This file contains hidden or 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/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 |
This file contains hidden or 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
➜ 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 |
This file contains hidden or 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 | |
from getpass import getpass | |
from logging import basicConfig, DEBUG, getLogger, INFO | |
from novaclient.v1_1 import client | |
from novaclient.exceptions import HTTPNotImplemented, NotFound |
This file contains hidden or 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
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 |
This file contains hidden or 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
stuff |
NewerOlder