Skip to content

Instantly share code, notes, and snippets.

@akerl
akerl / Raw.txt
Created October 29, 2020 21:01
Tea list
Golden Pig 2019
Spring Morning 2019
Autumn Ye Sheng 2013
Jingmai Honey Aroma 2019
Glorious Years 2014
@akerl
akerl / setup.md
Created April 5, 2020 17:29
TeslaCam setup

Stage 0

  1. Create file "ssh" to enable SSH server
  2. Add "dtoverlay=dwc2" to end of /boot/config.txt
  3. Remove resize_init from cmdline.txt
  4. Create "wpa_supplicant.conf" with the following config:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
@akerl
akerl / PortChangeNotes.md
Last active December 9, 2020 02:40
Unifi LetsEncrypt setup

Edit /etc/nginx/sites-enabled/cloudkey-webui to move the listen 443 to listen 1443

Add the following server block to the nginx config:

server {
        listen [::]:443 ssl ipv6only=off;
        ssl_protocols TLSv1.2;

 ssl_certificate /root/.acme.sh/controller.infra.home.a-rwx.org/controller.infra.home.a-rwx.org.cer;
banks:
chase_sapphire:
type: plaid
account: Liabilities:Credit:sapphire
name: Sapphire
amazon:
type: plaid
account: Liabilities:Credit:amazon
name: Rewards Card
amex:
#!/usr/bin/env ruby
require 'nokogiri'
require 'open-uri'
require 'tty-progressbar'
require 'fileutils'
require 'date'
require 'pry'
@akerl
akerl / Issue-Status-Change-Blocking.groovy
Created September 29, 2019 08:36
Groovy scriptrunner jira
def statusChange = changelog
.items
.find { (it as Map).field == "status" }
if ( statusChange == null ) {
logger.info("No status change in event")
return
}
def blocking = (statusChange as Map).toString != "Resolved"
~/src/akerl/linode-account master* ⇡ akerl@codepad
❯ tfa
linode_stackscript.this: Refreshing state... (ID: 425349)
linode_domain.wg: Refreshing state... (ID: 1219892)
data.linode_profile.profile: Refreshing state...
linode_instance.codepad: Refreshing state... (ID: 12945190)
module.pink-vpn.linode_instance.vpn: Creating...
alerts.#: "" => "<computed>"
backups.#: "" => "<computed>"
1 maggienichols oklahoma
2 mykaylaskinner utah
3 sarahfinnegan lsu
4 anastasiawebb oklahoma
5 maddiekarr denver
6 nicolelehrmann oklahoma
7 sydneysnead georgia
8 kylaross ucla
9 makennamerrellgiles utah
10 katelynohashi ucla
maggienichols oklahoma
mykaylaskinner utah
sarahfinnegan lsu
anastasiawebb oklahoma
maddiekarr denver
nicolelehrmann oklahoma
sydneysnead georgia
kylaross ucla
makennamerrellgiles utah
katelynohashi ucla
package main
import (
"fmt"
"log"
"net/http"
"github.com/akerl/go-lambda/s3"
"github.com/aws/aws-lambda-go/lambda"
)