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 openpgp.md

openpgp4fpr:A2C861F07924C92D698D5DDA6AFC66C2625EC8BB

@jamtur01
jamtur01 / convert.py
Created July 1, 2022 18:02 — forked from mturilin/convert.py
Converst TextExpander csv to espanso yaml
View convert.py
#!/usr/bin/python3
import yaml
import sys
import csv
# create root yaml
matches = []
# open file
View warrior_spellmenu.lua
local ConROC_Warrior, ids = ...;
local lastFrame = 0;
local lastDebuff = 0;
local lastRage = 0;
local lastStun = 0;
local plvl = UnitLevel('player');
local defaults = {
View warlock_spellmenu.lua
local ConROC_Warlock, ids = ...;
local lastFrame = 0;
local lastDemon = 0;
local lastCurse = 0;
local lastDebuff = 0;
local lastSpell = 0;
local lastOption = 0;
local plvl = UnitLevel('player');
View buttons.lua
ConROC.Spells = {};
ConROC.Keybinds = {};
ConROC.DefSpells = {};
ConROC.Flags = {};
ConROC.SpellsGlowing = {};
ConROC.WindowsGlowing = {};
ConROC.DefGlowing = {};
ConROC.DefWindowsGlowing = {};
ConROC.DamageFramePool = {};
ConROC.DamageFrames = {};
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 January 27, 2021 18:47
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 June 19, 2020 05:35 — 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) {