Showing posts from November, 2020

Digital Marketing

SSH Jump Server

If the server is accessible via then you can access other servers behind the same NAT boundary via -J command line flag, i.e. on the client: $ ssh -J you can update your client’s SSH configuration in ~/.ssh/config with the following: Host 10.8.8.*     ProxyJump An example Jump user without other privileges: Match User jumpuser PermitTTY no X11Forwarding no PermitTunnel no GatewayPorts no ForceCommand /usr/sbin/nologin User client file: client SSH configuration with: Host 10.8.8.* ProxyJump

With the Windows 10 Game Bar, you can record the last several seconds or minutes of screen activity after you've already performed it.

First grant permission for the computer to record your activities in the background.  Open the Game Bar and click the Settings icon. Scroll down the Settings screen and check the box to Record in the background while I'm playing a game.  Click the drop-down menu for Record the last and change the interval to anywhere from 15 seconds to 10 minutes.

Install and Update Python to 3.9 in Ubuntu

Windows Sandbox

Windows Sandbox allows users to test applications to make sure they do not perform unwanted activity Windows Sandbox is a new feature that was added to Windows 10 build 1903 (19H1) that allows users to execute programs in a sandboxed environment that has no affect on your normal system. 

Enable and configure Microsoft Defender Antivirus always-on protection in Group Policy

You can use Local Group Policy Editor to enable and configure Microsoft Defender Antivirus always-on protection settings. To enable and configure always-on protection: Open Local Group Policy Editor. To do this: In your Windows 10 taskbar search box, type gpedit. Under Best match, click Edit group policy to launch Local Group Policy Editor. In the left pane of Local Group Policy Editor, expand the tree to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus. Configure the Microsoft Defender Antivirus antimalware service policy settings.

Express is the de facto standard JavaScript Server Side framework.

Express is the complete Application framework with, e.g., middleware, routing, template. Express supports MVC pattern with View system supporting 14+ templating engines. Express offers robust routing. Express supports content negotiation.

Script to install Jenkins plugins

jenkins-plugin-cli WARN: is deprecated, please switch to jenkins-plugin-cli $ which jenkins-plugin-cli /bin/jenkins-plugin-cli Example: /bin/jenkins-plugin-cli git:latest

Run and login to Kite from command line

with systemd, run systemctl --user start kite-autostart  without systemd, run $HOME/.local/share/kite/kited  To login, run this command in a terminal:          ~/.local/share/kite/login-user 

DNS Propagation Checker lets you instantly perform a DNS lookup to check a domain name's current IP address and DNS record information against multiple nameservers located in different parts of the world.

Hide (or show) the Remote Desktop connection bar when in full screen mode

Go to: 'Start' > 'Programs' > 'Communication' > 'Remote Desktop Connection' Click on the 'Options >>' button Click on the 'Display' tab Check (or uncheck) "Display the connection bar when I use the full screen" (for Windows CE6 Operating System) or "Display the connection bar" (for Windows CE5 Operating System) Ctrl + Alt + Home : In full-screen mode, activate the connection bar

Connect to MySQL TCP instead of a socket

Method 1: Do not use localhost - use instead. Many clients have an internal alias that makes them connect to the socket if you specify localhost as target. Method 2: Specify that you want to use TCP and not a socket (mysql --protocol tcp) You can also easily make that the default my editing your my.cnf so it has this ([client] means any client: [client] protocol=tcp

Change a Git Remote's URL

Use the git remote set-url command followed by the remote name, and the remote’s URL: git remote set-url <remote-name> <remote-url>

Show MySQL Databases

To show all available databases enter the following command: SHOW DATABASES;

Synchronization tools

Lsyncd is designed to synchronize a slowly changing local directory tree to a remote mirror. Lsyncd is especially useful to sync data from a secure area to a not-so-secure area. Mirror is an asynchronous synchronisation tool that takes use of the inotify notifications much like Lsyncd. The main differences are: it is developed specifically for master-master use, thus running on a daemon on both systems, uses its own transportation layer instead of rsync and is Java instead of Lsyncd’s C core with Lua scripting. DRBD operates on block device level. This makes it useful for synchronizing systems that are under heavy load. Lsyncd on the other hand does not require you to change block devices and/or mount points, allows you to change uid/gid of the transferred files, separates the receiver through the one-way nature of rsync. DRBD is likely the better option if you are syncing databases. GlusterFS and BindFS use a FUSE-Filesystem to interject kernel/userspace filesystem events.

Flush the DNS cache

The command to Flush the DNS cache can vary widely depending on your specific distribution and version. Ubuntu and Debian-derived distributions use: sudo service dns-clean restart. Other Linux distributions using NSCD (Name Service Caching Daemon) may need to use one of the following commands. sudo service nscd restart  sudo systemctl restart nscd.service nscd -I hosts

Where is the Hosts File Located?

The location of the hosts file will differ by operating system.  The typical locations are noted below. Windows 10 – “C:\Windows\System32\drivers\etc\hosts” Linux – “/etc/hosts” Mac OS X – “/private/etc/hosts”

Editing Windows host file

In Windows, the hosts file is located at C:\Windows\System32\drivers\etc\hosts.  You will need to edit the file with administrative privileges. Step 1. Click the Windows button and type ‘Notepad’ in the search box. Step 2. Right-click on ‘Notepad’ and then ‘Run as Administrator’. Step 3. Choose ‘Yes’ on the User Account Control pop-up. Step 4. In Notepad, choose ‘File’ then ‘Open’. Step 5. Click the address bar at the top and paste C:\Windows\System32\drivers\etc\hosts – then choose ‘Enter’. Step 6. Choose Notepad from the list and then OK. Step 7. Add/Edit the appropriate IP and hostname, select Save, and close the file. Step 8. Next, you will want to flush your DNS cache so you don’t have to log out and back in for the changes to take effect. Step 9. Lastly, open an elevated command prompt as above, and enter the following command: admin@host:# ipconfig /flushdns

Generate a single use auto-login url for WHM

sudo /usr/sbin/whmlogin

Pfizer says its vaccine is more than 90-per-cent effective

Pfizer says its vaccine is at least 90% effective in early trials

Nvim configuration file.

Neovim use a different configuration file from Vim. You need to create a file named init.vim under the directory ~/.config/nvim (if this directory does not exist, just create one). All configurations can be put into this file. Most of the configuration options for Neovim are the same with Vim.

Configure ALL Jenkins initial setup with Jenkins Configuration as Code

Jenkins Configuration as Code (JCasC) can give you Fully working Jenkins controller with: no hands on keyboard no click on UI


URI stands for Uniform Resource Identifier. URL stands for Uniform Resource Locator. Anything that uniquely identifies a resource is its URI, such as id, name, or ISBN number. A URL specifies a resource and how it can be accessed (the protocol).  All URLs are URIs, but not all URIs are URLs.

HTML DOM console.trace() Method

The console.trace () method displays a trace that show how the code ended up at a certain point. The HTML DOM console.trace () method is used to display the stack trace upto the point the console.trace () method has been called upon. It is basically used for displaying the code path i.e how the code ended up at that point.

Create NodeJS base image and represents NodeJS runtime