I hereby claim:
- I am jeeger on github.
- I am jeeger (https://keybase.io/jeeger) on keybase.
- I have a public key whose fingerprint is 1C9C DBB9 8C63 83DB 9872 EA78 FDF8 34A5 4810 255C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // ==UserScript== | |
| // @name AlternativeDoiResolver | |
| // @version 1 | |
| // @grant GM.xmlHttpRequest | |
| // @description Converts the pretty useless DOI links to clickable links ot a custom resolver. | |
| // @include *sciencedirect* | |
| // @include *springer* | |
| // @include *ieeexplore* | |
| // @include *acm.org* | |
| // @require https://code.jquery.com/jquery-3.5.1.min.js |
| scp() { | |
| totalcolons=$(echo "$*" | tr -cd ':' | wc -c) | |
| if [[ totalcolons -lt 1 ]]; then | |
| echo "Less than 1 colon in scp command." | |
| else | |
| /usr/bin/scp $@ | |
| fi | |
| } |
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| #Warn ; Enable warnings to assist with detecting common errors. | |
| #SingleInstance force | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| markSet = 0 | |
| cxPrefix = 0 | |
| GroupAdd, EmacsControls, ahk_exe firefox.exe | |
| GroupAdd, EmacsControls, ahk_exe WINWORD.EXE |
| if which sponge &>/dev/null; then | |
| qjc() { | |
| ALIAS="$1" | |
| DIR="$(pwd)" | |
| hash -d "$1"="$DIR" | |
| echo "hash -d \"$1\"=\"$DIR\"" >> ~/.zsh/dirhashes | |
| } | |
| qjd() { |
| #!/bin/bash | |
| NUPX="${1%%x*}" | |
| NUPY="${1##*x}" | |
| PAGESTART="${2%%-*}" | |
| PAGEEND="${2##*-}" | |
| FILE="$3" | |
| # TODO: Check file and values. | |
| PAGESIZES="$(pdfinfo -box -f "$PAGESTART" -l "$PAGEEND" "$FILE" | awk '/[0-9]+ size:/ {print $4 "x" $6}')" | |
| PAGESIZEX="${PAGESIZES%%x*}" |
| #!/usr/bin/env bb | |
| (ns bookstats | |
| (:require [babashka.pods :as pods] | |
| [clojure.pprint :as pprint])) | |
| (pods/load-pod 'org.babashka/go-sqlite3 "0.1.0") | |
| (pods/load-pod 'retrogradeorbit/bootleg "0.1.9") | |
| (require '[pod.babashka.go-sqlite3 :as sqlite] | |
| '[pod.retrogradeorbit.hickory.select :as s] | |
| '[pod.retrogradeorbit.bootleg.utils :as utils]) | |
| (import [java.net URLEncoder] |
| #!/bin/env bb | |
| (require '[babashka.fs :as fs]) | |
| (require '[babashka.curl :as curl]) | |
| (defn get-day-component [] | |
| (let [components (fs/components (fs/cwd))] | |
| (-> (filter #(str/starts-with? % "day") components) | |
| first))) | |
| (defn get-day-number [day-name] |
| use anyhow::{Error, Result}; | |
| use std::env; | |
| use std::fs::read_to_string; | |
| use std::io::{stderr, stdout, Write}; | |
| use yaml_rust::YamlLoader; | |
| fn kube_config_path() -> String { | |
| let mut home = dirs::home_dir().expect("No home directory found"); | |
| home.extend(vec![".kube", "config"]); | |
| env::var("KUBECONFIG").unwrap_or( |