Taken from:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "What directory would you like to execute this script on?" | |
echo "NOTE: do not execute this on the same directory that contains this script" | |
read FILEPATH | |
for file in $(echo $FILEPATH*); do | |
filenew=`echo $file | sed 's/foo/bar/g'` | |
if [ "$filenew" != "$file" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Created by: Grant Ridder <[email protected]> | |
# Instructions taken from the below link unless noted | |
# http://stackoverflow.com/questions/25657596/how-to-set-up-gui-on-amazon-ec2-ubuntu-server | |
# SET THESE VARIABLES TO YOUR OWN!!! | |
# begin | |
VNC_PASSWORD="<password up to 8 char long>" | |
SSH_KEY="</path/to/your/ec2/ssh/key.pem>" | |
# end |
I hereby claim:
- I am shortdudey123 on github.
- I am shortdudey123 (https://keybase.io/shortdudey123) on keybase.
- I have a public key ASAENAhze9GyQSsa8bcZbpojbBNEGW8THLYAylsKy9K8DAo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby:2.3.1-alpine | |
/ # ruby test.rb | |
Failed after 10729 successes | |
SocketError | |
getaddrinfo: Try again | |
test.rb:8:in `gethostbyname' | |
test.rb:8:in `<main>' | |
/ # | |
/ # ruby --version |