I hereby claim:
- I am evanjarrett on github.
- I am 00firestar00 (https://keybase.io/00firestar00) on keybase.
- I have a public key whose fingerprint is DCE5 B3A0 82CB 3A93 704A 9E9A 21E5 A3F7 3A53 AF48
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
images=$(curl 'https://www.reddit.com/r/earthporn/hot.json' | grep -Po 'http(s?)://(i.)?imgur.com/.*?"' | sed 's/"//g'); | |
count=$(echo $images | tr -cd " " | wc -c) | |
num=$(($RANDOM % $count + 1)) | |
image=$(awk 'BEGIN { FS = " " } { print $'$num' }' <<< $images) | |
if [[ $image != *.jpg ]]; then | |
image=$(sed 's/imgur/i.imgur/g' <<< $image).jpg | |
fi | |
curl $image -o /usr/local/bin/myfile.jpg |
#!/bin/bash | |
# Hipchat 4 | |
sudo sh -c 'echo "deb https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client $(lsb_release -c -s) main" > /etc/apt/sources.list.d/atlassian-hipchat4.list' | |
wget -O - https://atlassian.artifactoryonline.com/atlassian/api/gpg/key/public | sudo apt-key add - | |
apt-get install hipchat4 | |
# PHPStorm | |
phpstorm='PhpStorm-2017.3.4' | |
sudo wget "https://download.jetbrains.com/webide/$phpstorm.tar.gz" -O /opt/phpstorm.tar.gz |