How Do You Troubleshoot SSH Connection Timed Out?

Problem scenario
You are trying to use SSH, but you get a “connection timed out” error. What should you do?

Possible solution #1
Can you try to ping the hostname or IP address? Are you connected to a necessary VPN? Perhaps the endpoint is down or not reachable from the network you are on.

Possible solution #2
Is there a router that was recently configured?

Does a “Sell Short” Button Do What a Regular “Sell” Button Would Do?

Problem scenario
You are trying to sell a stock. You see an option for “Sell Short”, but no “Sell” button. You want to do a regular sell as a trade. You don’t want to try to “short” a stock. What should you do?

Possible Solution
It is good to be observant because a “Sell Short” option is different from a regular sale of stock.

What Do You Do when You Cannot Send an Email due To “Error when communicating with server”?

Problem scenario
You have a web-based email account, and you cannot send an email. You cannot save a draft of the email. You get “Error when communicating with server” in red. What should you do?

Solution
Delete the images/graphics of the original email or in your message. This usually happens when the sender had graphic intensive content, and you are trying to respond.

How Do You Troubleshoot a Linux Script Not Redirecting the Output to a File?

Problem scenario
You have a Bash script with a task that is supposed to redirect the output to a file. The command produces output when you manually run it. But the output is not getting to the file. What could be wrong?

Possible Solution
If the output of the automation has a message and the OS is Linux, the command may or may not work.

How Do You Run Snyk Scans as Part of Azure DevOps Pipelines?

Problem scenario
You know that many sources recommend you scan IaC code as part of modern security recommended practices. (Page 293 of Terraform: Up & Running, 2nd Edition by Yevgeniy Brikman (O’Reilly), Copyright 2019, 978-1-492-04690-5 recommends using Snyk.) You tried to create a new pipeline in Azure DevOps. You tried to add a Snyk task. But you were not able to. Why in Azure DevOps do you not see a Snyk option for a task to add to a pipeline?

How Do You Troubleshoot “‘configure’ was unable to find any version of the GTK libraries on your system.”?

Problem scenario
You are running the “configure” script on a RHEL server. You get this error:

“‘configure’ was unable to find any version of the GTK libraries on your system.”

What should you do?

Solution
Run this:

sudo yum -y install gtk2-devel …

What Are Common Use Cases of Daemonsets in Kubernetes?

Question
DaemonSets will bypass the scheduler and deploy to nodes that are designated as “unschedulable”; however you can use a DaemonSet to deploy to a subset of all the nodes (according to page 109 of Kubernetes in Action). In the real world, what are daemonsets used for in Kubernetes?

Answer

  • Monitoring of pods/nodes (such as Prometheus Node Exporter,

How Do You Parse a String in Bash?

Problem scenario
You want to count the number of “(” (open parens) in a string. How do you parse a string in Bash?

Solution
Remember to use awk. The -F flag can allow you to designate a character to count and the NF flag can count the occurrences.

echo “continualintegration” | awk -F “o” ‘{print NF-1}’

echo “c(ntinua((lintegrati(n” | awk -F “(” ‘{print NF-1}’

You may also want to see this posting parse an array.

What is Knowledge of Merging Strategies in the Context of Git?

Question
What are different merging strategies in the context of Git?

Possible Answers
“…branches are completely useless unless you merge them…” – Linus Torvalds

A branch is a set of files associated with a code base usually in a collection known as a repository. Atlassian says “[b]ranching is a feature available in most modern version control systems…”,

How Do You Fix a Carrier Thermostat That Is Blinking All Lights and Not Working?

Problem scenario
Your Carrier thermostat (e.g., a programmable Comfort (TM) Series Touch-n-Go (TM)) is not working. There is a glitch or apparent malfunction on the screen. All the lights flash on with the backlight turning on — then the display goes dark (unlit with no indication). The heating and cooling does not work. The batteries seem good; the thermostat showed them at two-thirds strength (two of three bars were strong).