Skip to content

Instantly share code, notes, and snippets.

View thejeff77's full-sized avatar

thejeff77

  • Mission Lane
  • United States
View GitHub Profile
@thejeff77
thejeff77 / openssl-build-compile.sh
Created March 12, 2019 15:21
Example Mac Xcode OpenSSL build & compile
#/bin/bash
#Last update: June 2016
echo "==============================="
echo "======Configuring OpenSSL======"
echo "==============================="
git clone https://github.com/openssl/openssl.git
@thejeff77
thejeff77 / linux-flavor.sh
Created March 12, 2019 15:17
Bash script example - Detect Linux Flavor and run conditional code
#!/bin/bash
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
CYGWIN*) machine=Cygwin;;
MINGW*) machine=MinGw;;
*) machine="UNKNOWN:${unameOut}"
esac
@thejeff77
thejeff77 / install-jmeter.sh
Created March 12, 2019 15:13
Script Example For Jmeter Installation on Linux/Mac. Adjust jmeter version & DL URL accordingly
#!/bin/bash
#Mac requires wget to be installed '> brew install wget'
function pause(){
read -p "$*"
}
if [[ "$EUID" -ne 0 ]]; then
echo "This script should not be run using sudo or as the root user"
exit 1