This file contains 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 datetime | |
import fileinput | |
import shlex | |
## | |
# Usage: tail -f *.capture | python LogViewer.py | |
## | |
def construct_dictionary(line): | |
# ref: https://stackoverflow.com/a/38787616/90101 |
This file contains 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
# | |
# Reference : http://stackoverflow.com/a/16700113/90101 | |
# | |
# | |
# remove default namespace declaration | |
# | |
sed -e 's/ xmlns=".*"//g' pom.xml | |
# |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
==== initialDP ==== | |
{ | |
"header": { | |
"clgt": "60121234567" | |
"otid": "123456778", | |
"cdgt": "60121234567" | |
"dtid": "123456778", | |
"app-ctx": "123456778", | |
"tc-type": 62(begin)/65(continue)/64(end) | |
}, |
This file contains 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
// /$$ | |
// |__/ | |
// /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$$ /$$ /$$ /$$ /$$$$$$$ | |
// /$$__ $$| $$ | $$ |____ $$| $$__ $$ | $$ | $$| $$| $$__ $$ | |
// | $$ \ $$| $$ | $$ /$$$$$$$| $$ \ $$ | $$ | $$| $$| $$ \ $$ | |
// | $$ | $$| $$ | $$ /$$__ $$| $$ | $$ | $$ | $$| $$| $$ | $$ | |
// | $$$$$$$| $$$$$$/| $$$$$$$| $$ | $$ | $$$$$$$| $$| $$ | $$ | |
// \____ $$ \______/ \_______/|__/ |__/ \____ $$|__/|__/ |__/ | |
// /$$ \ $$ /$$ | $$ | |
// | $$$$$$/ | $$$$$$/ |
This file contains 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
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |
This file contains 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
openssl s_client -connect 127.0.0.1:443 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > public.crt |
This file contains 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 these: | |
// | |
// import org.apache.axiom.attachments.Attachments; | |
// import org.apache.axiom.attachments.ConfigurableDataHandler; | |
// import javax.activation.FileDataSource | |
Attachments attachments = new Attachments(); | |
ConfigurableDataHandler dh = new ConfigurableDataHandler(new FileDataSource("testing.gif")); // file path |
This file contains 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
sudo mke2fs -t ext3 /dev/sda1 | |
sudo mount -t ext3 /dev/sda1 /media/usbflash/ |
This file contains 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
<parameter name="OutflowSecurity"> | |
<action> | |
<items>UsernameToken Timestamp</items> | |
<user>bob</user> | |
<passwordCallbackClass>org.apache.rampart.samples.sample03.PWCBHandler</passwordCallbackClass> | |
<passwordType>PasswordText</passwordType> | |
<addUTElements>Nonce Created</addUTElements> | |
</action> | |
</parameter> |