With Linux the Export Command Works Fine from the Terminal but Not in Scripts, How Can Scripts Provide the Correct Bash Environment Variables?

Problem scenario
EXPORT works when you use it interactively from the command prompt (e.g., bash prompt).  But when you use EXPORT commands in shell scripts, they do not have the desired effect.  You have a Linux script that sets environment variables.  You do not want to log off your terminal or desktop session after the script runs to get the environment variables.  How do you change environment variables via a shell or bash script in Linux without logging off and logging back in?

How Do You Update a BIOS on an HP ProBook Laptop Computer When the Directions Do Not Work?

Problem scenario
You cannot update BIOS on an HP ProBook (a laptop) computer.  You tried following two different update instructions, but they both failed.  You tried using HPBIOSUPDREC (by double-clicking the download file) and “following the on-screen instructions.”  This resulted in an automatic boot to BIOS just to see an error that says “Unable to open BIOS image file.”  You tried installing the HP System Software Manager (SSM).

A List of SAP Books

Ever wanted to speak Sapanese?  The initialisms and acronyms can be overwhelming.  Many people find classes to be poor ways of learning.  Here is a list of books that may help you learn about SAP.

105 SAP Security Interview Questions with Answers & Explanations by J Jerome and S Kaur
110 SAP SCM-Order Fulfilment (SD) Interview Questions: with Answers & Explanations (Volume 2) by S Kaur and Kristine K
1000 SAP ABAP INTERVIEW QUESTION &

How Do You Tell If You Have a 32 Bit Version of Linux or 64 Bit Version of Linux?

Problem scenario
You want to install Docker on Linux.  But you need a 64 bit version of Linux.  How do you determine if your operating system is 32 bit or 64 bit?

Solution
Run this script:

#!/bin/bash
os=$(uname -m | grep -i x)
if [ -z “$os” ];
then
  echo “The OS is 32 bit.

A List of SalesForce Books

10 Salesforce Survival Tips: Lower Your Cost and Reduce Risk with These Must-Have Tips by Matthew Botos
Account Planning in Salesforce by Donal Daly
Advanced Apex Programming for Salesforce.com and Force.com by Dan Appleman
Apex Design Patterns by Jitendra Zaa and Anshul Verma
Building Salesforce Community: Custom Development and Administration by Michael Slim
Developing Applications with Salesforce Chatter by Rakesh Gupta and Sagar Pareek
Development with the Force.com Platform: Building Business Applications in the Cloud (3rd Edition) (Developer’s Library) by Jason Ouellette
Force.com Enterprise Architecture by Andrew Fawcett  
Force.com Platform Fundamentals: An Introduction to Custom Application Development in the Cloud by Phil Choi
How to code in apex?: Cloud for all.

How Do You Find Files That Were Modified Recently and Have a Specific String in Their Name?

Problem scenario
On a Windows computer you want to find .txt files that were modified within the past four days. Using PowerShell you want to find files in a directory and its subdirectories that were modified within a certain time (within the past four days) and have a pattern in the name of “.txt”. How do you search every folder on the computer (or server) to filter files with 

How Do You Get an Ansible Playbook to Change a Variable Based on a Conditional?

Problem scenario
You do not want to manipulate a variable using a shell: or command: key word. You want a variable to be changed based on conditional logic. What do you do?

Solution
Use “set_fact:” and “when:”

Here is an example:

set_fact:
vara: False
when: “{{ foobar }}” == 35 …

A List of C# Books

Agile Principles, Patterns, and Practices in C# by Robert C. Martin and Micah Martin
Beginning ASP.NET 4.5.1: in C# and VB (Wrox Programmer to Programmer) by Imar Spaanjaars
Beginning C# Object-Oriented Programming (Expert’s Voice in .NET) by Dan Clark
Beginning C# Programming with MonoGame by A.T. Chamillard
Beginning C# Programming with Unity: Visual Studio Edition by A. T. Chamillard
Beginning C# 6 Programming with Visual Studio 2015 by Benjamin Perkins,

How Do You Troubleshoot Mongodb when It Will Not Start and You Get This Error “Failed to start mongodb.service: Unit mongodb.service not found.”?

Problem scenario
Using Linux you try to start the Mongodb service, but the service fails to start.  You get this error: “Failed to start mongodb.service: Unit mongodb.service not found.”  How do you fix this problem?

Solution
Verify you have this file: /etc/systemd/system/mongodb.service
Verify it has this content (with the last line being the “WantedBy=multi-user.target” stanza):

[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target
Documentation=https://docs.mongodb.org/manual

[Service]
User=mongodb
Group=mongodb
ExecStart=/usr/bin/mongod –quiet –config /etc/mongod.conf

[Install]
WantedBy=multi-user.target

With Ubuntu 16 the command “systemctl start mongodb” (as root with no quotes) should start the Mongodb service.

How Do You Deploy a Stack (a Collection of Infrastructure Resources) with AWS CloudFormation Using AWS CLI?

Problem scenario
You want to deploy a stack (a collection of infrastructure or application resources) with the AWS CLI. You want to create a server with CloudFormation and the AWS CLI. How do you do this?

Solution
Here is a simple example to answer the question.  This requires that you have AWS CLI installed and configured. If you need help with that, here are