Skip to content

Instantly share code, notes, and snippets.

@jackiect
Last active January 7, 2020 14:27
Show Gist options
  • Save jackiect/c75bb831477f0d0f8174e2a0afbc18c2 to your computer and use it in GitHub Desktop.
Save jackiect/c75bb831477f0d0f8174e2a0afbc18c2 to your computer and use it in GitHub Desktop.
qps from access log

command

cat access_log |cut -d " " -f4|sort |uniq -c |sort -n -r

PS: cut -d " " -f4 equals to awk -F " " '{print $4}'

@jackiect
Copy link
Author

jackiect commented Jan 7, 2020

aes-256-cbc encrypt/decrypt:

echo -n "test 1234" | openssl aes-256-cbc -a -K `echo -n '0123456789abcdefghijklmnopqrstuv' |xxd -c 256 -ps` -iv 0
echo -n "test 1234" | openssl enc -nosalt -aes-256-cbc -base64 -K `echo -n '0123456789abcdefghijklmnopqrstuv' |xxd -c 256 -ps` -iv 0

echo "WC6m55gjidpPpqXZJbagzg==" | openssl aes-256-cbc -d -a -K `echo -n '0123456789abcdefghijklmnopqrstuv' |xxd -c 256 -ps` -iv 0

aes-128-cbc encrypt/decrypt:

echo -n "test 1234" |openssl aes-128-cbc -iv f123 -K 1223 -a

echo "R9MVzzWBA/Ye5qu9a4hX6A==" |openssl aes-128-cbc -iv f123 -K 1223 -a -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment