Some notes on the config and software related CLI commands for Juniper SRX.
Some notes on Juniper SRX Routing troubleshooting
If you want to share your cool script with your non scripting buddies, you can convince them to learn perl and install modules, etc. Or you can remote into their machine and do a bunch of work getting stuff working on their machine, or you can use PAR and send them a compiled script.
This Perl script will take a list of URLs and sort them by the fastest ping response.
One issue that might show up with any type of server is filling up diskspace with log files. This bash script can be modified to SCP and remove any type of file, but this demo bash script is for Check Point Firewalls.
Not so much now, but keyword density used to be a very large factor in determining how well a website ranks. This perl script counts words and tells you what their percentage is:
In case you want to remove the extra email such as spans, div, and other junk from a block of text, you can use HTML::Restrict like this:
There is a binary utility on most flavors of linux that allows you to compare if a file is exactly the same as another. Here is how you get MD5 info using Perl:
I was importing text into a shopping cart that was provided by the vendor, but they included links back to all their products! I wanted the keywords, but not the links. HTML::TokeParser::Simple did the job:
So… you want see what happened at 3am on the firewall but don’t have the money for orion, or other expensive monitoring software? Check out this bash script to monitor processes on your Check Point Firewall: