Skip to content

Instantly share code, notes, and snippets.

View walshie4's full-sized avatar
🐈
meow

Adam Walsh walshie4

🐈
meow
View GitHub Profile
@walshie4
walshie4 / exampleTransaction.js
Created July 20, 2018 01:14
How to properly use Google's Spanner nodejs client library to do a transactional update in a Promise workflow
import spanner from '@google-cloud/spanner';
const spannerOptions = {
min: 10,
max: 100,
};
// Pretend projectId is a variable with your project ID string in it
// and instanceName is a variable with your db instance name in it
// and databaseName is a variable with your db database name in it
const db = spanner({ projectId }).instance(instanceName).database(databaseName, spannerOptions);
@walshie4
walshie4 / blocklists.txt
Created December 8, 2014 02:04
Update of current Ultimate Blocklist output - 12.7.2014
This file has been truncated, but you can view the full file.
# List distributed by iblocklist.com
Malicious:1.34.23.251-1.34.23.251
Malicious:1.93.24.192-1.93.24.192
Malicious:1.93.24.206-1.93.24.206
Malicious:1.93.24.244-1.93.24.244
Malicious:1.93.26.8-1.93.26.8
Malicious:1.180.66.226-1.180.66.226
Malicious:1.192.128.23-1.192.128.23
Malicious:5.12.104.1-5.12.104.1

Keybase proof

I hereby claim:

  • I am walshie4 on github.
  • I am walshie4 (https://keybase.io/walshie4) on keybase.
  • I have a public key whose fingerprint is 8B5E FD88 7DC8 D080 DA2B ECA0 9E65 0675 AD96 947B

To claim this, I am signing this object:

@walshie4
walshie4 / get_countries.py
Created July 23, 2014 05:53
Creates a list of countries names scraped from State.gov
#!/usr/bin/env python
#Written by: Adam Walsh
#Written on 7/23/14
#Gets a current list of countries from state.gov
from selenium import webdriver
sel = webdriver.Firefox()
sel.get("http://www.state.gov/misc/list/")
content = sel.find_element_by_id('tier3-landing-content-wide')
content = content.find_element_by_tag_name('table')