Skip to content

Instantly share code, notes, and snippets.

View numberwhun's full-sized avatar

Jefferson Kirkland numberwhun

View GitHub Profile
@numberwhun
numberwhun / Quotes
Created November 15, 2014 17:38
A Collection of Quotes
Nobody should start to undertake a large project. You start with a small trivial project, and you should never expect it to get large. If you do, you’ll just overdesign and generally think it is more important than it likely is at that stage. Or worse, you might be scared away by the sheer size of the work you envision. So start small, and think about the details. Don’t think about some big picture and fancy design. If it doesn’t solve some fairly immediate need, it’s almost certainly over-designed. And don’t expect people to jump in and help you. That’s not how these things work. You need to get something half-way useful first, and then others will say “hey, that almost works for me”, and they’ll get involved in the project.
— Linus Torvalds
======================================================
Code never lies, comments sometimes do.
— Ron Jeffries
What should I do to be a Data Scientist?
Written By Armen K.
Borrowed from: http://www.datasciencebowl.com/lp/national-data-science-bowl/blog
I’m often asked “what are good things to do to get involved with data science?” In this post I’ll share with you some key activities you can get started with today.
Whether it is photos on phones, links in a social network, or information around health, our society has an increased appreciation and enthusiasm about data. It’s an exciting time as open data initiatives are met with open software tools that enable large-scale analysis. To actually get insight from data requires intellectual curiosity and a mix of skills and knowledge.
Learn more math:
Being able to formalize different relationships in data enables you to identify potentially useful features. Statistics plays an important role for testing whether candidate relationships are salient or spurious. Datasets are often high-dimensional and are increasingly large. The ability to think of subspaces and projecti
@numberwhun
numberwhun / password_crackers_cheat_sheet
Created January 26, 2015 10:58
A cheat sheet for password crackers
Borrowed from: http://www.unix-ninja.com/p/A_cheat-sheet_for_password_crackers
In this article I am going to share some bash scripting commands and regular expressions which I find useful in password cracking. Most of the time, we find hashes to crack via shared pastes websites (the most popular of them being Pastebin.) Isolating the hashes by hand can be a time consuming process; for that reason we are going to use regular expressions to make our life easier!
Extract md5 hashes
# egrep -oE '(^|[^a-fA-F0-9])[a-fA-F0-9]{32}(1|$)' *.txt | egrep -o '[a-fA-F0-9]{32}' > md5-hashes.txt
An alternative could be with sed
# sed -rn 's/.*[^a-fA-F0-9]([a-fA-F0-9]{32})[^a-fA-F0-9].*/1/p' *.txt > md5-hashes
@numberwhun
numberwhun / Top15_Security_Tools&Utilities
Created February 10, 2015 20:24
Top 15 Security Tools and Utilities
Top 15 Security Tools and Utilities
1. Nmap
Nmap is a free open source utility for security auditing and network exploration. Nmap("Network Mapper") was designed to rapidly scan large networks, although it works fine against single hosts. Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services(application name and version) those hosts are offering, what operating systems(and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics. Nmap is a very versatile tool, once you fully understand the results. Nmap runs on most types of computers and both console and graphical version are available. Nmap is free and open source
Nmap can be used by beginners(-sT) or by pros alike(-packet_trace).
Nmap available for download here: http://www.insecure.org/nmap/download.html
@numberwhun
numberwhun / learning_links
Last active August 29, 2015 14:15
Learning Links
@numberwhun
numberwhun / filename_parts
Created April 6, 2015 14:44
Getting parts of a filename in bash
~% FILE="example.tar.gz"
~% echo "${FILE%%.*}"
example
~% echo "${FILE%.*}"
example.tar
~% echo "${FILE#*.}"
tar.gz
~% echo "${FILE##*.}"
gz
@numberwhun
numberwhun / iPhone Crashing Code
Created May 28, 2015 20:25
iPhone Crashing Code - 2015-05-28
effective. Power لُلُصّبُلُلصّبُررً ॣ ॣh ॣ ॣ 冗
@numberwhun
numberwhun / setup-workstation.sh
Last active August 29, 2015 14:26 — forked from igniteflow/setup-workstation.sh
Set up a new box from a fresh Xubuntu install
#!/bin/bash
NAME=Phil Tysoe
EMAIL=philtysoe@example.com
SUBLIME_TEXT_2_DOWNLOAD_URL=http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1%20x64.tar.bz2
ECLIPSE_DOWNLOAD_URL=http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/eclipse/downloads/drops4/R-4.2.2-201302041200/eclipse-SDK-4.2.2-linux-gtk-x86_64.tar.gz
# setup ssh key
ssh-keygen -t rsa -C "${EMAIL}"
cat ~/.ssh/id_rsa.pub
@numberwhun
numberwhun / classes.rb
Created August 22, 2011 06:19 — forked from jbrechtel/classes.rb
Ruby classes
#simple class
class Person
end
#inheritance
class Sarah < Person
end
#class with constructor arguments
class Jet
@numberwhun
numberwhun / promptcolor
Created September 14, 2011 08:35 — forked from jtmkrueger/promptcolor
color your prompt and show git branch
#color and git branch
parse_git_branch() {··
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export CLICOLOR=1
export GREP_OPTIONS="--color"
export LSCOLORS=gxfxcxdxbxegedabagacad
PS1='\n\[\e[1;36m\]\w \[\e[m\]\[\e[1;33m\]$(parse_git_branch)\[\e[m\] \n> '