Skip to content

Instantly share code, notes, and snippets.

View mrdrozdov's full-sized avatar

Andrew Drozdov mrdrozdov

View GitHub Profile
@mrdrozdov
mrdrozdov / generate.c
Created October 28, 2015 15:52
generate random numbers determinately with seed and max
/* generate.c
Using a "seed", ensures random but determinate numbers each time
this program is run.
To Run:
> g++ generate.c -o generate
> ./generate
Random Number [0]: 70
Random Number [1]: 43
@mrdrozdov
mrdrozdov / nyu-ssh.txt
Created November 27, 2015 05:21
NYU SSH Tips
###
# Prerequisites
1. Sign Up for CIMS account
2. Request a data folder
3. Request extra space
###
# Tips
@mrdrozdov
mrdrozdov / wp.sh
Created December 5, 2015 15:49 — forked from phlbnks/wp.sh
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Do you need to setup new MySQL database? (y/n)"
read -e setupmysql
if [ "$setupmysql" == y ] ; then
echo "MySQL Admin User: "
read -e mysqluser
@mrdrozdov
mrdrozdov / weekly-checkins.txt
Last active March 25, 2016 03:15
Weekly Checkins
Initiated every Saturday at 10:30am AEST, checkins is a time to share
what you are working on or an interesting bit of knowledge if
you'd prefer not to talk about your work.
@mrdrozdov
mrdrozdov / checkin-stats.py
Created March 21, 2016 00:24
checkin stats
import json
import pytz
import datetime
utc = pytz.utc
aest = pytz.timezone('Australia/Sydney')
def ts_to_date(ts):
date = datetime.datetime.utcfromtimestamp(int(ts)).replace(tzinfo=utc)
return aest.normalize(date)
@mrdrozdov
mrdrozdov / twitter-apps.txt
Last active April 3, 2016 17:31
twitter apps
actuallyhn
Beatrix Assistant
Buffer
Echofon
Hootsuite
IFTTT
Instagram
Janetter
Meet Edgar
newsycombinator
@mrdrozdov
mrdrozdov / encryption-badasses.md
Created April 15, 2016 15:03
encryption-badasses.txt

Following up with encryption.

Here's my favorite prof from michigan who is an encryption badass: https://jhalderm.com/

He's done a lot of cool stuff including hacking a voting machine so that it plays the the michigan fight song every time someone votes. He's actually done quite a bit of stuff with electronic voting machines (EVMs).

Nadia Heninger is also pretty sweet. She's done work w Halderman before: https://www.cis.upenn.edu/~nadiah/

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrdrozdov
mrdrozdov / palindrome_pq.py
Last active July 20, 2016 15:40
Palindrome with PQ
# %time find_biggest_palindrome()
# CPU times: user 103 ms, sys: 3.15 ms, total: 106 ms
# Wall time: 106 ms
from Queue import PriorityQueue
import time
class DecreasingFactors(object):
def __init__(self, num):