Skip to content

Instantly share code, notes, and snippets.

View AliSajid's full-sized avatar
🏠
Working from home

Ali Sajid Imami AliSajid

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am alisajid on github.
  • I am banseljaj (https://keybase.io/banseljaj) on keybase.
  • I have a public key ASCLOG64NdtLBJdtCp2YzohLs2IWyIGehYPtVS0wMJRtkwo

To claim this, I am signing this object:

@AliSajid
AliSajid / ContestReviewTropes.md
Last active August 29, 2015 14:24
A short trope-inventory of all the stories. :)

Bookay Contest Reviews: With Tropes!

So this is a very small analysis with a mention and a bit of explanation if not already obvious. All the tropes are linked to tvtropes. I'll be going in the order they are posted in the album, or at least how they appear to me.

  1. ####That guy in the queue.
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/03/a/PC.hdl
/**
* A 16-bit counter with load and reset control bits.
* if (reset[t] == 1) out[t+1] = 0
* else if (load[t] == 1) out[t+1] = in[t]
* else if (inc[t] == 1) out[t+1] = out[t] + 1 (integer addition)
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEA2rBn3v9JgozwOVkO4zPXqhgOcYME+xjxdbfUIp1D7Kt/x8G/eWvgbFr7WHVPbF0QcJbN7EYOFAPyyyKLECpwJYaNJmilKZJLAjS9TxAVmLvjNcKS83yrP+Mjxv414b4mTC57phWujb/lekRKj9UbAHDXnsAKVj+ptGF3z5o1/dCJ/xho0BYVWOdoddOWgUHzuL3vcxq9aS3BBHIairCLtWhNnxVsw//7STTw+EfCzsK/E3iwt5LXnZwoWWnl02zAR7VOBV2pvId/7W80s32YV/k803tPshiT6P101HZ5YpXtDn0TjkrAtVas1mnsXOf+Vi3dcYc0Fiq+FUIRKmcf6gvat7VK9ufZ2zKWHKX27vEnhwd12UTRy89bD6MKpq1PZj5mUPqjVm2S7nUoieehQesZjVcp7i+rclz4ls+r9U2zC60MvicjNFJ58mhVGzxFtxSsnNTKGPp9cL92Qlm/P6q/CqrOS0JWAqGiBYuqkRkUVhWs0DGa/10Nz/MWjkhfYfWlCHGzsBv3iC4mqqylYu5dUD+A9Wqrn+nX6Z884/GPXTYsTf8AHeJi51mP7tI6ICKYhbi2+Ul4HsoDk6nKR/N+QADdcuwNb+jp/0ApCv60szGzX4Cttbz4Zy6VkqN2zJ4QUsgRGImKTFnwLyWMfKLnUxNbHApe6/G8POLdGpM= asimami@test02.c44031.blueboxgrid.com
# Generated by iptables-save v1.4.7 on Thu Jun 19 11:52:07 2014
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [10278:531921]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 25 -j ACCEPT
@AliSajid
AliSajid / fbi-1
Created May 11, 2012 21:17
Spam Emails
Special Agent in Charge
Federal Bureau of Investigation
Intelligence Field Unit
El Paso Federal Justice Center
660 South Mesa Hills Drive
El Paso, TX 79912 USA
#!/usr/bin/env ruby
require 'net/http'
# looks to see if you're a link to a chiptune
# if so, returns the chiptune url and the name of the chiptune.
# if not, returns nil.
def get_list(url)
uri = URI.parse(url)
response = Net::HTTP.get_response(uri)
@AliSajid
AliSajid / error recieved.
Created January 25, 2012 17:10
Git update script
reading remote list...
reading branch list...
./update_repository:41:in `block in get_branches': undefined method `strip' for nil:NilClass (NoMethodError)
from ./update_repository:39:in `each'
from ./update_repository:39:in `get_branches'
from ./update_repository:69:in `<main>'
@AliSajid
AliSajid / Berkowitz-eng
Created December 21, 2010 16:54
Original text and lojban translation of "The Berkowitz Manuevre"
Original text link: http://viewsourcecode.org/why/incidents/04.TheBerkowitzManuevre.html
Original text:
Long before the actual city of New York, the city of New York existed in the mind of its creator. In this dream city, there lived an ordinary man. (Ordinary in the sense that only dream people can be. Which is to say: Extraordinarily plain for a very wispy, immaterial person.)
This man drew no attention to himself. He walked in such a way that he completely complied with crowds. His height was such that he was constantly overshadowed, though always present. His home was situated in a place where no one would ever look and his street address consisted of an imaginary number, such that it didn't translate from the dream into the mind. It is common for such people to live this way in a dream, and it is most orderly of him to do so.
This ordinary man concealed a great secret from the mind of his creator. This secret was called the Berkowitz Manuevre. You know enough about it now, so please go away.