Skip to content

Instantly share code, notes, and snippets.

View tamadamas's full-sized avatar
☯️
Love Zig

Tomas Tamadamas tamadamas

☯️
Love Zig
View GitHub Profile
@tamadamas
tamadamas / zz.fish
Created March 19, 2025 19:04
Zig function fish wrapper
function zz -d "Simple Zig wrapper function"
set -l cmd $argv[1]
set -e argv[1]
switch "$cmd"
case test
zig build -fincremental test
case lint
zig build -fincremental lint
case run
@tamadamas
tamadamas / 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
@tamadamas
tamadamas / 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;
}
@tamadamas
tamadamas / README.md
Last active March 24, 2024 18:38
Switch between AstroVim v4 and Kitty
@tamadamas
tamadamas / golang.md
Last active April 17, 2020 11:20
Go modules and direnv
@tamadamas
tamadamas / 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
@tamadamas
tamadamas / .envrc
Created February 25, 2020 14:17
direnv envrc with shared .env and asdf itself
use asdf
set -a; . ./.env