This file contains hidden or 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
FROM openjdk:8-alpine | |
COPY HelloEc.java . | |
RUN javac -g HelloEc.java | |
CMD ["java", "HelloEc"] |
This file contains hidden or 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
CFLAGS=-Wall | |
LDFLAGS=-leprimus -lprimusP11 -I/usr/local/primus/include -L/usr/local/primus/lib -lsodium | |
CC = gcc | |
SRC = pkcs11_play.c | |
OUT = pkcs11_play.o | |
LOG = /tmp/primus.log | |
.PHONY:all clean watch build |
This file contains hidden or 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
PRIVATE_KEY="PARENT PRIVATE KEY" | |
ACTIVE_PROFILE_ID="PARENT ACTIVE PROFILE ID" | |
ACCOUNT_ID="PARENT ACCOUNT ID" | |
CHILD_ACCOUNT="CHILD ACCOUNT ID (generated by register-identity.js)" | |
CHILD_PRIVATE_KEY="CHILD PRIVATE KEY (generated by register-identity.js)" | |
DBCP_LOGLEVEL="debug" |
This file contains hidden or 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 | |
CACHE=$HOME/.sprintcache | |
function updatecache { | |
sprint=$(jira sprint \ | |
| grep ACTIVE \ | |
| awk '{split($0,a,"│"); gsub(/^[ \t]+/, "", a[3]); gsub(/[ \t]+$/, "", a[3]); print a[3]}') | |
echo "Updated Active Sprint -> $sprint" | |
echo -n $sprint > $CACHE | |
} |
This file contains hidden or 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 | |
primary="$( xrandr -q | awk '/ connected primary/{split($0,a," "); print a[1]}' | head -n 1 )" | |
secondary="$( xrandr -q | awk '!/primary/{print}' | awk '/ connected/{split($0,a," "); print a[1]}' | head -n 1 )" | |
hi () { | |
xrandr --output $primary --mode '3200x1800' --pos '0x1040' | |
xrandr --output $secondary --mode '3840x2160' --pos '3200x0' --rotate 'left' | |
gsettings set org.gnome.desktop.interface scaling-factor 2 | |
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gdk/WindowScalingFactor': <2>}" |
This file contains hidden or 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 | |
PORT=8080 | |
DIR=$HOME/Development/single-ops-prod | |
rm -rf $DIR | |
git worktree add --detach $DIR | |
cd $DIR | |
RAILS_ENV=production |
This file contains hidden or 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 | |
scriptname="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")" | |
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
patch="$dir/migration.patch" | |
read -r -d '' help << EOM | |
Usage: | |
$scriptname command [file] |
This file contains hidden or 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 | |
# Add to bashrc to alias as "git sync": | |
# git() { if [[ $@ == 'sync' ]]; then command git-umatm; else command git "$@"; fi } | |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
REMOTE_NAME=${1:-"origin"} | |
MASTER_BRANCH_NAME=${2:-"master"} | |
print_header() { |
This file contains hidden or 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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: Keybase OpenPGP v2.0.49 | |
Comment: https://keybase.io/crypto | |
xsFNBFZQ3yMBEACZaXMiCCpCJMxmJ43r2Gq4CwhJE2qD+UDeoDTqJgWi1o8NjrtT | |
qLUSHLFcvONJ6ESYSDEbBQmbh9+HuwCq8uat5lbICk4wGeNIFVmn5RGeQVbmtvH0 | |
m3ZDhzmLcL3sHvKx43YrbpPzU/sJryhnq/VzS/Rcmr7G/dZvGmXYx0MTZ6q5AoGl | |
69/lIrT/v+shnBcj9QHfcQar/ODRTUnLn2lJq4Ty4S11B5UIhfA/FWmMuCNof2Za | |
ic9ZbQvT2szgwfTHN2HnYjNwzgSEQ5phpzMqesJA8p6AAcRULjEk8/N0CYYLyETH | |
yAGGLD5gdJWQgkO/+n0DWbREruUWyFxgDMH99uA1/J7zzeJ6dBhKyM4DUTREaaLA |
This file contains hidden or 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
<template name="example"> | |
<button id="button">{{buttonName}}</button> | |
</template> |