Skip to content

Instantly share code, notes, and snippets.

View haunt98's full-sized avatar
:octocat:
Keep creating bugs

sudo pacman -Syu haunt98

:octocat:
Keep creating bugs
View GitHub Profile
@haunt98
haunt98 / xkcd-2-image.sh
Last active March 20, 2025 08:20
xkcd as background
#!/bin/bash
bgcolor="#${1}"
fgcolor="#${2}"
size="1920x1080"
# Check if the correct number of arguments is provided
if [ "$#" -ne 4 ]; then
echo "Usage: $0 bgcolor fgcolor input_file.png output_file.png"
exit 1
fi
for dir in ~/go/src/xxx/*
do
echo $dir
cd $dir
do something || true
cd ..
done
--max-columns=120
--max-columns-preview
--context=3
--pretty
--smart-case
--engine=auto
version: "2"
run:
tests: false
linters:
default: none
enable:
- bodyclose
- err113
- errcheck
- errchkjson
@haunt98
haunt98 / dependabot.yml
Last active October 30, 2024 10:46
GitHub Actions
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
# macOS
.DS_Store
# Window
*.exe
# IntelliJ
.idea
# VSCode
@haunt98
haunt98 / .sqlfluff
Last active January 29, 2025 15:24
[sqlfluff]
dialect = mysql
max_line_length = 120
[sqlfluff:indentation]
tab_space_size = 4
allow_implicit_indents = True
[sqlfluff:rules:capitalisation.keywords]
capitalisation_policy = upper
@haunt98
haunt98 / private-build-plans.toml
Last active March 20, 2025 08:41
Iosevka Pacman
# https://typeof.net/Iosevka/customizer
# https://github.com/be5invis/Iosevka/blob/main/build-plans.toml
# https://github.com/be5invis/Iosevka/blob/main/doc/custom-build.md
[buildPlans.IosevkaPacman]
family = "Iosevka Pacman"
spacing = "term"
exportGlyphNames = true
[buildPlans.IosevkaPacman.ligations]
inherits = "clike"
@haunt98
haunt98 / gojq.sh
Last active February 9, 2024 18:35
gojq.sh
gojq '.contact_users[] | select(.phone != "0") | {userid: .zalopay_id, zalo_name: .zalo_name, phone: .phone, contact_name: .contact_name, avatar: .avatar}' friends.json
body,
input {
font-family: Shantell Sans Normal, sans-serif;
font-weight: 500
}
pre,
code {
font-family: Iosevka Pacman, monospace;
font-size: 14px