This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script will install a Git pre-push hook that prevents force pushing the master/main branch. | |
| # There are three variants that I have built: | |
| # - pre-push: prevents force-pushing to master/main. | |
| # - pre-push-2: prevents force-pushing to master/main depending on the remote (you need to edit the file!). | |
| # - pre-push-3: prevents any type of pushing to master/main. | |
| # Set the desired version like this before proceeding: | |
| # FILE=pre-push | |
| # Single repo installation: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| # Anyzig wrapper script with default version support | |
| # Compatible with: Bash, Zsh, Fish, and other POSIX shells | |
| # | |
| # Installation: | |
| # 1. Save this script as 'zig' (or any name you prefer) | |
| # 2. Make it executable: chmod +x zig | |
| # 3. Place it in your PATH before the actual zig executable | |
| # 4. Set ZIG_DEFAULT_VERSION environment variable (optional) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @import "modern-normalize"; | |
| :root { | |
| line-height: 1.5; | |
| } | |
| h1, h2, h3, h4, h5, figure, p, ol, ul { | |
| margin: 0; | |
| } |
Switching between AstroVim v4 and Kitty terminal And by Vim split with the same keys
https://github.com/mrjones2014/smart-splits.nvim/tree/master?tab=readme-ov-file#configuration
export GO111MODULE=on
export GOPRIVATE=github.com/mycompany/\*
export GOFLAGS=-mod=vendor
https://dev.to/maelvls/why-is-go111module-everywhere-and-everything-about-go-modules-24k
NewerOlder