View .gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = R. Tyler Croy | |
email = rtyler@brokenco.de | |
signingkey = BEF6CEA2 | |
[github] | |
user = rtyler | |
[pack] | |
threads = 2 | |
[core] | |
packedgitlimit = 1G |
View v-edit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VAULT_KEY=$1 | |
FORMAT=${2:-yaml} | |
export WORK_FILE=$(mktemp).yml | |
EDITOR=${EDITOR:-vim} | |
function cleanup { | |
rm -f ${WORK_FILE} | |
} |
View zoom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ZOOMHOME=$HOME/scratch/zoom | |
# To make audio work, pulseaudio needs to be configured to listen on the | |
# network via paprefs | |
exec docker run --rm \ | |
--net host \ | |
--cpuset-cpus 2 \ |
View Jenkinsfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent { | |
kubernetes { | |
label 'dind' | |
defaultContainer 'docker' | |
yaml """ | |
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: |
View build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'java' | |
id "com.github.jruby-gradle.base" version "1.7.0" | |
id "com.github.jruby-gradle.jar" version "1.7.0" | |
} | |
import com.github.jrubygradle.JRubyExec | |
dependencies { | |
jrubyJar "rubygems:state_machines:0.5.0" |
View gist:b24e399dd38546af11389482362faa44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ redspark git:(master) ✗ spark-submit --class "org.jruby.Main" --master local\[4\] --verbose build/libs/redspark-jruby-1.0-SNAPSHOT.jar simple.rb [30/608] | |
Using properties file: null | |
19/05/18 18:13:22 WARN Utils: Your hostname, grape resolves to a loopback address: 127.0.0.1; using 192.168.1.102 instead (on interface wlp58s0) | |
19/05/18 18:13:22 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to another address | |
Parsed arguments: | |
master local[4] | |
deployMode null |
View Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "rustyhub" | |
version = "0.1.0" | |
authors = ["R. Tyler Croy <rtyler@brokenco.de>"] | |
edition = "2018" | |
[dependencies] | |
futures = "~0.1.21" | |
clap = "~2.32.0" |
View main.adb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with MicroBit.Display; | |
with MicroBit.SPI; | |
with MicroBit.Buttons; use MicroBit.Buttons; | |
with MicroBit.Time; | |
with HAL.Bitmap; | |
with ST7735R; use ST7735R; | |
with nRF51.Device; | |
procedure Main is |
View check-updates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
DEPENDS=$(xmlstarlet sel -N x='http://maven.apache.org/POM/4.0.0' \ | |
-t -m x:project/x:dependencies/x:dependency \ | |
-v x:artifactId -o ' ' \ | |
pom.xml) | |
if [ ! -f update-center.actual.json ]; then | |
wget https://updates.jenkins.io/update-center.actual.json; | |
fi; |
View upload-to-azure.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
FILENAME=${1} | |
# expected to be defined in the environment | |
# - AZURE_STORAGE_ACCOUNT | |
# - AZURE_CONTAINER_NAME | |
# - AZURE_ACCESS_KEY | |
# inspired by |