Saturday, March 24, 2018
Pdf Bash Tools - Ghostscript - Watermarks, password protection, search, split, merge and beyond
So much pdf processing that you can do including searching, splitting, merging, pdf password protection and watermarking. Yup, for free. Check and contribute to my pdf bash tools project.
Friday, March 16, 2018
Manage HP ProCurve Switches programmatically from *nix
Just released ProCurve Commander. Repeating yourself is not fun. This is not only true when it comes to management multiple switches but also to auditing them. This same idea can be used to manage Cisco switches and in general any device accessible via SSH but not friendly to remove command invocation.
Thursday, March 15, 2018
Hardening HP ProCurve HP switches
Enable SSH:
telnetConfirm ssh works and disable telnet:# config (config)# crypto key generate ssh (config)# ip ssh (config)# show ip ssh (config)# exit # exit > exit
sshChange default users and set complex passwords:# config (config)# no telnet (config)# exit # exit > exit
password operator user-nameIdentify the switch:password manager user-name
# config (config)# hostname "My ProCurve Switch"
Wednesday, March 14, 2018
Java Applets in MAC OS X
Your only option is Safari, just as your only option is Internet Explorer for Windows. If the applet is insecure it won't run but you can always add exceptions at your own risk. From Apple System Preferences click on Java | Security tab | Edit Site List | Add | Apply | OK | Restart Safari.
Parsing CSV from bash
In one word csvkit. To install, use python pip and make sure you export the bin path:
pip install --user csvkit export PATH="$HOME/.local/bin:$PATH"To extract for instance the second column from clients.csv:
cat clients.csv | csvcut -c 2An alternative ... csvtool. To install it in Ubuntu:
sudo apt-get install csvtoolTo install it in OS X:
brew install opam opam init eval `opam config env` opam install csvtool csvtool --helpTo extract the second column (index 1) from sample.csv:
cat sample.csv | ~/.opam/system/bin/csvtool col 1 -Find more from:
~/.opam/system/bin/csvtool --help
Subscribe to:
Posts (Atom)