Skip to content

Instantly share code, notes, and snippets.

View samis's full-sized avatar

Samuel Hodgkins samis

View GitHub Profile
@samis
samis / listdev
Created July 5, 2017 01:32
Haiku stuff
device Bridge (Host bridge) [6|0|0]
vendor 1022: Advanced Micro Devices, Inc. [AMD]
device 1605: Family 15h Processor Function 5
device Bridge (Host bridge) [6|0|0]
vendor 1022: Advanced Micro Devices, Inc. [AMD]
device 1604: Family 15h Processor Function 4
device Bridge (Host bridge) [6|0|0]
vendor 1022: Advanced Micro Devices, Inc. [AMD]

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am samis on github.
  • I am samis (https://keybase.io/samis) on keybase.
  • I have a public key whose fingerprint is FBEC 76D6 1BC8 6F13 5B3C A50A 4E1D 5F99 BCDD BC91

To claim this, I am signing this object:

@samis
samis / lib_eina.cr
Created November 10, 2015 03:09
Complete file containing code that exhibits the issue.
@[Link("eina")]
lib LibEina
struct X_EinaVersion
major : LibC::Int
minor : LibC::Int
micro : LibC::Int
revision : LibC::Int
end
type EinaVersion = X_EinaVersion
fun init = eina_init : LibC::Int
[script]
n0=on 1:Start: {
n1= socklisten SonicSock 6667
n2= window -a @mIRCd
n3= window -a @mIRCd2
n4=}
n5=on 1:SockListen:SonicSock: {
n6= if ($sock(mIRCd).status == active) {
n7= sockaccept mIRCd2
n8= set %ircd2 0
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
KUBE-PORTALS-CONTAINER all -- anywhere anywhere /* handle ClusterIPs; NOTE: this must be before the NodePort rules */
DOCKER all -- anywhere anywhere ADDRTYPE match dst-type LOCAL
KUBE-NODEPORT-CONTAINER all -- anywhere anywhere ADDRTYPE match dst-type LOCAL /* handle service NodePorts; NOTE: this must be the last rule in the chain */
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
29/05/15 320.04 MiB | 62.75 MiB | 382.79 MiB | 36.29 kbit/s
30/05/15 204.73 MiB | 33.65 MiB | 238.38 MiB | 22.60 kbit/s
31/05/15 719.31 MiB | 37.72 MiB | 757.03 MiB | 71.78 kbit/s
01/06/15 312.01 MiB | 16.40 MiB | 328.41 MiB | 31.14 kbit/s
02/06/15 190.23 MiB | 15.50 MiB | 205.74 MiB | 19.51 kbit/s
03/06/15 324.41 MiB | 19.54 MiB | 343.94 MiB | 32.61 kbit/s
04/06/15 537.00 MiB | 29.92 MiB | 566.92 MiB | 53.75 kbit/s
05/06/15 1.01 GiB | 166.68 MiB | 1.17 GiB | 113.86 kbit/s
07/06/15 60.00 MiB | 7.68 MiB | 67.68 MiB | 6.42 kbit/s
08/06/15 744.88 MiB | 26.96 MiB | 771.84 MiB | 73.18 kbit/s
server echo {
port 100;
code /usr/lib/inetd-modules/echo.lua;
}
server dns {
port 53;
code /usr/lib/inetd-modules/dns.lua;
}
@samis
samis / gist:7a41227dc068835e1b3e
Created January 9, 2015 21:20
SKY-IHR LOC count
-----------------------------------------------------------------------------------
Language files blank comment code
-----------------------------------------------------------------------------------
C 15707 1428364 1585722 7346277
C/C++ Header 11879 672066 517803 1813742
Bourne Shell 517 41436 45089 297630
Assembly 1064 37771 43784 245874
XML 591 16593 407 116806
HTML 411 13657 15380 113299
make 941 12154 11875 60008
"Electropuzzle" by CompanionCube
[Include Original Parser by Ron Newcomb]
Part 0 - Definitions
Electric current is a kind of value.
The specification of electric current is "Used to measure the amount of
electricity flowing through something at any given moment. It measures down to