Skip to content

Instantly share code, notes, and snippets.

View dawsbot's full-sized avatar
💭
Bringing web3 to emerging markets - web3perf

Dawson Botsford dawsbot

💭
Bringing web3 to emerging markets - web3perf
View GitHub Profile
@dawsbot
dawsbot / Introduction_hackathon.md
Last active August 29, 2015 14:05
Intro Hackathon

Team Members

  • Dawson Botsford

Visualization

visualization

JSFiddle

//taken from "Example single address request" on https://chain.com/docs/v2/node/#bitcoin-address
var chain = require('chain-node');
chain.getAddress('17x23dNjXJLzGMev6R63uyRhMWP1VHawKc', function(err, resp) {
console.log(resp);
});
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('http://google.com')
#Get I"m feeling lucky text
element = driver.find_element_by_xpath('//*[@id="gbqfbb"]')
print element.get_attribute('value')
driver.close()
@dawsbot
dawsbot / cryptoVal links
Last active August 29, 2015 14:26
Links to the original sources of information/images.
@dawsbot
dawsbot / ports.json
Last active September 14, 2015 07:41
A json object listing off ports of interest (things worth scanning for)
{
FTP: 21,
SSH: 22,
Telnet: 23,
SMTP: 25,
DNS: 53,
HTTP: 80,
POP3: 110,
IMAP: 143
}
@dawsbot
dawsbot / nodeSetup.sh
Last active September 17, 2015 02:12
When on a new system get node setup in a jiffy
sudo apt-get update
sudo apt-get install node
sudo apt-get install npm
which node
which npm
//Testing to come soon
var md5 = require('md5');
function table() {
//Implement the hash table with one array
this.arr = [];
//Use a hack of md5 to implement a number 0 <= encoded <= 9
this.encode = function (toEncode){
### Keybase proof
I hereby claim:
* I am dawsonbotsford on github.
* I am dawsonbotsford (https://keybase.io/dawsonbotsford) on keybase.
* I have a public key whose fingerprint is CE08 29CD 6A08 7DDD E581 7E7E FB08 BEA1 17BB AB81
To claim this, I am signing this object:
var express = require('express');
var http = require('https');
var app = express();
function getUSD(callback) {
http.get('https://blockchain.info/ticker', function(res) {
var body = '';
res.setEncoding('utf8');
res.on('data', function(data) {
@dawsbot
dawsbot / gitBackup.sh
Created January 29, 2016 09:07
Always have your code in two git servers by backing up with Bitbucket
#Enter this as one line
git remote set-url — add — push origin git@bitbucket.org:dawsonbotsford/vimrcbuilder.git
#Re-add the original URL as well. Again do this with one line
git remote set-url — add — push origin git@github.com:dawsonbotsford/vimrcBuilder.git
#Verify everything worked
git remote -v