Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

James Turnbull jamtur01

💭
I may be slow to respond.
View GitHub Profile
View gist:48eaf19146dc97482008eeb01f43a4d9
Bordertown (Finnish)
Trapped (icelandic)
The Bureau (French)
Deutschland 83
Giri/Haji
Vera
Wallander
Young Wallenberg
Collateral
Detective Montalbano
View gist:31b845b549a8dfe9f725e3cf1f97bcac
ot@5b32dfb7a25f:/var/lib/apt/lists# cat repositories.timber.io_public_vector-nightly_deb_ubuntu_dists_xenial_main_binary-amd64_Packages
Package: vector
Version: 0.11.0
Architecture: amd64
Homepage: https://vector.dev
Priority: optional
Standards-Version: 3.9.4
Maintainer: Vector Contributors <vector@timber.io>
Installed-Size: 116805
Depends:
@jamtur01
jamtur01 / code.fish
Created Jan 27, 2021
Fish shell function to launch Visual Studio Code - Insiders
View code.fish
function code --wraps='/Applications/Visual\ Studio\ Code\ -\ Insiders.app/Contents/Resources/app/bin/code' --description 'alias code /Applications/Visual\ Studio\ Code\ -\ Insiders.app/Contents/Resources/app/bin/code'
/Applications/Visual\ Studio\ Code\ -\ Insiders.app/Contents/Resources/app/bin/code $argv;
end
View gist:043c13fabdf9721ecad3da2395bd2b85
✖ make package-deb-x86_64 (2) (1h 17m 48s 786ms) ┃
cross build \
--release \
--target x86_64-unknown-linux-gnu \
--no-default-features \
--features target-x86_64-unknown-linux-gnu
Compiling vector v0.11.0 (/project)
error: could not compile `vector`.
Caused by:
@jamtur01
jamtur01 / ExportKindle.js
Last active Jun 19, 2020 — forked from jkubecki/ExportKindle.js
Amazon Kindle Export
View ExportKindle.js
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,ISBN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
View gist:de505c16720a8f1f13d1e910069ff04e
`d8t0eaqyfpMIxsf8wc51eKzbvZKaDpLIztsNwkUjj4xQQBlvTnvXoHYEr2nP2VOFsfLggvQXjrgijKHQuAWcdNQCqjOtrcvhtsDojzHeqlvczXsulNspKQYtHSmPY6OQstuvQMQs1KPImDWJOII7sOUmQRRKnsvvTvQQWMvLY2PIQ(Su6RuvrtJQQCCs03OsEMeQrtfA8sGtsaEUkxtvY5jOoejugfvu53envt7ewnH8ZclsqN1NdotnH1r7eAFuznCeYNGfIqcWhHENFBwQaHvtOcxGJslH264siWr2YhOO3T84uFZbec5Xgb8oHvrifgJv6hS9AK6J2jSAANWQj03mhKHiT0Jb8mATYLhEgAPr2xEaXz8uQeH1rOVzoidrAPhd4zOLTw5YdpdT0i7lpG4mEQCryftOVzo4yLlwB4mYWYhdBGX2YWpJmC52fEgpLQWZqVuvjm)rOVzo4yLlwB4meXf0CWHBK9LhqCgw(yydm2wg(zKHl3VWZqVuvjSxe6BMdow5I1godrCbnhC4gzF5beNHLpg2aJTLHFgz8YDDfEgk2l31vesqP0tWM(gGqvvvveYbw4IyvEoM2jGqiG98)sBGgPMqiw5I1qZOsOTYduymwjTtaHCGfERLVJ2jSAc9HX2YaR5EHZqKw64y7flYjECsmH1rOVzo4yLlwB4mYWYhdBGX2YWV4mYOQKB8mE666WZqVuvjSIj03JHbGXiugIuKhdWyBzaxl5cAo4etaH2AzfgJvs7ewnH(M5GJvUyTHZ4P6bpd9svLac5t2xEasGeqyD0oHvtOVzoidrAPhd4z0ALlp8m0sJSV8aIZ4PujcRJqFZCqgI0spgWZqlBTYLhEgAPr2xEaXz8u5IWkMqFpggagJqzisrEmaJTLbCTKlO5GtmH5pc9nZbhRCXAdNXt1dEg6LQkH9IqFZCWXkxS2WzKHLpg2aJTLHFgz4YTl8m8TShNH8TmkSvQf25kA0cLrNIJNXtxxhEgpLQWZqVuvjShc9nZbhRCXAdN
@jamtur01
jamtur01 / block_personal_appts
Created Oct 10, 2019 — forked from ttrahan/block_personal_appts
Google Apps Script to automatically create, edit and delete events on work calendar for personal calendar events. Instructions on how to set up can be found at https://medium.com/@willroman/auto-block-time-on-your-work-google-calendar-for-your-personal-events-2a752ae91dab
View block_personal_appts
function sync() {
var id="XXXXXXXXXX"; // CHANGE - id of the secondary calendar to pull events from
var today=new Date();
var enddate=new Date();
enddate.setDate(today.getDate()+7); // how many days in advance to monitor and block off time
var secondaryCal=CalendarApp.getCalendarById(id);
var secondaryEvents=secondaryCal.getEvents(today,enddate);
View gist:57cbc5078c1d16bbc56ba835d877a453
version: 2 # use CircleCI 2.0
shared: &shared
working_directory: /go/src/github.com/riemann/riemann-go-client
environment: # environment variables for the build itself
TEST_RESULTS: /tmp/test-results # path to where test results will be saved
GO111MODULES: on
GOLANGCI_LINT_VERSION: 1.15.0
steps: # steps that comprise the `build` job
- checkout # check out source code to working directory
View keybase.md

Keybase proof

I hereby claim:

  • I am jamtur01 on github.
  • I am jamtur01 (https://keybase.io/jamtur01) on keybase.
  • I have a public key ASBP5fc243Z6s-XgtJiPP54MHBKawO2KrxpKlA708OsB5go

To claim this, I am signing this object:

View gist:2a10846cb42cdb51963ad24307790138
kops create cluster \
--node-count 6 \
--zones us-east-2a,us-east-2b,us-east-2c \
--master-zones us-east-2a,us-east-2b,us-east-2c \
--node-size t3.medium \
--master-size t3.medium \
tornado.quicknuke.com