The services in Windows can be listed using the Service Manager tool. To start the Service Manager GUI, press Win keybutton to open the start menu, type in services to search for the Service Manager and press Enter to launch it. The services can also be listed using the command-line prompt (CMD) or the PowerShell. […]
Sometimes it may be complex to debug Git errors, like “fatal: repository not found” or “fatal: authentication failed” with the default level of verbosity in Git. To debug different network, security, performance and many other issues in Git it is very helpful to know how to increase verbosity. In this note i am showing how […]
The which command in Linux is used to identify the location of executables. The where command is a Windows which equivalent in a command-line prompt (CMD). In a Windows PowerShell the alternative for the which command is the Get-Command utility. In this note i will show how to find paths of executable commands in Windows.
Sometimes when an application in Windows hangs, freezes and stops responding the only way to terminate it is to kill from the command-line. The taskkill command in Windows serves for terminating tasks by name or by process id (PID). In this note i am showing how to find and kill a process by its name […]
A Git commit ID is a 40 digits long SHA-1 hash, that can be abbreviated up to the shortest 4 digits version (7 by default). In this note i am showing how to abbreviate the long hash to a short hash in Git and how to display the abbreviated hashes in the outputs of the […]
In Git we can gracefully revert all changes to the specific commit without using the potentially dangerous git reset command. In this note i am showing how to undo local changes by making a rollback to the specific commit and how to revert a commit that has already been pushed to remote.
It may be useful to run an Ansible playbook on a local system. For example for putting a playbook in a crontab or for a new host provisioning. In this note i am showing the several ways to run Ansible playbook locally.
During troubleshooting of Ansible issues it is useful to know how to enable debug mode and increase the level of verbosity. To enable debug and increase verbosity in Ansible you can pass the corresponding environment variables on the command line or define these settings in Ansible configuration file. Warning: The debug output can also include […]
In this article i am showing how to clear Git history by removing all commits. You may need this if you want to delete sensitive data from the history of Git commits. After such cleanup you will have the latest version of your Git repository, but with the one commit only. Be aware that after […]
In Ansible playbooks, it is often a good practice to test if a variable exists and what is its value. Particularity this helps to avoid different “VARIABLE IS NOT DEFINED” errors in Ansible playbooks. In this context there are several useful tests that you can apply using Jinja2 filters in Ansible. In this article, i’ll […]