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

Changing your Mac Address

Generate a new Mac Address
perl -e 'for ($i=0;$i<5;$i++){@m[$i]=int(rand(256));} printf "02:%X:%X:%X:%X:%X\n",@m;'

Start Changing
sudo ifconfig en0 ether 02:8D:DE:BC:7E:72

How to Change Your Mac Address:

www.howtogeek.com/192173/how-and-why-to-change-your-mac-address-on-windows-linux-and-mac/

How are Mac Addresses assigned and Unique:

www.howtogeek.com/228286/how-is-the-uniqueness-of-mac-addresses-enforced/

Remote Execution Commands

Here are some of the tools I have used in the pass to do various things. If I have to use something today then that would be SSH and Ansible for any mass operations

For all small jobs I generally go with SSH safe and secure.
Here are some of the examples of how you can put SSH to use. Make sure you setup credential keys for ease.

www.cyberciti.biz/faq/unix-linux-execute-command-using-ssh

www.cyberciti.biz/faq/linux-unix-osx-bsd-ssh-run-command-on-remote-machine-server

Following is the tool that allows you execute commands on multiple hosts. This is Python based.

www.tecmint.com/execute-commands-on-multiple-linux-servers-using-pssh

Ansible:

ansible-tips-and-tricks.readthedocs.io/en/latest/ansible/commands/#running-ad-hoc-commands

On Windows machine I used PowerShell. I find powershell too complicated and cryptic

www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers

Perl and SQLite Example along with MongoDB

Within Ubuntu using:SQLiteman

You'll need the DBI package, if not installed do the following within Ubuntu
sudo perl -MCPAN -e shell
cpan> install DBI
cpan> install DBD::SQLite module

Simple Perl script example, creating and inserting into a table: example1.pl

Installing Driver for MongoDB is just as easy, but be warned, it takes a long time to install.

sudo perl -MCPAN -e shell
cpan> install MongoDB::Connection

 

Add sublime package manager

Ctrl+[`] and then enter the python script form here

https://sublime.wbond.net/installation#st2

Sublime 2 was this:

import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')