Skip to content

Instantly share code, notes, and snippets.

@beriberikix
beriberikix / QEMU_cheat_sheat.md
Last active July 10, 2024 09:20
QEMU cheat sheet for the most basic setup

Create system drive

qemu-img create -f qcow2 alpine.qcow2 16G

Install image

Linux

@pojntfx
pojntfx / main.sh
Created May 17, 2021 09:42
Add Go and Node to VSCodium Flatpak
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
@mamachanko
mamachanko / kind-with-registry-and-ingress.sh
Created April 20, 2021 13:47
kind with registry and ingress
#!/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}" \
@networkingcat
networkingcat / yet_another_motion_automation.yaml
Last active July 26, 2024 10:13 — forked from quallenbezwinger/motion_controlled_scenes_enhanced.yaml
Homeassistant blueprint for motion-activated light scene
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.
@ur4ltz
ur4ltz / i3-cheat-sheet.md
Created August 14, 2020 07:46 — forked from schuerg/i3-cheat-sheet.md
[i3/sway cheatsheet] List of key bindings for i3wm/swaywm #linux #tiling-wm #desktop #cheat-sheet
@victorpaulo
victorpaulo / kind-with-registry.sh
Created August 12, 2020 14:09
KinD cluster creation
#!/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}" \
@JrCs
JrCs / kind-env.sh
Last active June 23, 2021 10:14
kind-environment
#!/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/
@21isenough
21isenough / .bashrc
Last active April 14, 2022 18:58
Broadcast raw hex transaction over blockstreams TOR API
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
}
@datawookie
datawookie / unicode symbols
Last active June 17, 2024 12:20
Useful Unicode characters
https://github.com/muan/unicode-emoji-json
° — degree
× — times
🇿🇦
🇬🇧
🛜 — wireless
🔗 — link
@eth0xFEED
eth0xFEED / kind_run.sh
Created March 12, 2020 02:44
kind k8s ipvs
#!/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