Skip to content

Instantly share code, notes, and snippets.

View saadmahboob's full-sized avatar

面白い saadmahboob

  • Planet Earth
View GitHub Profile
@saadmahboob
saadmahboob / enigma.py
Created October 26, 2018 00:25
Enigma machine emulator, written in Python
alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
class Rotor():
perms = []
turnover_position = ''
position = 'A'
def __init__(self, perms, turnover_position, ring_setting):
i = alphabet.index(ring_setting)
perms = perms[i:] + perms[:i]
self.perms = [c for c in perms]
@saadmahboob
saadmahboob / free_email_provider_domains.txt
Created March 23, 2018 03:36 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com
163.com
@saadmahboob
saadmahboob / tcp_http_spoof.py
Created December 8, 2017 23:46 — forked from inaz2/tcp_http_spoof.py
TCP injection attack (HTTP redirection) using Scapy
$ sudo python tcp_http_spoof.py >&/dev/null &
[1] 3477
$ curl -vL http://www.google.com/
* Hostname was NOT found in DNS cache
* Trying 172.217.26.100...
* Connected to www.google.com (172.217.26.100) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.35.0
> Host: www.google.com
@saadmahboob
saadmahboob / gist:51a4e22d0cb27a5d3694a1ecf450ed7c
Created October 1, 2017 08:34 — forked from philfreo/gist:7257723
Facebook Perl source code from 2005. When browsing around thefacebook.com in 2005 the server spit out some server-side source code rather than running it. I believe this was for their old graph feature that let you visualize the graph between all your friends. The filename is `mygraph.svgz` and contains some gems such as a commented out "zuck" d…
#!/usr/bin/perl
use Mysql;
use strict;
use vars qw($school_name);
use vars qw($pass);
require "./cgi-lib.pl";
@saadmahboob
saadmahboob / stocks.py
Created September 30, 2017 21:53 — forked from tristanwietsma/stocks.py
NYSE, NASDAQ, and AMEX stock list
import requests
class Stock:
def __init__(self, exc, symb, name, link):
self.exchange = exc
self.symbol = symb
self.name = name
self.link = link
@saadmahboob
saadmahboob / INSTALL-Z3-4.0.md
Created September 18, 2017 23:03 — forked from mn200/INSTALL-Z3-4.0.md
How to install Z3 4.0 on Linux

Installing Z3 version 4.0

  1. Download and unpack tar-ball from MSR download site.

  2. Run the z3 executable in z3/bin. Simple!

@saadmahboob
saadmahboob / DistBelief.md
Created September 7, 2017 15:38 — forked from shagunsodhani/DistBelief.md
Notes for "Large Scale Distributed Deep Networks" paper

Large Scale Distributed Deep Networks

Introduction

  • In machine learning, accuracy tends to increase with an increase in the number of training examples and number of model parameters.
  • For large data, training becomes slow on even GPU (due to increase CPU-GPU data transfer).
  • Solution: Distributed training and inference - DistBelief
  • Link to paper

DistBelief

@saadmahboob
saadmahboob / c++Template.cpp
Created March 29, 2017 21:33 — forked from kodekracker/c++Template.cpp
Basic C++ Template for Competitive Programming
/*
* Note: This template uses some c++11 functions , so you have to compile it with c++11 flag.
* Example:- $ g++ -std=c++11 c++Template.cpp
*
* Author : Akshay Pratap Singh
* Handle: code_crack_01
*
*/
/******** All Required Header Files ********/