I hereby claim:
- I am jaredmichaelwilliams on github.
- I am jaredwilliams (https://keybase.io/jaredwilliams) on keybase.
- I have a public key ASAa4mj-mcnTOHi_vDoEmou9A9tiXeeNbrd7ax8EteqvGAo
To claim this, I am signing this object:
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 |
I hereby claim:
To claim this, I am signing this object:
Hello software developers,
Please check your code to ensure you're not making one of the following mistakes related to cryptography.
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." | |
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]*)?" |
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; | |
Dependencies | |
brew install gnu-sed |
Preparation | |
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 |
#!/bin/bash | |
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" |
#!/bin/bash | |
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 |