Skip to content

Instantly share code, notes, and snippets.

@rxqd
rxqd / 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
@rxqd
rxqd / 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;
}
@rxqd
rxqd / README.md
Last active March 24, 2024 18:38
Switch between AstroVim v4 and Kitty
@rxqd
rxqd / golang.md
Last active April 17, 2020 11:20
Go modules and direnv
@rxqd
rxqd / 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
@rxqd
rxqd / .envrc
Created February 25, 2020 14:17
direnv envrc with shared .env and asdf itself
use asdf
set -a; . ./.env
@rxqd
rxqd / 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