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 |
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 | |
# Vivaldi and Opera cannot play some videos on Linux unless the ffmpeg library they use is replaced with proper one. | |
# | |
set -e | |
set -u | |
# Testing against '$1' directly does not work b/c of 'set -u' | |
if [[ -z "$@" ]]; then | |
echo "" | |
echo "USAGE:" |
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 |