Check These Out
After typing the command below, you will be greeted with nothing. press the up arrow to find the previous command you typed, press enter. repeat this as many times as you need, then hit CTRL-Z and press enter to save to the 'batchfilename.bat' file.
Works only if modules are installed "the right way"
Top 30 History Command line with histogram display
This command delete all the empty lines (include the lines with space) from a file.
g = global command
\S = non-whitespace character; !\S the opposite
d = delete a range
Insert a comma where necessary when counting large numbers. I needed to separate huge amounts of packets and after 12+ hours of looking in a terminal, I wanted it in readable form.
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
You might want to secure your AWS operations requiring to use a MFA token. But then to use API or tools, you need to pass credentials generated with a MFA token.
This commands asks you for the MFA code and retrieves these credentials using AWS Cli. To print the exports, you can use:
`awk '{ print "export AWS_ACCESS_KEY_ID=\"" $1 "\"\n" "export AWS_SECRET_ACCESS_KEY=\"" $2 "\"\n" "export AWS_SESSION_TOKEN=\"" $3 "\"" }'`
You must adapt the command line to include:
* $MFA_IDis ARN of the virtual MFA or serial number of the physical one
* TTL for the credentials
A bitcoin "brainwallet" is a secret passphrase you carry in the "wallet" of your brain.
The Bitcoin Brainwallet Private Key Calculator calculates the standard base58 encoded bitcoin private key from your "brainwallet" passphrase.
The private key is the most important bitcoin number. All other numbers can be derived from it.
This command uses 3 other functions - all 3 are defined on my user page:
1) brainwallet_exponent() - search for Bitcoin Brainwallet Exponent Calculator
2) brainwallet_checksum() - search for Bitcoin Brainwallet Exponent Calculator
3) b58encode() - search for Bitcoin Brainwallet Base58 Encoder
Do make sure you use really strong, unpredictable passphrases (30+ characters)!
http:brainwallet.org can be used to check the accuracy of this calculator.