Skip to content

Instantly share code, notes, and snippets.

@rxx
rxx / bash.sh
Last active April 9, 2024 09:17
Fedora sync time
# Make sure services works
sudo timedatectl set-ntp true
sudo systemctl enable chronyd.service
sudo systemctl restart chronyd.service
# Check status
systemctl status chronyd.service
chronyc -n sources
grep -e ^server -e ^pool /etc/chrony.conf
@rxx
rxx / bash_strict_mode.md
Created April 2, 2024 19:58 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@import "modern-normalize";
:root {
line-height: 1.5;
}
h1, h2, h3, h4, h5, figure, p, ol, ul {
margin: 0;
}
@rxx
rxx / README.md
Last active March 24, 2024 18:38
Switch between AstroVim v4 and Kitty
@rxx
rxx / golang.md
Last active April 17, 2020 11:20
Go modules and direnv
@rxx
rxx / remove_brew-mongo-community_osx.sh
Last active March 4, 2020 08:59 — forked from katychuang/remove_brew-mongo_osx.sh
remove mongodb that was installed via brew
#!/usr/bin/env sh
# checks to see if running
launchctl list | grep mongo
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist
launchctl remove homebrew.mxcl.mongodb-community
pkill -f mongod
@rxx
rxx / .envrc
Created February 25, 2020 14:17
direnv envrc with shared .env and asdf itself
use asdf
set -a; . ./.env
@rxx
rxx / readme.md
Last active February 13, 2020 09:04
System tips

Kill and restart gpg agent (Fish Shell)

pkill gpg-agent ; gpg-agent --daemon

Sign previous commit

git commit -S --amend