Skip to content

Instantly share code, notes, and snippets.

View auroranockert's full-sized avatar

Aurora Nockert auroranockert

View GitHub Profile
Signal.trap('CHLD') do
puts "Got sigchld"
end
pid = Process.spawn('tail -f /var/log/system.log')
Process.kill('TERM', pid)
p Process.waitpid2(pid)
@auroranockert
auroranockert / process.html
Created July 15, 2015 21:43
Random actor framework?
<head>
<script src='process.js'></script>
</head>
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTRsw+1CjwJhmKWfW3xI4bi+QHHzR8Rl7aS0LoMeSej2mosgBctXZm+tLjw1IuchlcH1FP16ocx5lJtMIHZqXcqj5DhEojo8bgn5nr9USZNQ0CvrbiPnZW+/CsOL+wpoxRYJYayMzOiT8oppYr2/1Zg65ru5crqny65CBs2AhpHodLBlrN5nkbHHuSp7umbPGRd6+elOaI0n/GY4W6Ahe7ir7CWk8PuhWGYR/mABvmfJM9ieXccy8M5DwOPZWSVBqFWyUnzUot+WujTGTHl0wuELKb81Yjw0erdkq2Fc9CPGGADfm67yqcdvbyfBZWqauvqdWc7K327nqoxJqLYV/l Jens@Aurora
@auroranockert
auroranockert / achuran-pf.yaml
Last active August 29, 2015 14:10
Achuran PF
Generic:
achura: https://wiki.eveonline.com/en/wiki/Achura
old_canon: http://oldforums.eveonline.com/?a=topic&threadID=319141
on_the_achura: http://oldforums.eveonline.com/?a=topic&threadID=862890
tea: https://wiki.eveonline.com/en/wiki/Tea
death: https://wiki.eveonline.com/en/wiki/Death
songbird: https://wiki.eveonline.com/en/wiki/Achuran_songbird
flora_and_fauna: https://wiki.eveonline.com/en/wiki/Flora_and_fauna_%28NPCs%29
Items:

Society for an Achuran Autonomous Region (SAAR)

There's been almost 15 years since the dawning of the Empyrean age, for Achura this has been an important 15 years. Probably the most important event since we first met the Caldari three centuries ago. Even though we Achurans are just a few percent of the population of the Caldari State, the number of capsuleers that come from Achura is huge, and their influence on Achuran culture is undeniable.

The economy outside of SuVee on Achura is larger than ever, and the economy outside of the control of the big 8 is larger than ever before. The laws that protect Caldari society as a whole are straining Achura, and threaten to break her apart. We need a system that allows Achura to grow according to its needs, and allows Achuran culture to not only survive, but to thrive.

Right now the Elder Visionaries are barely more than puppets, and they have no political over the large cities and corporations on Achura. We propose that Achurans elect a Chief Executive to lead

@auroranockert
auroranockert / named-planets
Created November 23, 2014 22:33
Named planets in EVE
Uplingur IV (Ndoria)
New Caldari I (Matigu)
New Caldari II (Matias)
New Caldari III (Orieku)
New Caldari V (Oniteseru)
Taisy VIII (Kyonoke Pit)
Amarr I (Mikew)
Amarr II (Mikeb)
Amarr IV (Tamiroth)
Amarr V (Sek)
2014-11-20 13:51:02.094 [notice] bigcouch@10.0.0.1 <0.339.0> d6e59020 127.0.0.1 localhost:5984 GET /_utils/css/index.css?v1.0 304 ok 1
2014-11-20 13:51:02.094 [notice] bigcouch@10.0.0.1 <0.346.0> 7e8f8ce9 127.0.0.1 localhost:5984 GET /_utils/js/require.js?v1.0 304 ok 1
2014-11-20 13:51:02.505 [notice] bigcouch@10.0.0.1 <0.339.0> 809df348 127.0.0.1 localhost:5984 GET /_session 200 ok 1
2014-11-20 13:51:02.527 [notice] bigcouch@10.0.0.1 <0.346.0> 7bf63fb4 127.0.0.1 localhost:5984 GET / 200 ok 1
2014-11-20 13:51:02.574 [notice] bigcouch@10.0.0.1 <0.339.0> 07cdfbed 127.0.0.1 localhost:5984 GET /_session 200 ok 1
2014-11-20 13:51:02.583 [notice] bigcouch@10.0.0.1 <0.346.0> 426efd46 127.0.0.1 localhost:5984 GET /_utils/img/couchdb-site.png 304 ok 1
2014-11-20 13:51:02.625 [notice] bigcouch@10.0.0.1 <0.339.0> 30ad810c 127.0.0.1 localhost:5984 GET /_utils/js/zeroclipboard/ZeroClipboard.swf?noCache=1416491462305 200 ok 1
2014-11-20 13:51:02.650 [notice] bigcouch@10.0.0.1 <0.346.0> 7dfb9a1a 127.0.0.1 localhost:5984 GET
@auroranockert
auroranockert / install-couchdb.sh
Created November 20, 2014 09:01
Install CouchDB 2.0 (developer preview) on CentOS 6.5
sudo yum -y update
sudo yum -y groupinstall "Development Tools"
sudo yum -y install libicu-devel curl-devel ncurses-devel libtool libxslt fop java-1.6.0-openjdk java-1.6.0-openjdk-devel unixODBC unixODBC-devel openssl-devel wget epel-release
mkdir Source
cd ~/Source/
wget http://www.erlang.org/download/otp_src_R16B03-1.tar.gz
tar -zxvf otp_src_R16B03-1.tar.gz
cd otp_src_R16B03-1
./configure CFLAGS="-DOPENSSL_NO_EC=1" && make -j12 && sudo make install
cd ~/Source/

A silly review of DEC64

This is a rant about Douglas Crockford's DEC64, I was thinking of doing it when I heard his talk in Malmö about this, but decided that he probably wouldn't actually publish it since he probably has more important matters to attend to.

Of course, as programmers, reinventing the wheel badly when we have more important things to attend to, is second nature. So we'll do a shot-by-shot review of his specification / webpage / code.

It can precisely represent decimal fractions with 16 decimal places, which makes it well suited to all applications that are concerned with money.

Incidentally, binary floating point can also represent almost 16 (roughly 15.955) decimal places accurately.

#[repr(u32)]
pub enum Status {
Success = 0,
NoMemory = 1,
InvalidMatrix = 5,
TypeMismatch = 13
}
pub mod surface {
use std;