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 / thanks.js
Created January 29, 2016 09:16
You read my blog, and that makes you great
console.log(‘Thank you for reading, keep in touch below!);
@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
@dawsbot
dawsbot / bootstrapStarter.html
Last active February 13, 2016 21:19
Barebones html file for starting a new bootstrapped html file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title></title>
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
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) {
### 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:
//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){
@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
@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 / cryptoVal links
Last active August 29, 2015 14:26
Links to the original sources of information/images.
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()