Draw the short straw? Getting paid to kill the time with strangers? Need to heal some relationships to get some work done?
Maybe you need a team building exercise.
#!/bin/bash | |
DEFAULT_IMAGE=armbian_24.5.0-trunk_Uefi-arm64_bookworm_edge_6.8.9.img.raw | |
DEFAULT_MEM=2048 | |
DEFAULT_CPU=2 | |
IMAGE_FORMAT=raw | |
IMAGE_DIR=/mnt/zfs/cheapo/images |
#!/bin/bash | |
NEW_USER="someuser" | |
USER_PUBLIC_KEY="some public key" | |
mkdir -p /home/${NEW_USER}/.ssh | |
echo "${NEW_USER_PUBLIC_KEY}" >> /home/${NEW_USER}/authorized_keys | |
chown -R ${NEW_USER} /home/${NEW_USER}/.ssh | |
chmod 700 /home/${NEW_USER}/.ssh/ |
#!/bin/bash | |
brew install xz pyenv ninja cmake gettext curl npm wget ripgrep lazygit wget | |
git clone --single-branch --branch stable https://github.com/neovim/neovim | |
pushd neovim | |
git checkout stable | |
export LDFLAGS="-L/opt/homebrew/opt/curl/lib" | |
export CPPFLAGS="-I/opt/homebrew/opt/curl/include" |
Sometimes you just need an easy way to have a private git repo. Put it on your favorite VPS, SBC, linux box, etc
creates a folder and git repo via relative path of user directory
GIT_REMOTE_DIR=GIT/hosted/example
GIT_REMOTE_HOST=myhost.example.com
ssh ${GIT_REMOTE_HOST} "mkdir -p ${GIT_REMOTE_DIR} && git init --bare ${GIT_REMOTE_DIR}"
!/usr/bin/env bash | |
# Examples: | |
# linx hello.txt # paste file (name/ext will be set). | |
# echo Hello world. | linx # read from STDIN (won't set name/ext). | |
# linx -n 1 self_destruct.txt # paste will be deleted after one read. | |
# linx -i ID hello.txt # replace ID, if you have permission. | |
# linx -d ID | |
fastly_headers() { | |
curl -I -X GET https://mirrors.fossho.st/armbian/apt/ |
job "grafana" { | |
datacenters = ["example_datacenter"] | |
type = "service" | |
constraint { | |
attribute = "${attr.kernel.name}" | |
value = "linux" | |
} |
#!/bin/bash | |
diskpath=/ | |
echo before | |
btrfs filesystem usage ${diskpath} | |
for i in 0 5 10 15 20 25 30 40 50 60 70 80 90 100 | |
do | |
echo "${0}: Running with ${i}%" | |
btrfs filesystem usage ${diskpath} |