Skip to content

Instantly share code, notes, and snippets.

View faried's full-sized avatar

Faried Nawaz faried

View GitHub Profile
"Tintash"
The story headline is "Your First Day At Tintash".
The story author is "Faried Nawaz".
The story genre is "Comedy".
The release number is 2.
Release along with a website, source text and an interpreter.
Include the Exit Descriptions by Matthew Fletcher.
Switches d2xC0;
Constant Story "Tintash^";
Constant Headline "Your First Day At Tintash by Faried Nawaz^";
Release 3;
Constant DIALECT_US;
Include "Parser";
Include "Verblib";
--- dirs_2.h 1998-07-29 09:00:00.000000000 +0500
+++ dirs_2_fn.h 2013-12-20 01:51:00.000000000 +0500
@@ -40,17 +40,20 @@
if(loc provides (i.door_dir) && metaclass(loc.(i.door_dir))~=nothing)
j++;
if (j == 0) "There are no obvious exits.";
- print "You can go ";
+ print "Exits: ";
objectloop(i in Compass)
{
@faried
faried / gist:7637769
Created November 25, 2013 07:41
stty -a, freebsd 8.3
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
@faried
faried / ptcl.sh
Last active December 20, 2015 22:38
# 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
* (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
@faried
faried / linux-istats.py
Created November 25, 2012 19:40
my horrible old network stats code
#!/usr/bin/env python
import os
import sys
import time
__author__ = 'Faried Nawaz'
__version_ = '20030625'
@faried
faried / gist:4075024
Created November 14, 2012 21:42
klingon style
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
@faried
faried / xcalc-x11r3.diff
Created October 7, 2012 15:24
a diff against xcalc from X11R3 to get it to compile on Ubuntu 12.04
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
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