Skip to content

Instantly share code, notes, and snippets.

View ipv6freely's full-sized avatar

Chris Jones ipv6freely

  • Dialpad, Inc.
  • Yelm, WA
  • 11:45 (UTC -08:00)
View GitHub Profile
import requests
import json
username = ""
password = ""
ghin_list = [] # comma-separated list of GHINs
def login(username,password):
login_url = 'https://api.ghin.com/api/v1/golfer_login.json'
@ipv6freely
ipv6freely / ghin.py
Created July 4, 2023 19:15
GHIN Python Script
import requests
import json
email_or_ghin = ""
password = ""
url = "https://api2.ghin.com/api/v1/golfer_login.json"
headers = {"accept": "application/json", "Content-Type": "application/json"}
data = {
@ipv6freely
ipv6freely / watax.py
Created May 30, 2023 21:52
Python Script to get Washington Tax Rates and Location Code
import requests
street_address = "110601 5th Ave NE"
zip_code = "98125"
data = {}
url = f"http://webgis.dor.wa.gov/webapi/AddressRates.aspx?output=text&addr={street_address}&city=&zip={zip_code}"
response = requests.get(url)
for item in response.text.split():
const abi = [{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"reservedSupply","type":"uint256"},{"internalType":"uint256","name":"tokensPerMint","type":"uint256"},{"internalType":"address payable","name":"treasuryAddress","type":"address"}],"internalType":"struct NFTCollection.DeploymentConfig","name":"deploymentConfig","type":"tuple"},{"components":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"bool","name":"metadataUpdatable","type":"bool"},{"internalType":"uint256","name":"publicMintPrice","type":"uint256"},{"internalType":"bool","name":"publicMintPriceFrozen","type":"bool"},{"internalType":"uint256","name":"presaleMintPrice","type":"uint256"},{"internalType":"bool","name":"presaleMintPriceFrozen","type":"bool"},{"internalType":"uint2

Using an Access Token for the first time

Follow the instructions on Github to Create an Access Token in Github

Configure Git to use the osxkeychain

By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.

You can tell Git you want to store credentials in the osxkeychain by running the following:-

@ipv6freely
ipv6freely / MultiExporter.jsx
Created March 19, 2022 20:31 — forked from TomByrne/MultiExporter.jsx
An Illustrator script for exporting layers and/or artboards into separate files (PNG8 / PNG24 / EPS / PDF / SVG / JPG / FXG).See http://www.tbyrne.org/export-illustrator-layers-to-svg-files
// MultiExporter.jsx
// Version 0.1
// Version 0.2 Adds PNG and EPS exports
// Version 0.3 Adds support for exporting at different resolutions
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize
// Version 0.5 Fixed cropping issues
// Version 0.6 Added inner padding mode to prevent circular bounds clipping
//
// Copyright 2013 Tom Byrne
// Comments or suggestions to [email protected]
@ipv6freely
ipv6freely / lab1-setup.sh
Created May 6, 2020 15:52
Bash Script to Load Junos Configs on Lab Devices
#!/bin/bash
echo "Loading lab 1 config on mxA"
ssh 172.25.11.1 "configure;load override /var/home/lab/jmf/lab1-start.config;commit and-quit"
echo
echo
echo "*************************"
echo "Loading lab 1 config on mxB"
ssh 172.25.11.2 "configure;load override /var/home/lab/jmf/lab1-start.config;commit and-quit"
echo
@ipv6freely
ipv6freely / insertPageNumbers_v2.jsx
Created August 9, 2019 18:49
Adobe Illustrator - Inserting Page Numbers v2
#target illustrator
//#targetengine main
// script.name = insertPageNumbers_v2.jsx; // works with CS4 & CS5
// script description = Inserts page numbers (or any other text) to all artboards in the active document;
// script.required = at least one open document
// script.parent = CarlosCanto // 5/25/12;
// script.elegant = false;
// script.updates = added options to insert Date, Time, Full File Name, & File Name;
## Specs:
8x CPU
32GB RAM
128GB HD
1 NIC
Ubuntu 14.04.2 (ubuntu-14.04.2-server-amd64.iso)
Contrail 3.0 (contrail-install-packages_3.0.0.0-2725-ubuntu-14-04kilo_all.deb)