Skip to content

Instantly share code, notes, and snippets.

Jared Williams jaredmichaelwilliams

Block or report user

Report or block jaredmichaelwilliams

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jaredmichaelwilliams / README
Created May 22, 2018
Javscript to invite all slack users to a channel.
1. Open slack in a browser
2. Go to the channel you want to invite everyone to
3. Using Command/Control and the '-' key, make the page small
4. Open the Javascript console
5. Copy into the console the contents of inviteusers.js
6. Hit enter and watch it invite the users.
7. You might have to run it a few times if you have a lot of users and it doesnt add everyone at first
8. Took 4 times to invite 3,000 people to a channel on my slack

Keybase proof

I hereby claim:

  • I am jaredmichaelwilliams on github.
  • I am jaredwilliams ( on keybase.
  • I have a public key ASAa4mj-mcnTOHi_vDoEmou9A9tiXeeNbrd7ax8EteqvGAo

To claim this, I am signing this object:

jaredmichaelwilliams /
Created Nov 18, 2015 — forked from paragonie-scott/
An Open Letter to Developers Everywhere (About Cryptography)
jaredmichaelwilliams /
Last active Oct 21, 2015
Time elapsed in minutes and seconds since date on OS X - use with `watch` for updating clock
date1=$(date -j -f "%b %d %T %Z %Y" "Oct 20 21:00:00 EDT 2015" "+%s") date2=$(date +%s) diff=$(($date2-$date1)) ; echo "$(($diff / 60)) minutes and $(($diff % 60)) seconds elapsed."
View Extract URLs from Text
command with text output | grep -Eo "(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?"
jaredmichaelwilliams / Quickly Add 5GB Swap File
Last active Mar 24, 2018
Quick Add 5GB Swap File, and add to fstab
View Quickly Add 5GB Swap File
dd if=/dev/zero of=/mnt/swap bs=1024 count=5242880;
mkswap /mnt/swap;
chown root:root /mnt/swap ;
chmod 0600 /mnt/swap ;
swapon /mnt/swap;
echo "/mnt/swap swap swap defaults 0 0" >> /etc/fstab;
jaredmichaelwilliams / Notes
Last active Sep 17, 2015
10 Random Words off Random Wikipedia Articles - Use for Passwords
View Notes
brew install gnu-sed
jaredmichaelwilliams / 0.Setup
Last active Aug 28, 2018
Setting up a Yubikey for use with SSH
View 0.Setup
Purchase YubiKey NEO
Install X Code and Command Line Tools, if installing anything from source.
X Code can be installed from the App Store.
Command Line Tools are installed from X Code: X Code -> Preferences -> Downloads -> Components -> Command Line Tools.
Install YubiKey reader library libyubikey (aka yubico-c)
Using homebrew:
brew install libyubikey
brew install ykpers
View gist:ce73746ded0c29b438dc
echo "Detailed Inode usage for: $(pwd)" ; for d in `find -maxdepth 1 -type d |cut -d\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; echo -e "$c\t\t- $d\n" ; done | sort -n ; echo -e "Total: \t\t$(find $(pwd) | wc -l)\n"
View gist:d3a94c92d9760b7cca37
arp -n | awk '{print "arp -v -d "$1}' | egrep '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | bash
You can’t perform that action at this time.