Skip to content

Instantly share code, notes, and snippets.

@koseki
Created October 9, 2010 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koseki/617931 to your computer and use it in GitHub Desktop.
Save koseki/617931 to your computer and use it in GitHub Desktop.
#! /bin/sh
echo "Start screen log(H) while sleeping 5 seconds...";
sleep 5; base64 $1; sleep 20;
echo "decode: base64 -d screenlog.1"
#! /bin/sh
echo "Start screen log(H) while sleeping 5 seconds...";
sleep 5; openssl enc -base64 -in $1; sleep 20;
echo "decode: openssl enc -d -base64 -in screenlog.1"
#! /bin/sh
echo "Start screen log(H) while sleeping 5 seconds...";
sleep 5; perl -MMIME::Base64 -0777 -ne 'print encode_base64($_)' < $1; sleep 20;
echo "decode: perl -MMIME::Base64 -ne 'print decode_base64(\$_)' < screenlog.1"
#! /bin/sh
echo "Start screen log(H) while sleeping 5 seconds...";
sleep 5; python -c "import base64,sys;base64.encode(sys.stdin,sys.stdout)" < $1; sleep 20;
echo "decode: python -c \"import base64,sys;base64.decode(sys.stdin,sys.stdout)\" < screenlog.1"
#! /bin/sh
echo "Start screen log(H) while sleeping 5 seconds...";
sleep 5; ruby -rbase64 -e 'puts Base64.encode64(STDIN.read)' < $1; sleep 20;
echo "decode: ruby -rbase64 -e 'puts Base64.encode64(STDIN.read)' < screenlog.1"
#! /bin/sh
uuencode $1 $1
echo
echo decode: uudecode screenlog.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment