Refer: https://dev.to/devmount/9-evil-bash-commands-explained-4k5e
Using Windows 10 Applocker
Refer: https://www.youtube.com/watch?v=X60HSOk_gnU
Use this to lockdown access to folders or files in Windows 10.
Request Map Generator
Tool to see all of the Javascript calls being made by a website
http://requestmap.webperf.tools
Install Go on Ubuntu 18.04, Using Snap
Refer: https://www.codeooze.com/ubuntu/ubuntu-18-golang-snap/
Step 1: Check if Go is already installed
$ go version
Step 2: Install Go using snap, see what's available
$ snap info go
Step 3: Classic confinement error
Explanation: Most snaps are installed in confined containers and only have limited access to other system resources. However, snaps published with classic confinement have greater access to the rest of the system, which is desirable for scripting packages such as Go.
$ sudo snap install go --classic
Step 4: Verify the install
$ snap list
$ go version
$ go env
Conclusion
You have now successfully installed Go in Ubuntu 18 using snap
Windows Always Shows “Missing Important Fixes”
Fixing "Your device is missing important security and quality fixes."
Refer: https://www.youtube.com/watch?v=1wjtBFTPR00
On a Windows 10 based computer, the following warning message is displayed in Update and Security center: "We couldn't connect to the update service. Your device is at risk because it's out of date and missing important security and quality updates. Let’s get you back on track so Windows can run more securely."
Telemetry Level: There is an option in Windows Group Policy Editor that allows you to control the levels of the Telemetry. It just so happens that some Windows Updates (especially the cumulative updates) won’t be delivered to your system if your Telemetry level is set to Security only.
This tutorial will apply for computers, laptops, desktops,and tablets running the Windows 10 operating system (Professional, Enterprise, Education) from all supported hardware manufactures, like Dell, HP, Acer, Asus, Toshiba,Lenovo, and Samsung).
Here's the fix
gpedit.msc
"Computer Configuration"
"Administrative Templates"
"Windows Components"
"Data Collection and Preview Builds"
"Allow Telemetry"
Originally "Not Configured"
Changing to:
Enabled, Enhanced
Disable Windows Git Credential Manager
Refer: https://stackoverflow.com/questions/37182847/how-do-i-disable-git-credential-manager-for-windows
OK, I discovered that you need to either avoid checking the "Git Credential Manager" checkbox during the Git for Windows installer, or (after installation) run the Bash shell as Administrator and use git config --edit --system to remove the helper = manager line so that it is no longer registered as a credential helper.
For bonus points, use git config --edit --global and insert:
git config --edit --system
[core]
askpass =
To disable the OpenSSH credentials popup too.
Creating a Stand-alone Jar File in IntelliJ
Navigate IntelliJ
File, "Project Structure", Artifacts
Click + "Plus Sign", and Select "Jar", "From modules with dependencies"
Now select the "Main Class" you wish to use (e.g. "DemoClass")
Keep defaults as-is
"extract to the target JAR"
"Directory to META-INF/MANIFEST.MF" points to source folder
Click "OK"
Now build the jar file
Build, "Build Artifacts", "Build"
Your jar file should now be in, or the equivalent
JavaFun/out/artifacts/JavaFun_jar
Run the file with
java -jar JavaFun.jar
Tree list of pom.xml files
Use the following example to list all of the folders that contain a pom.xml file
Refer: https://www.computerhope.com/unix/tree.htm
tree --prune -P "pom\.xml"
Issue with Updating Docker on Ubuntu 18.04
Reading package lists... Done
E: Repository 'https://download.docker.com/linux/ubuntu bionic InRelease' changed its 'Label' value from 'Docker EE' to 'Docker CE'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Refer: https://forums.docker.com/t/apt-repo-label-changed-from-ce-to-ee/82488/5
$ sudo apt-get --allow-releaseinfo-change update
VirtualBox Company VPN Issues with DNS
Refer: https://superuser.com/questions/570984/virtualbox-guest-ubuntu-loses-dns-when-host-connects-to-vpn
$ sudo gedit /etc/NetworkManager/NetworkManager.conf
Comment out, the plugins line below (shown before commenting)
[main]
plugins=ifupdown,keyfile,ofono
# dns=dnsmasq
Notes: had a very similar situation with Lubuntu 16.04 (should be identical in other Ubuntus) but this fix did not improve the situation. At least with 16.04, the problem appears to be that NetworkManager uses a local DNS proxy (dnsmasq), and this doesn't play nice with VPN connections, at least in the default configuration.
Commenting/deleting dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf
Note: This fixed was applied too on the Windows host, but it did not seem to make a difference, go ahead and do both.
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyvm Ubuntu-1804-Convert --natdnshostresolver1 on
