Skip to content

Instantly share code, notes, and snippets.

View escapewindow's full-sized avatar

Aki Sasaki escapewindow

View GitHub Profile
@bashbunni
bashbunni / .zshrc
Created January 4, 2023 16:28
CLI Pomodoro for Linux
# study stream aliases
# Requires https://github.com/caarlos0/timer to be installed. spd-say should ship with your distro
declare -A pomo_options
pomo_options["work"]="45"
pomo_options["break"]="10"
pomodoro () {
if [ -n "$1" -a -n "${pomo_options["$1"]}" ]; then
val=$1
@bashbunni
bashbunni / .zshrc
Created October 27, 2022 21:41
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
@jvehent
jvehent / age demo.md
Created January 6, 2020 15:53
age-encryption.org demo

Download & install

$ wget https://github.com/FiloSottile/age/releases/download/v1.0.0-beta2/age-v1.0.0-beta2-linux-amd64.tar.gz
$ tar -xzvf age-v1.0.0-beta2-linux-amd64.tar.gz
$ sudo cp age/* /usr/local/bin/

Generate a keypair

$ age-keygen -o ~/.age/(date +%s)-(hostname).key

#TaskCluster worker GPG key management

Tl;dr: taskcluster workers will have a gpg keypair as a second security check. We need to decide how to manage the keys. For anyone who manages worker AMIs or hardware worker imaging, this will likely mean there will be an additional required step or two.

##Goals

  • Security of the private key. The gpg private keys are ideally untouchable by humans or unvetted code.
  • Separation of roles. RelEng and RelOps users should not be able to perform sensitive TaskCluster tasks, or vice versa.
  • Low maintenance overhead. As little as possible, given the above goals

##Assumptions