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
| # | |
| # Collection of basic Bash configuration and aliases that | |
| # make working with Bash on infrequently accessed servers bearable. | |
| # | |
| # Can be downloaded into any server having this in the user's `.bashrc`: | |
| # if [ -f ~/.bash_aliases ]; then | |
| # . ~/.bash_aliases | |
| # 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
| import base64 | |
| import getpass | |
| import json | |
| import sys | |
| import traceback | |
| from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC | |
| from cryptography.hazmat.primitives import hashes | |
| from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes | |
| from cryptography.hazmat.backends import default_backend |
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 | |
| set -u | |
| set -e | |
| shopt -s nullglob | |
| for MKV in "$@"; do | |
| out="$(basename "$MKV" .mkv).mp4" | |
| echo "CONVERTING '$MKV''" | |
| cp -l "$MKV" input.mkv | |
| ffmpeg -i input.mkv -c:a copy -c:v libx264 -preset veryslow -crf 23 -vf subtitles=input.mkv "$out" |
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 | |
| if [ "$1" != "" ]; then | |
| echo " | |
| ---------------------------------------------------------------------------- | |
| http://www.kernel.org/doc/Documentation/vm/ksm.txt : | |
| The effectiveness of KSM and MADV_MERGEABLE is shown in /sys/kernel/mm/ksm/: | |
| pages_shared - how many shared pages are being used |