Skip to content

Instantly share code, notes, and snippets.

@jasonk
jasonk / Jenkinsfile
Last active November 22, 2022 03:23
Docker credential helper for authenticating from environment variables
pipeline {
environment {
DOCKER_REGISTRY = 'https://my-docker-registry.example.com'
DOCKER_CREDS = credentials( 'my-docker-credentials' )
}
}
@jasonk
jasonk / TamperMonkey Utilities.md
Last active September 30, 2019 21:15
TamperMonkey Utility Scripts

TamperMonkey Utility Scripts

To use, include them in your TamperMonkey script, like so:

// @require https://gist.githubusercontent.com/jasonk/24bd00ff72b686f0b8a098290ef754bf/raw/tampermonkey-utils.js
// @require https://gist.githubusercontent.com/jasonk/24bd00ff72b686f0b8a098290ef754bf/raw/tampermonkey-cleanup.js

Note that tampermonkey-utils.js must be loaded before any of the others are loaded.

Keybase proof

I hereby claim:

  • I am jasonk on github.
  • I am jasonkohles (https://keybase.io/jasonkohles) on keybase.
  • I have a public key ASDct1967s50TUfSbObjpQyCXi0IYMbrRd0ZRzh2DDpaYwo

To claim this, I am signing this object:

@jasonk
jasonk / patch-meteor.sh
Last active October 7, 2015 17:32
Monkey patch Meteor to use CA certs from the OS X keychain.
#!/bin/bash
set -e
# This script monkey-patches MeteorJS to allow it to work from behind a MITM
# proxy that forges SSL keys. You may need this to get through a corporate
# content-inspection proxy, for example, since Meteor doesn't allow you to
# specify the CA certs to use.
cd "$HOME/.meteor"
cd "$(dirname "$(readlink meteor)")"
cd tools
@jasonk
jasonk / setup.sh
Last active August 29, 2015 13:56
Setup script for Minecraft Bukkit, ScriptCraft, and MQTT
#!/bin/bash
cd "$(dirname "$0")"
# CraftBukkit download URL
CBURL="http://repo.bukkit.org/content/groups/public/org/bukkit/craftbukkit/1.7.2-R0.3/craftbukkit-1.7.2-R0.3.jar"
# ScriptCraft download URL
SCURL="http://scriptcraftjs.org/download/2014-02/v2.0.4/scriptcraft.jar"
# Install CraftBukkit
if [ ! -f craftbukkit.jar ]; then