.bat file: How setlocal enabledelayedexpansion came the rescue
Recently I was working on a script that verifies the service state for (RUNNING or PAUSED) and depending on the state, it should run some scripts. The problem was, I…
Recently I was working on a script that verifies the service state for (RUNNING or PAUSED) and depending on the state, it should run some scripts. The problem was, I…
Here's an Apple Script that allows to automate iTerm sessions. tell application "iTerm" activate set W to (create window with default profile) if W = missing value then set W…
I had to install a new plugin but in order to start fresh, I removed my platform/android folder and did run cordova prepare android . Without realising it, cordova-android when…
Recently disabled supported for TLS 1.1 on my server. To test if everything was working fine, I used curl. # Should fail curl -I -v --tlsv1.1 --tls-max 1.1 https://myserver.com/v1/ #…
# Instead use the -r option ``` $ zip -r src.zip ./src/ § zip src.zip ./src/**/* <-- Dont do this - Globs won't work as expected ``` # List zip…
In your local machine (the one that will be establishing the connection to the server) do: ssh-keygen -b 4096 Generating public/private rsa key pair. Enter file in which to save…
Recently, after a system crash and consequent system reboot, mysql stopped working. I tried to manually start the server but had no luck on this. sudo /usr/local/mysql/support-files/mysql.server start Tried to…
When we get started with bash scripting, one of the most frequent problems we come across is the incorrect CWD (current working directory). This is problematic when we expect to…
Copying files around is probably one of the most common reasons why we create bash files. We could be using unix cp but there are more powerful ways available. The…
Wikipedia describes rsync as follow: "rsync" is a utility for efficiently transferring and synchronizing files between a computer and an external hard drive and across networked computers by comparing the…