This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // listen for a connection | |
| // read what they type, and echo it back | |
| // when they type "quit", close the connection. | |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "net" | |
| "os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """Dump reddit links. | |
| Run me as something like | |
| ./dumpredditlinks http://www.reddit.com/user/self/submitted/.json | |
| ./dumpredditlinks http://www.reddit.com/r/programming | |
| ./dumpredditlinks \ | |
| http://www.reddit.com/r/compsci \ | |
| http://www.reddit.com/r/apple |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """DCPU-16 disassembler. | |
| Run as parse.py /path/to/dcpufile. | |
| http://0x10c.com/doc/dcpu-16.txt | |
| """ | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0x00 SET A 0x30 | |
| 0x02 SET [0x1000] 0x20 | |
| 0x05 SUB A [0x1000] | |
| 0x07 IFN A 0x10 | |
| 0x08 SET PC 0x1a | |
| 0x0A SET I 0xa | |
| 0x0B SET A 0x2000 | |
| 0x0D SET [0x2000 + I] [A] | |
| 0x0F SUB I 0x1 | |
| 0x10 IFN I 0x0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -ur xcalc/Imakefile xcalc-working/Imakefile | |
| --- xcalc/Imakefile 1988-07-22 16:22:53.000000000 +0500 | |
| +++ xcalc-working/Imakefile 2012-10-07 20:21:24.589409247 +0500 | |
| @@ -1,8 +1,6 @@ | |
| LOCAL_LIBRARIES = $(XLIB) | |
| SYS_LIBRARIES = -lm | |
| -#ifdef MacIIArchitecture | |
| DEFINES = -DIEEE | |
| -#endif /* MacIIArchitecture */ | |
| SRCS = xcalc.c sr.c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.youtube.com/watch?v=CayMeza487M | |
| 0:07 | |
| Oppan Klingon Style | |
| 0:11 | |
| Klingon Style | |
| 0:15 | |
| I salute you woman. You are a very pretty woman. [Expletive] success. Let's go! | |
| qavan raHtar. be' 'IHqu' SoH. Qapla' jay'! Ha' | |
| 0:19 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| import time | |
| __author__ = 'Faried Nawaz' | |
| __version_ = '20030625' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * (ql:system-apropos "snmp") | |
| #<SYSTEM snmp / snmp-6.0.2 / quicklisp 2013-03-12> | |
| #<SYSTEM snmp-server / snmp-6.0.2 / quicklisp 2013-03-12> | |
| #<SYSTEM snmp-test / snmp-6.0.2 / quicklisp 2013-03-12> | |
| * (ql:quickload "snmp") | |
| To load "snmp": | |
| Install 4 Quicklisp releases: | |
| ironclad nibbles snmp usocket | |
| ; Fetching #<URL "http://beta.quicklisp.org/archive/usocket/2013-01-28/usocket-0.6.0.1.tgz"> | |
| ; 67.33KB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ptcl "copper": ping time around 161 ms | |
| $ traceroute -n www.google.com.pk | |
| traceroute: Warning: www.google.com.pk has multiple addresses; using 173.194.113.191 | |
| traceroute to www.google.com.pk (173.194.113.191), 64 hops max, 52 byte packets | |
| 1 192.168.1.1 1.729 ms 1.593 ms 1.203 ms | |
| 2 119.152.4.1 41.234 ms 39.148 ms 39.364 ms | |
| 3 203.99.170.194 28.792 ms 27.957 ms 28.779 ms | |
| 4 221.120.252.13 30.389 ms 32.099 ms 37.638 ms | |
| 5 221.120.254.46 52.602 ms 56.674 ms 51.792 ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 23:40:21% stty -a | |
| speed 9600 baud; 47 rows; 105 columns; | |
| lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl | |
| -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo | |
| -extproc | |
| iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk | |
| brkint -inpck -ignpar -parmrk | |
| oflags: opost onlcr -ocrnl tab0 -onocr -onlret | |
| cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow | |
| -dtrflow -mdmbuf |