Skip to content

Instantly share code, notes, and snippets.

View figadore's full-sized avatar
loading...

Reese figadore

loading...
  • Portland, OR
View GitHub Profile
@figadore
figadore / hasher
Created January 25, 2023 21:00
experiment in cryptographic methods
javascript: (function() {
var lowers = "abcdefghjkmnpqrstuvwxyz";
var capitals = "ABCDEFGHJKLMNPQRSTUVWXYZ";
var numbers = "123456789";
var specials = '[(){$<#]\/?}>-=_+!*&@;:,.^%';
var letters = lowers + capitals + numbers + specials;
function hash(input) {
var hash = 0,
i, chr, len;
if (input.length == 0) return hash;
@figadore
figadore / get.sh
Last active August 16, 2021 19:00
Get ssh private key fingerprint in GitHub's format (e.g. for GitHub Apps)
openssl rsa -in /path/to/key.pem -pubout -outform DER | openssl sha256 -binary | openssl base64
@figadore
figadore / .github-workflows-terraform.yml
Created July 1, 2021 19:58
Non-spammy terraform plan comments for PRs
- name: TF init
run: terraform init
- name: TF plan (color)
run: terraform plan -var-file=prod.tfvars -out=planfile
- name: Show plan (no color)
id: plan
run: terraform show -no-color planfile
- name: Find Comment
uses: peter-evans/find-comment@v1
id: fc
@figadore
figadore / commit-msg
Last active April 23, 2020 18:05 — forked from aradi/git-commit-msg-hook
Git commit message hook
#!/bin/bash
# adapted from http://addamhardy.com/2013/06/05/good-commit-messages-and-enforcing-them-with-git-hooks.html
################################################################################
# Store this file at ~/.git-hooks-global/commit-msg. You may need to make the
# script executable with 'chmod +x .git-hooks-global/commit-msg'. Finally, run
# 'git config --global core.hooksPath ~/.git-hooks-global/'
################################################################################
exec < /dev/tty
~/.git-hooks-global/validate-msg.py $1
@figadore
figadore / keybase.md
Created June 28, 2018 04:14
keybase proof

Keybase proof

I hereby claim:

  • I am figadore on github.
  • I am figadore (https://keybase.io/figadore) on keybase.
  • I have a public key ASCNA6bN747wbvyIE0Y096tADaEyplIkmdxbk2eE4cTG6Qo

To claim this, I am signing this object: