start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
# | |
# This still works with piping and redirection of output. | |
# Ex) | |
# bash run.sh ./long_computation > long_computation.out | |
if [ ! $1 ] | |
then | |
echo "Usage: $0 <command>" >&2 | |
fi |
#!/bin/bash | |
find . -type f | | |
while read x | |
do | |
cat $x | egrep --color=always "$1" && | |
echo -e "\e[36m$x\e[0m" && | |
echo | |
done |
source: http://www.markbrilman.nl/2011/08/howto-convert-a-pfx-to-a-seperate-key-crt-file/ | |
`openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]` | |
What this command does is extract the private key from the .pfx file. Once entered you need to type in the importpassword of the .pfx file. This is the password that you used to protect your keypair when you created your .pfx file. If you cannot remember it anymore you can just throw your .pfx file away, cause you won’t be able to import it again, anywhere!. Once you entered the import password OpenSSL requests you to type in another password, twice!. This new password will protect your .key file. | |
Now let’s extract the certificate: | |
`openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]` |
ddsdfdfd |
#!/bin/bash | |
# | |
# video conversion script for publishing as HTML 5 video, via videojs (with hd button extension) | |
# 2011 by zpea | |
# feel free to use as public domain / Creative Commons CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.0/) | |
# | |
FFMPEG=/usr/bin/ffmpeg | |
HD_SUFFIX='_hd' |