-
At the root of the repository, create a
.prettierrc
file:{ "plugins": ["prettier-plugin-go-template"], "overrides": [ { "files": ["*.html"],
This file contains 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
zip -r output.zip path/to/input_folder -x ".DS_Store" -x "__MACOSX" |
This file contains 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
# Remove a remote branch. | |
git push <remote> --delete <branch> | |
# Remove a local branch. | |
git branch --delete <branch> | |
git branch --delete --force <branch> | |
# Remove a local tracking branch. | |
git branch --delete --remotes <remote>/<branch> | |
git fetch <remote> --prune |
This file contains 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
# Gitlab | |
git push https://gitlab-ci-token:<YOUR_TOKEN>@gitlab.com/<GROUP_NAME>/<REPO_NAME>.git <BRANCH_NAME> [--force] | |
# Github | |
git push https://<USERNAME>:<YOUR_TOKEN>@github.com/<USERNAME>/<REPO_NAME> <BRANCH_NAME> [--force] |
This file contains 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
find . \( -iname \*.jpg -or -iname \*.jpeg \) -print0 | xargs -P 4 -n 1 -0 jpegoptim |
This file contains 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
git fetch other-remote | |
git merge other-remote/some-branch |
This file contains 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
git log --color --graph --abbrev-commit |
This file contains 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/sh | |
sudo xattr -rd com.apple.quarantine /Library/Audio/Plug-Ins/VST/* | |
sudo xattr -rd com.apple.quarantine /Library/Audio/Plug-Ins/VST3/* | |
sudo xattr -rd com.apple.quarantine /Library/Audio/Plug-Ins/Components/* |
This file contains 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
# homebrew | |
export PATH=$PATH:/opt/Homebrew/bin | |
# homebrew end | |
# cmake | |
export CMAKE_GENERATOR=Ninja | |
export CMAKE_OSX_ARCHITECTURES=arm64 | |
# cmake end | |
# qt |
This file contains 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/sh | |
# Needs imagemagick | |
for i in *.png; do convert "$i" -quality 90 -interpolate Nearest -filter point -resize 400% "${i%.*}.jpg"; done |
NewerOlder