Quick CLI system tool neofetc

Refer: https://www.maketecheasier.com/display-system-information-neofetch-linux/

Usage: neofetch

Installation:

$ echo "deb http://dl.bintray.com/dawidd6/neofetch jessie main" | sudo tee -a /etc/apt/sources.list
$ curl -L "https://bintray.com/user/downloadSubjectPublicKey?username=bintray" -o Release-neofetch.key
$ sudo apt-key add Release-neofetch.key && rm Release-neofetch.key
$ sudo apt-get update && sudo apt-get install neofetch scrot

Windows 10 Cleanup

The goal is to cleanup files in the WinSxS folder
Refer: http://www.ghacks.net/2016/03/14/analyze-the-winsxs-folder/

Open a command prompt as Administrator
$ Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore

The following kicks off the cleanup, this could take a while:
$ Dism.exe /online /Cleanup-Image /StartComponentCleanup

Sublime Setup in Ubuntu 14.04

Install it via the Ubuntu Repositories
https://www.sublimetext.com/docs/3/linux_repositories.html#apt

Grab commands: install-sublime-ubuntu-repo.txt

$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
$ sudo apt-get install apt-transport-https
$ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
$ sudo apt-get update
$ sudo apt-get install sublime-text

Sublime 3.0 Shortcut

$ sudo ln -s /opt/sublime_text/sublime_text /usr/bin/sublime

Sublime 2.0

$ sudo ln -s /home/mruckman/Downloads/Sublime\ Text\ 2/sublime_text /usr/bin/sublime

Refer: http://www.technoreply.com/how-to-install-sublime-text-2-on-ubuntu-12-04-unity/

When you launch the application from the /usr/bin/sublime entry, you can then right click and lock to the launcher in Ubuntu

Installing Plug-in XML Format in Sublime 3

Installing Plug-in
Open the editor and hit Ctrl+Shift+P to open Command Palette.
Type"Install Package" and hit Enter. Type Indent XML.

Select the highlighted plug-in and click Enter. You should see the message that saying the plug-in has been installed successfully.

Restart the editor. At least I had to.

Formatting XML

Copy the non formatted XML
Hit Ctrl + K + F.

You can also do it from the Menu option.

Formatting JSON
Hit Ctrl + K + F.
You can also do it from the Menu option.
That's it for today. Happy Formatting !

Struts 2 Vulnerability

Looking for vulnerability
Original Article: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5638
Refer: https://github.com/mazen160/struts-pwn
Script: struts-pwn-master.zip

$ python struts-pwn.py --check --url 'https://my.domain.com/checkme.action'

[*] URL: https://my.domain.com/checkme.action
[*] Status: Vulnerable!
[%] Done.

Update POLAR Certs

Every 1 to 3 years we are issued new POLAR certificates that need installed on our servers to allow us to connect to HTTPS on our servers. This is a security feature where the servers need to have their target certificates installed.

Use the following attachment [ update-polar-certs ] [ developers-vm-polar-cert-update ] to allow you to copy-n-paste the commands, also this was for the batch server which is on Java 1.6.

Go to halprdjobs02.hq.halw.com and run the following commands as root:
$ cd /usr/java/jdk1.6.0_45/jre/lib/security
$ /usr/java/jdk1.6.0_45/bin/keytool -v -import -trustcacerts -alias pcl_rsa -keystore /usr/java/jdk1.6.0_45/jre/lib/security/cacerts -storepass -file /software/pcl-cert/JBoss/COMODO_RSA_Certification_Authority.CER
$ /usr/java/jdk1.6.0_45/bin/keytool -v -import -trustcacerts -alias RSA-organization -keystore /usr/java/jdk1.6.0_45/jre/lib/security/cacerts -storepass -file /software/pcl-cert/JBoss/New_Princess_COMODO_RSA_Organization_Validation_Secure_Server_CA.cer

Gimp like Photoshop

refer: http://www.omgubuntu.co.uk/2016/08/make-gimp-look-like-photoshop-easy
refer: http://doctormo.deviantart.com/art/Gimp-2-8-Photoshop-Tweaks-432736644

To help a fellow deviant, I've put together a download that anyone with Gimp 2.8 on Linux can use to make their copy of gimp look more like Adobe Photoshop and make people more comfortable.

I've taken various bits of guides online and various tweaks. All you have to do is download the file, unzip it. Then in the file manager go to your home folder, show hidden files, delete or move your old .gimp-2.8 configuration folder out of the way, and replace with the new one. Then load gimp. Then me know if it works for you or if it fails.

See attached file to import

Ubuntu type of CCleaner called Stacer

Refer: https://www.fossmint.com/stacer-ubuntu-system-optimizer/

--------------- On Ubuntu 64-bit ---------------
$ wget https://github.com/oguzhaninan/Stacer/releases/download/v1.0.4/Stacer_1.0.4_amd64.deb
$ sudo dpkg --install Stacer_1.0.4_amd64.deb
$ Stacer