Skip to content

Instantly share code, notes, and snippets.

View byates's full-sized avatar
🗻

Brent Yates byates

🗻
  • Atlanta GA, USA
View GitHub Profile
@byates
byates / az_sdmc_core.sh
Last active January 2, 2021 21:02
Simple setup script
#!/bin/bash
# Modify .bashrc to startup the ssh agent
tmpFile=/tmp/__setup.tmp
cat > $tmpFile << 'BASHRC'
# JBY-SSH-AGENT
if [ -z "$SSH_AUTH_SOCK" ]; then
# Check for a currently running instance of the agent
RUNNING_AGENT="`ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'`"
@byates
byates / az_ubuntu_setup.sh
Last active January 15, 2021 19:43
Azure Ubuntu Setup
#!/bin/bash
# Modify .bashrc to startup the ssh agent
tmpFile=/tmp/__setup.tmp
cat > $tmpFile << 'BASHRC'
# JBY-SSH-AGENT
if [ -z "$SSH_AUTH_SOCK" ]; then
# Check for a currently running instance of the agent
RUNNING_AGENT="`ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'`"