Skip to content

Instantly share code, notes, and snippets.

View ameenkhan07's full-sized avatar
:shipit:

Ameen Khan ameenkhan07

:shipit:
View GitHub Profile
import os, json, subprocess
file = open('pycon_*.json', 'r')
video = json.loads(file.read())
for i, v in video.items():
print("Installing {} ... ".format(v))
url = "youtube-dl -ciw --no-mtime -f 18 \"" + str(i)+ "\""
os.system(url)
@ameenkhan07
ameenkhan07 / System Design.md
Created December 26, 2016 13:11 — forked from vasanthk/System Design.md
System Design Cheatsheet

#System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

##Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@ameenkhan07
ameenkhan07 / github.audio
Created November 22, 2016 10:54
Github Audio Under the Hood -
var eventQueue = [];
var svg;
var element;
var drawingArea;
var width;
var height;
var volume = 0.6;
var ULTIMATE_DREAM_KILLER = false; // https://github.com/debugger22/github-audio/pull/19
var orgRepoFilterNames = [];
@ameenkhan07
ameenkhan07 / index.html
Last active July 2, 2016 17:45
ChaiChui
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="https://raw.githubusercontent.com/novus/nvd3/master/build/nv.d3.css" rel="stylesheet" type="text/css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.2/d3.min.js" charset="utf-8"></script>
<script src="https://raw.githubusercontent.com/novus/nvd3/master/build/nv.d3.js"></script>
<style>
text {
import sys
from socket import socket, AF_INET, SOCK_DGRAM
SERVER_IP = '127.0.0.1'
PORT_NUMBER = 5000
SIZE = 1024
print("Test client sending packets to IP {0}, via port {1}\n".format(SERVER_IP, PORT_NUMBER))
mySocket = socket(AF_INET, SOCK_DGRAM)
@ameenkhan07
ameenkhan07 / CustomBootloader
Last active August 29, 2015 14:16
16 bit assembly bootstrapped loader
1. compile the above code using nasm using the command :
nasm -f bin boot.asm -o boot.img
2. make a bootable usb of the image file created above.