Skip to content

Instantly share code, notes, and snippets.

View d8aninja's full-sized avatar
🐙

Jeff d8aninja

🐙
View GitHub Profile
@d8aninja
d8aninja / gist:9800272
Created March 27, 2014 04:33
A Pen by Marco Barría.
We couldn’t find that file to show.
# Thanks to John Maindonald
library(WDI)
indnams <- c("fertility.rate", "life.expectancy",
"population", "GDP.per.capita.Current.USD",
"15.to.25.yr.female.literacy")
inds <- c('SP.DYN.TFRT.IN','SP.DYN.LE00.IN',
'SP.POP.TOTL','NY.GDP.PCAP.CD',
'SE.ADT.1524.LT.FE.ZS')
wdiData <- WDI(country="all", indicator=inds,
start=1960, end=format(Sys.Date(), "%Y"),
# Decision Tree Classifier
from sklearn import datasets
from sklearn import metrics
from sklearn.tree import DecisionTreeClassifier
# load the iris datasets
dataset = datasets.load_iris()
# fit a CART model to the data
model = DecisionTreeClassifier()
model.fit(dataset.data, dataset.target)
// Source: http://www.census.gov/geo/www/ansi/countylookup.html
var countyToFIPS = {
'Alabama': {
'Autauga County': '01001',
'Baldwin County': '01003',
'Barbour County': '01005',
'Bibb County': '01007',
'Blount County': '01009',
'Bullock County': '01011',
### Keybase proof
I hereby claim:
* I am d8aninja on github.
* I am d8aninja (https://keybase.io/d8aninja) on keybase.
* I have a public key ASCunXz9Wt3kbmFP58t92JjuPpfHaJOR6aS99pJg8KMwrQo
To claim this, I am signing this object:
@d8aninja
d8aninja / thpsetup.py
Created July 24, 2017 04:52 — forked from oaass/thpsetup.py
This will install the additional tools to Kali recommended by "The Hacker Playbook". It will install the tools in /opt/tools
#!/bin/bash
echo ""
echo "=========================================================================="
echo "= Pentest Attack Machine Setup ="
echo "= Based on the setup from The Hacker Playbook ="
echo "=========================================================================="
echo ""
# Prepare tools folder
@d8aninja
d8aninja / filedec.py
Created July 24, 2017 04:54 — forked from oaass/filedec.py
Helper script to try many different openssl cipher algorithms against a file
#!/usr/bin/env python
import subprocess
import argparse
import os
import sys
def yesno(message_type, default = 'y'):
if message_type == 'DELETE_FILES_IN_FOLDER':
question = 'The folder is not empty. Do you want to delete the files in it?'
@d8aninja
d8aninja / README.md
Created May 27, 2018 22:48 — forked from hofmannsven/README.md
My simply Git Cheatsheet

Keybase proof

I hereby claim:

  • I am d8aninja on github.
  • I am d8aninja (https://keybase.io/d8aninja) on keybase.
  • I have a public key whose fingerprint is 656D D55A 168A BEF9 E8B3 CD18 1999 6634 146D 97AD

To claim this, I am signing this object: