Skip to content

Instantly share code, notes, and snippets.

View 4fthawaiian's full-sized avatar
💭
is this thing on?

Bradley McCrorey 4fthawaiian

💭
is this thing on?
  • TrendMicro
  • Sydney
View GitHub Profile
branch_weekly ()
{
echo "Creating new weekly branch..";
git checkout -b `week`;
git push origin `week`
}
alias node='env NODE_NO_READLINE=1 rlwrap -p Green -S "node >>> " node'
alias week='date +%yw%V'

Keybase proof

I hereby claim:

  • I am 4fthawaiian on github.
  • I am 4fthawaiian (https://keybase.io/4fthawaiian) on keybase.
  • I have a public key whose fingerprint is 359B 5058 0527 312E 6090 6D01 8ED1 58E4 5232 CA5F

To claim this, I am signing this object:

@4fthawaiian
4fthawaiian / bootstrap-ansible.sh
Last active September 5, 2016 20:15 — forked from tdeckers-cisco/bootstrap-ansible.sh
Install Ansible on RHEL6
#!/usr/bin/env bash
#
# Invoke this bootstrap using:
# bash < <(curl -s -L https://gist.githubusercontent.com/4fthawaiian/bb659350196a2ed776d6cf8610eda651/raw)
# (this should be run as root)
#
# symlink gsed (for compatibility with osx scripts)
cd /usr/local/bin; ln -s /bin/sed gsed
# another update
@4fthawaiian
4fthawaiian / nping
Created September 23, 2022 02:59
i needed a ping that would run constantly and keep track of misses, etc - obvs a work in progress but here goes
#!/usr/bin/zsh
status() {
OUTPUT="===hello==="
[[ ! -z $1 ]] && OUTPUT=$*
# Save cursor pos
tput sc
# Change scroll region to exclude first line
tput csr 1 $((`tput lines` - 1))
# Move to upper-left corner
tput cup 0 0