Skip to content

Instantly share code, notes, and snippets.

View NateBrune's full-sized avatar
📈
decentralizing

Nate Brune NateBrune

📈
decentralizing
  • Reckless Capital
  • CA
View GitHub Profile
// Automatically generated configuration file for 'Hyperion daemon'
// Generated by: HyperCon (The Hyperion deamon configuration file builder
{
/// Device configuration contains the following fields:
/// * 'name' : The user friendly name of the device (only used for display purposes)
/// * 'type' : The type of the device or leds (known types for now are 'ws2801', 'ldp8806',
/// 'lpd6803', 'sedu', 'adalight', 'lightpack', 'test' and 'none')
/// * 'output' : The output specification depends on selected device. This can for example be the
/// device specifier, device serial number, or the output file name
@NateBrune
NateBrune / keybase.com
Created September 22, 2015 20:14
Keybase Proof
### Keybase proof
I hereby claim:
* I am natebrune on github.
* I am natebrune (https://keybase.io/natebrune) on keybase.
* I have a public key whose fingerprint is B4C5 70D8 B4A0 BA4D 9C34 2FA5 C95C E6BC 6735 BAD7
To claim this, I am signing this object:
'''
Simple socket server using threads
'''
import socket
import sys
from thread import *
HOST = '' # Symbolic name meaning all available interfaces
PORT = 1347 # Arbitrary non-privileged port
#!/usr/bin/env python
import os
import sys
try:
import dns.resolver
except:
print 'dnspython is required'
print 'http://www.dnspython.org/'
#!/usr/bin/env python
import os
import sys
import dns.resolver
import Queue
import time
import threading
# Various settings
numthreads = 150
#!/usr/bin/env python
import os
import sys
import Queue
import time
import threading
import urllib2
# Various settings
numthreads = 150
@NateBrune
NateBrune / cup.dcpu
Created March 9, 2016 02:44
Filling Cup DCPU
:main
SET A, 0
SET B, 0xB800
HWI 0
SET A, 0xB800
SET X, A
SET I, X
SET Z, 0xB800
ADD Z, 0x0180
SET I, 0xB800
@NateBrune
NateBrune / radiation.dcpu
Created March 9, 2016 02:51
Radiation effect on dcpu
:main
SET A, 0
SET B, 0xB800
HWI 0
SET A, 0xB800
SET X, A
SET I, X
SET Z, 0xB800
ADD Z, 0x0180
SET I, 0xB800
MAX0="$(cat /sys/class/power_supply/BAT0/charge_full)"
CAP0="$(cat /sys/class/power_supply/BAT0/charge_now)"
BAT="$(echo "100*(${CAP0})/(${MAX0})" | bc)"
echo $BAT%

Keybase proof

I hereby claim:

  • I am natebrune on github.
  • I am natebrune (https://keybase.io/natebrune) on keybase.
  • I have a public key ASATgwVLyqIlbPXhd4YXx72p5cwLYts6Img5Tnjzo6rxFgo

To claim this, I am signing this object: