Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
podman run \
--name homeassistant \
--hostname homeassistant \
--replace \
--detach \
--restart=unless-stopped \
--privileged \
--network=host \
--tz=local \
@loganlinn
loganlinn / gist:2e07e914439218dfbeb0670d40d86be1
Created January 24, 2024 09:50
Details! Profile Import String
T31EVTnss(pnhUDb2eW3p(t5y7eJylNZuzMDWzygkjkjUHIuljvC0EyYN9RQQFWMVKPDCMjz3maZmYsn7U6QRUQF1JU5D63n7UGDf5RssJXpM)P4IO00WfPXrfHzX3xLxSEtuz1DNCxWIODv7lIdlIJsXgVb))W3xUlonDbVrBtkxSmQkc)C0(c6)hNfxS(a(PLrBJwhdFQ6UGI87dxfTmomjd6TP63faFyQXDt1EPb(77sJoexeUmUkkjTm8(KSL53JJB5IiGAXhO8JWJeCw6NE)f3fmhO4Q4pJK4DbbF8qAswm2p48H1xLHra5VUiF)U7MFxW(syUaeruwY2OQK8SsKelI3LxufItUqOl(yj2u2GxYO389vCcg)KcfVnb6P9BdLCX8TZJQcRs2IKRgm9JJQ2ewLNNwLSdMrlR2C3utBn5OwLhE)M87caMDAuzziWAxuc9tEXYsCmDmyJmoI26(2M6g2CkW0f(Kj(j67SyTbiRP6woUYht0ChdrZfn2H1AhtzBPU0G3ME7AdG25TM3sDr)YBNUOH6YUTMMhQTQZY2tVMTfMBEYg7iBT7atod76zNhF2P3pnyn0eRhMG9rMBDAUJZXATSX4eM68JT21T1kCdtdp9UCKUpIV8rKR3Ed3ChTH4GDARTR7rwi7S2OiC3dJHEol2ZH9TN(rKt701whPXT6zdh7JWX70yNJj(1P1UhJx3P1hv0UJyOJ)GRmDARR2XiK2nxP1dR2P9QVUMXWm9M72C1hKYBXt01mhEXPvNAm4o4wIh6AwhHr3wHJR5XyDT6ALg3JmDhXuZJTFPdRW(iesl1zo6dYmAl1z7CK9kTxKR3R0PF70uRJSTQLexfAaeHGSpJmxhVennJgSbdQvPX4xMTmSmUam1gUlQa(eANEhyIF(8I4pLqg0Xop4(8I0LcBXjLHvfrLBOg)PDHrLC8aq3ppp)JBJk(iHIiSm5FHwTbR8s8bO544LHGzEOp(uCksUw23fa)1IpgMufVnmng)EOZjKcu7PPNDBJ
#!/usr/bin/env bash
run() {
while :; do
unset REPLY
printf %s "run $*? [Y/n/q] " > /dev/tty
read -r REPLY < /dev/tty
case ${REPLY:-y} in
[yY]*)
if ! "$@"; then
@loganlinn
loganlinn / alpha.clj
Last active December 3, 2022 10:25
Clojure C4 Model #hack
(ns c4.alpha
"A library for [C4 model](c4model.com)")
(declare rel)
(defrecord Shape [label description sprite tags link])
(def ^:dynamic *boundaries* (list))
(def ^:private hierarchy
(ns openmoji
(:require
[clojure.string :as str]
[clojure.data.csv :as csv]
[clojure.java.io :as io]
[babashka.fs :as fs]
[babashka.curl :as curl]
[clojure.string :as str]))
(defn download-data
(require
'[clojure.edn :as edn]
'[clojure.java.io :as io]
'[clojure.string :as str])
(defn read-workspace
([] (read-workspace "."))
([ws-dir]
(-> ws-dir
@loganlinn
loganlinn / console.js
Created January 25, 2022 23:30
Bulk delete custom Slack emojis with filter
intervalId = setInterval(function() {
els = Array.from(
document.getElementsByClassName("c-virtual_list__item")
).filter(
(el) => el.innerText.includes(":azure_")
)
console.log("Matches found:", els.length)
if (!els.length) {
clearInterval(intervalId)
@loganlinn
loganlinn / spacemacs-keybindings
Created January 24, 2022 22:19 — forked from adham90/spacemacs-keybindings
spacemacs keybindings that i need to learn
SPC s c remove highlight
**** Files manipulations key bindings
Files manipulation commands (start with ~f~):
| Key Binding | Description |
|-------------+----------------------------------------------------------------|
| ~SPC f c~ | copy current file to a different location |
| ~SPC f C d~ | convert file from unix to dos encoding |
| ~SPC f C u~ | convert file from dos to unix encoding |
@loganlinn
loganlinn / gfo.org
Last active January 22, 2022 23:15
GitHub-Flavored Org tests
** Internal links
   :PROPERTIES:
   :ID:       0d2b0cb2-116c-4a61-a076-4c641faf4346
   :END:

Internal links

#!/bin/bash
# shellcheck disable=2001
# because I prefer to use sed rather than bash replace
# (there's too little space in my head to learn both syntaxes)
function __bootstrap_webi() {
set -e
set -u