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 | |
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 |
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
for dir in ~/go/src/xxx/* | |
do | |
echo $dir | |
cd $dir | |
do something || true | |
cd .. | |
done |
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
--max-columns=120 | |
--max-columns-preview | |
--context=3 | |
--pretty | |
--smart-case | |
--engine=auto |
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
version: "2" | |
run: | |
tests: false | |
linters: | |
default: none | |
enable: | |
- bodyclose | |
- err113 | |
- errcheck | |
- errchkjson |
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
version: 2 | |
updates: | |
- package-ecosystem: "gomod" | |
directory: "/" | |
schedule: | |
interval: "daily" | |
- package-ecosystem: "github-actions" | |
directory: "/" | |
schedule: | |
interval: "daily" |
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
# macOS | |
.DS_Store | |
# Window | |
*.exe | |
# IntelliJ | |
.idea | |
# VSCode |
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
[sqlfluff] | |
dialect = mysql | |
max_line_length = 120 | |
[sqlfluff:indentation] | |
tab_space_size = 4 | |
allow_implicit_indents = True | |
[sqlfluff:rules:capitalisation.keywords] | |
capitalisation_policy = upper |
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
# 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" |
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
gojq '.contact_users[] | select(.phone != "0") | {userid: .zalopay_id, zalo_name: .zalo_name, phone: .phone, contact_name: .contact_name, avatar: .avatar}' friends.json |
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
body, | |
input { | |
font-family: Shantell Sans Normal, sans-serif; | |
font-weight: 500 | |
} | |
pre, | |
code { | |
font-family: Iosevka Pacman, monospace; | |
font-size: 14px |
NewerOlder