Skip to content

Instantly share code, notes, and snippets.

@Pipeliner
Pipeliner / vbox-sync-and-run.sh
Created March 15, 2012 23:43
Костыль для одновременного запуска копий одной машины в VirtualBox | Script for VirtualBox to run multiple copies of VM simultaniously
#!/bin/sh
src=SrcMachine
dst=DstMachine
case $1 in
start)
VBoxManage startvm $src
VBoxManage startvm $dst
;;
stop)
VBoxManage controlvm $src acpipowerbutton
@Pipeliner
Pipeliner / prctl.rb
Created September 25, 2012 22:15
Modem tray notifier
require 'fiddle'
def set_process_name name
RUBY_PLATFORM =~ /linux/ or return
Fiddle::Function.new(
DL::Handle['prctl'], [
Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP,
Fiddle::TYPE_LONG, Fiddle::TYPE_LONG,
Fiddle::TYPE_LONG
], Fiddle::TYPE_INT
require 'socket'
socks = []
1.upto(254).each do |oct|
s = UDPSocket.new
s.bind("10.23.7.#{oct}", 1338)
socks << s
end
a = ""
linux-0.2.img
x86-linux.log
@Pipeliner
Pipeliner / gist:bd83c0bdad604ca5ee7c
Created February 18, 2015 10:41
DCSS crawl 0.16 functions available in clua (clualistfuncs output)
Crawl version 0.16-a0-4008-gc88e425
Save file version 34.133
Compiled with GCC 4.8.2 on Feb 17 2015 at 20:26:40
Build platform: x86_64-linux-gnu
Platform: x86_64-linux-gnu
CFLAGS: -O2 -pipe -Wall -Wformat-security -Wundef -Wno-array-bounds -Wno-format-zero-length -Wmissing-declarations -Wredundant-decls -Wno-parentheses -Wwrite-strings -Wshadow -pedantic -Wuninitialized -Iutil -I. -isystem /usr/include/lua5.1 -Irltiles -isystem /usr/include/ncursesw -DWIZARD -DASSERTS -DCLUA_BINDINGS
LDFLAGS: -rdynamic -fuse-ld=gold -O2
cluautil.cc defines global
cluautil.cc defines nullptr
@Pipeliner
Pipeliner / gist:631b2678123b3e016a70
Created February 21, 2015 17:48
qw the DCSS bot win as GrCK.handaxe combo
Dungeon Crawl Stone Soup version 0.16-a0-4008-gc88e425 (console) character file.
1800736 qw the Impregnable (level 27, 111/198 HPs)
Began as a Gargoyle Chaos Knight on Feb 21, 2015.
Was an Elder of Trog.
Escaped with the Orb
... and 3 runes!
The game lasted 00:09:12 (58080 turns).
Dungeon Crawl Stone Soup version 0.16-a0-4008-gc88e425 (console) character file.
313256 qw the Warrior (level 22, -6/192 HPs)
Began as a Formicid Berserker on Mar 4, 2015.
Was the Champion of Trog.
Mangled by a white very ugly thing (30 damage)
... on level 1 of the Depths.
The game lasted 00:05:19 (42951 turns).
qw the Warrior (Formicid Berserker) Turns: 42951, Time: 00:05:19
Dungeon Crawl Stone Soup version 0.16-a0-4008-gc88e425 (console) character file.
1607048 qw the Slayer (level 27, 181/257 (261) HPs)
Began as a Naga Berserker on Mar 12, 2015.
Was a Priest of Trog.
Escaped with the Orb
... and 3 runes!
The game lasted 00:17:17 (81013 turns).
@Pipeliner
Pipeliner / gist:82b2cc3247ce24d10996
Created March 15, 2015 08:31
Firs abyssal rune run for qw
Dungeon Crawl Stone Soup version 0.16-a0-4008-gc88e425 (console) character file.
561228 qw the Executioner (level 26, -7/276 HPs)
Began as a Gargoyle Berserker on Mar 14, 2015.
Was an Elder of Trog.
Killed from afar by a spellforged servitor (62 damage)
... with a fireball
... summoned by a lich
... on level 4 of the Depths on Mar 15, 2015.
The game lasted 00:57:44 (57190 turns).
@Pipeliner
Pipeliner / qw.rc
Created March 21, 2015 13:06
stairdance, step one: retreat
# This rcfile is elliptic's DCSS bot "qw", the first (and thus far only) bot
# to win DCSS with no human assistance. A substantial amount of code here was
# contributed by elliott or borrowed from N78291's bot "xw", and many others
# have contributed as well.
# For brief instructions and the most up-to-date version of qw, see
# https://github.com/elliptic/qw.
## qw's settings:
#