Skip to content

Instantly share code, notes, and snippets.

Avatar

Scott Walters scottwalters

View GitHub Profile
View gist:f570fd8dc979022c6bbcd4f84a0e7b1e
#!/usr/bin/perl
use strict;
use warnings;
use Carp;
$SIG{USR1} = \&Carp::confess;
$SIG{CHLD} = 'IGNORE';
use Net::LPR;
View gist:bd6010938a60fc17084cead02c701c11
root@fluffy:/tmp# newfs_msdos -S 8192 -F 32 /dev/rsd3i
/dev/rsd3i: 1953286704 sectors in 244160838 FAT32 clusters (65536 bytes/cluster)
bps=8192 spc=8 res=4 nft=2 mid=0xf8 spt=63 hds=255 hid=16 bsec=1953525152 bspf=119220 rdcl=2 infs=1 bkbs=2
root@fluffy:/tmp# mount_msdos /dev/sd3i /mnt/flash
root@fluffy:/tmp# newfs_msdos -S $((8192*2)) -F 32 /dev/rsd3i'
/dev/rsd3i: 1953405920 sectors in 244175740 FAT32 clusters (131072 bytes/cluster)
bps=16384 spc=8 res=4 nft=2 mid=0xf8 spt=63 hds=255 hid=16 bsec=1953525152 bspf=59614 rdcl=2 infs=1 bkbs=2
root@fluffy:/tmp# mount_msdos /dev/sd3i /mnt/flash
mount_msdos: /dev/sd3i on /mnt/flash: not an MSDOS filesystem
View gist:8cc501a19bdd910d15f56555544cf633
Welcome to Linux 4.4.14 (ttyS0)
bleakstar login: [ 8324.823251] docker-compose: Corrupted page table at address 7fd594d9c420
[ 8324.823764] PGD 2b6de067 PUD 2b57b067 PMD 61067 PTE 6f004200410049
[ 8324.824264] Bad pagetable: 000f [#1] SMP
[ 8324.824484] Modules linked in: veth xt_nat xt_tcpudp ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter ip_tables xt_conntrack x_tables nf_nat nf_conntrack br_netfilter bridge stp llc overlay ipv6 fuse iosf_mbi crct10dif_pclmul crc32_pclmul evdev crc32c_intel loop
[ 8324.826499] CPU: 0 PID: 1678 Comm: docker-compose Not tainted 4.4.14 #2
[ 8324.827019] Hardware name: OpenBSD VMM, BIOS 1.11.0p0-OpenBSD-vmm 01/01/2011
[ 8324.827469] task: ffff88002561c980 ti: ffff880025418000 task.ti: ffff880025418000
[ 8324.828170] RIP: 0033:[<00007fd599f22abc>] [<00007fd599f22abc>] 0x7fd599f22abc
View gist:ec77fdd8368e38915dbaf05301fb3be2
GeoIP--
ImageMagick--
ORBit2--
OpenEXR--
R--
Xaw3d--
aalib--
abcde--
adb--
adwaita-icon-theme--
View scab-client.sno
* snobol4 -d 100M scab-client.sno
-include 'random.sno'
-include 'http.sno'
-include 'host.sno'
srandomdev()
dictfile = 'twl06.txt' ;* whole thing
View pod2rtf
#!/usr/bin/perl
# convert POD-like markup to an emulation Apress' MSWord template output
# {\*\template F:\\tmp\\ApressStyles.dot} - I'd love to know the path to Kim's etc .dot
# but I can't find anything like this in the files I get from her!
# todo: run as a cgi, linkable from the wiki
# markups available to us:
View minivcg2.pl
#!/usr/bin/perl
=for comment
Take a simplified graph description source file (read on STDIN) and generate xvcg graphs. Requires the xvcg package and NetPBM.
Eg:
foo: Foo is Foo -- create a node named 'foo' (in the source file) containing the text (in the output graph) 'Foo is Foo'
bar: Bar is Bar -- similar
View Managing uucp and Usenet
JavaScript The Definitive Guide
ActionScript 3.0 Cookbook
Facebook Cookbook
Naked Statistics
The Toaster Project
Programming Flex 2
Applied Statistics and the SAS Programming Language
OpenGL ES Game Development
OpenGL Refrence Manual (3rd edition)
Salesforce Cookbook
View wee-irc-d.pl
#!/usr/bin/perl
=for comment
MUD<->IRC proxy
Presents MUD as an IRC server
Todo
----
View gist:2f1fd6345f0460199a4a
bash-4.3# cabal install pandoc
Resolving dependencies...
Downloading SHA-1.6.4.2...
Downloading async-2.0.2...
Downloading base64-bytestring-1.0.0.1...
Configuring async-2.0.2...
Configuring base64-bytestring-1.0.0.1...
Downloading blaze-builder-0.4.0.1...
Building async-2.0.2...
Downloading byteable-0.1.1...
You can’t perform that action at this time.