qemu-img create -f qcow2 alpine.qcow2 16G
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flatpak install flathub org.freedesktop.Sdk.Extension.golang | |
flatpak install flathub org.freedesktop.Sdk.Extension.node14 | |
flatpak override --env FLATPAK_ENABLE_SDK_EXT=golang,node14 com.vscodium.codium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -o errexit | |
# create registry container unless it already exists | |
reg_name='kind-registry' | |
reg_port='5000' | |
running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" | |
if [ "${running}" != 'true' ]; then | |
docker run \ | |
-d --restart=always -p "127.0.0.1:${reg_port}:5000" --name "${reg_name}" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Yet Another Motion Automation | |
description: > | |
# YAMA V10 | |
Turn on lights or scenes when motion is detected. | |
Four different scenes can be defined depending on time of day. | |
- i3 -- A tiling window manager
https://i3wm.org/
https://github.com/i3/i3
https://github.com/Airblader/i3 - Sway -- i3-compatible Wayland compositor
https://swaywm.org/
https://github.com/swaywm/sway
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -o errexit | |
# create registry container unless it already exists | |
reg_name='kind-registry' | |
reg_port='5000' | |
running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" | |
if [ "${running}" != 'true' ]; then | |
docker run \ | |
-d --restart=always -p "${reg_port}:5000" --name "${reg_name}" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
mkdir -p bin | |
[[ ! -x bin/kubectl ]] \ | |
&& curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/$(uname| tr '[:upper:]' '[:lower:]')/amd64/kubectl \ | |
&& chmod +rx kubectl \ | |
&& mv kubectl bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For context: https://twitter.com/21isenough/status/1255182788686462983?s=20 | |
TorThisTx() { | |
# Rename "TorThisTx() to whatever you want the command to be | |
# Broadcast raw hex transaction over blockstreams TOR API with curl | |
curl --socks5-hostname localhost:9050 -d $1 -X POST http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/api/tx | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/muan/unicode-emoji-json | |
° — degree | |
× — times | |
🇿🇦 | |
🇬🇧 | |
🛜 — wireless | |
🔗 — link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# kind cluster conf | |
cat > kind_conf_88698.cluster << EOF | |
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
kubeadmConfigPatches: | |
- | | |
apiVersion: kubeproxy.config.k8s.io/v1alpha1 | |
kind: KubeProxyConfiguration |
NewerOlder