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
# set user name | |
git config --global user.name "Ammar Najjar" | |
# set user email | |
git config --local user.email <email> | |
# set user sign key -S | |
git config --local user.signingkey <key> | |
# current branch name |
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
# requires python3 | |
# replace <path> | |
source <(python <<EOF | |
with open('<path>', 'r') as fi: | |
content = fi.readlines() | |
trans = [line.strip().replace(': ', '=').replace('\'', '"') for line in content if line.strip() and line.strip()[0] != '#'] | |
envs = '\n'.join([f'export {line}' for line in trans]) | |
print(envs) | |
EOF |
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
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -sOutputFile=foo-compressed.pdf foo.pdf |
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
# $XDG_CONFIG_HOME/k9s/plugins.yaml | |
plugins: | |
jqlogs: | |
shortCut: Ctrl-J | |
confirm: false | |
description: "Logs (jq)" | |
scopes: | |
- pod | |
command: sh | |
background: false |
OlderNewer