Skip to content

Instantly share code, notes, and snippets.

View dnestoff's full-sized avatar

davidnestoff dnestoff

View GitHub Profile
@dnestoff
dnestoff / Server Triaging
Last active February 18, 2021 17:37
Commands for working with EC2 instances via SSH and the command line.
# Check the disk space usage (in human readable format)
df -h
# Check a specific disk
df -hT /dev/xvda1
# Example output
# Filesystem Size Used Avail Use% Mounted on
# udev 462M 0 462M 0% /dev
#tmpfs 99M 1.9M 97M 2% /run
@dnestoff
dnestoff / Main.sh
Last active January 12, 2023 17:45
Shell scripting blocks that I'm commonly re-using.
# IF statements
if [[ $var = "All" ]]
then
echo "it's all!"
elif [[ $var = "Some" ]]
then
echo "it's some :-E"
else
echo "neither of those..."
fi

Keybase proof

I hereby claim:

  • I am dnestoff on github.
  • I am dnestoff (https://keybase.io/dnestoff) on keybase.
  • I have a public key ASCN_wPNTeNDs9p4GfkzhK7gBpheg5LMFLpvb2d5Iafo-wo

To claim this, I am signing this object: