Skip to content

Instantly share code, notes, and snippets.

@kirici
kirici / config
Created February 21, 2024 20:25
yamllint config, kubernetes style. Defaults that are already aligned were omitted. More info: https://yamllint.readthedocs.io/en/stable/configuration.html
rules:
comments:
min-spaces-from-content: 2
require-starting-space: true
level: warning
comments-indentation:
level: warning
document-end: disable
document-start: disable
indentation:
@kirici
kirici / install-go.sh
Created February 13, 2024 08:32
Install newest go release
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "root required"
exit 1
fi
rm -fr /usr/local/go
cd $(mktemp -d)
curl -fsSLo go-latest.tgz https://go.dev/dl/$(curl -fsSL 'https://go.dev/VERSION?m=text' | head -1).linux-amd64.tar.gz
@kirici
kirici / timesyncd.sh
Created February 13, 2024 08:16
WSL Ubuntu time drift fix
#!/bin/bash
sudo sed -i 's/ConditionVirtualization=!container/ConditionVirtualization=container/' /lib/systemd/system/systemd-timesyncd.service
sudo systemctl daemon-reload
sudo systemctl restart systemd-timesyncd.service