Skip to content

Instantly share code, notes, and snippets.

# Roon manifest for k8s
---
apiVersion: v1
kind: Service
metadata:
labels:
app: roon
name: roon
namespace: home
annotations:
#!/usr/bin/env python
# Sway fade effect for windows
# Credit https://www.reddit.com/r/swaywm/comments/e6ihm8/smooth_fading_in_sway/
# /u/jake_is_a_legend
from i3ipc import Connection, Event
from threading import Thread
from time import sleep
#!/usr/bin/env python3
# Credit: /u/sellibitze
# https://www.reddit.com/r/WireGuard/comments/emjgp0/bypass_certain_ip_from_going_into_wireguard_tunnel/fdqjr9w/
from ipaddress import ip_network
start = '0.0.0.0/0'
exclude = ['8.8.8.8', '10.8.0.0/24']
esphome:
name: gate
platform: ESP8266
board: esp01_1m
wifi:
ssid: "<snip>"
password: "<snip>"
ap:
ssid: "Gate Fallback Hotspot"

Understanding the Traeger WiFire protocol

I would like to gain access to the traeger API, as of current there is no documentation and scant information around.

Plans

MiTM Android and iOS apps to understand

#!/bin/bash
# Screeshot a selection
# - shove the image into the clibboard
# - shove link to image into primary buffer
# enables images to be pasted in slack and text links into terminal
# Configuration
s3_bucket=screenshot-bucket
s3_url=https://screenshots-bucket.s3.amazonaws.com
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="ProgId" content="Word.Document">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
$for(author-meta)$
<meta name="author" content="$author-meta$" />

Pull latest image

kubectl patch -p "{\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"date\":\"`date +'%s'`\"}}}}}" -n home deployments.apps radarr

Simple way to post an encrypted screenshot to IPFS and decrypt it on the fly with the public key as an anchor in the link.

Garto:

ipfs hash A is just the encrypted image, and ipfs hash B is a page that isn't encrypted and contains js that downloads the image using a hard coded (in B) reference to A and decrypts using the frag identifier from url B. Then you just share B and it Just Works.

Features

  • Ephemeral Elliptic Curve (ed25519) for one shot asymmetric encryption
  • encrypt, put and pin asset