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
| # All credits go to https://superuser.com/questions/1670773/how-can-i-add-my-ssh-public-key-to-a-mikrotik-router-device-using-the-command-li | |
| ssh destination "/file print file=mykey; file set mykey contents=\"`cat ~/.ssh/id_rsa.pub`\";/user ssh-keys import public-key-file=mykey.txt;/ip ssh set always-allow-password-login=yes" |
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 | |
| # | |
| # Script to remove GPG key from git-crypt | |
| # | |
| # It will re-initialize git-crypt for the repository and re-add all keys except | |
| # the one requested for removal. | |
| # | |
| # Note: You still need to change all your secrets to fully protect yourself. | |
| # Removing a user will prevent them from reading future changes but they will | |
| # still have a copy of the data up to the point of their removal. |
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
| # | |
| # Print all possible candidates for virtualenv relative to the directory $1. | |
| # Used in venv_find() for every directory starting from the current and up to the root. | |
| # | |
| function venv_candidates () { | |
| echo $1 | |
| echo $1/.venv | |
| echo $1/VENV | |
| echo $1/ENV | |
| echo $1.venv |
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
| # Unpack downloaded stuff: | |
| for i in $(seq 1 985) ; do 7z e -o$i Name_Here_$i ; done | |
| # In QMV, add leading 0 to double-digit chapters: | |
| %s/\t\(\d\d\)$/\t0\1/ | |
| # And now single-digit chapters: | |
| %s/\t\(\d\)$/\t00\1/ | |
| # Now add leading 0 to chapter pages: | |
| %s/_\(\d\.jpg\)$/_0\1/g | |
| # And to chapters again: | |
| %s/_\(\d_\d\d\.jpg\)$/_00\1/g |