Skip to content

Instantly share code, notes, and snippets.

View mrmoje's full-sized avatar

James Nzomo mrmoje

View GitHub Profile
@mrmoje
mrmoje / unlock rsa key
Created October 22, 2014 13:30
unlock rsa key
openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new
@mrmoje
mrmoje / a-notes.md
Created November 28, 2016 13:38 — forked from creationix/a-notes.md
gikfun esp8266 kit

Amazon has a really good deal on an ESP8266 board in stock with prime. http://www.amazon.com/Gikfun-ESP8266-ESP-12-Industrial-version/dp/B00RK1W7R6

There are no instructions with it so I bought one and between probing with my multimeter and trying different things, I was able to get nodemcu running.

Yellow jumper seems to toggle between flash mode and at mode, closed is flash mode.

three pins labeled gnd, tx, tr are for uart and are what you should plug in. tx-tx,rx-rx,gnd-gnd.

You can leave power dangling

@mrmoje
mrmoje / nuke_by_date_threshold.sh
Created February 21, 2017 21:38
nuke directories by date threshold
#credit:- http://stackoverflow.com/questions/33091013/delete-files-older-than-specific-date-in-linux
#example:- nuke all files created before jan 1 2017,
touch -t 201701010000 /tmp/2017-Jan-01-0000
find `pwd` -maxdepth 1 -type d ! -newer /tmp/2017-Jan-01-0000 -exec rm -rf "{}" \
@mrmoje
mrmoje / 5m.py
Created March 14, 2017 20:21
A sample PyPy vs CPython wager script
from __future__ import print_function
import cProfile
import random
import string
from datetime import datetime
def find_duplicates(seq):
"""