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 | |
# A command-line tool to get the private and public ip address per network | |
# interface for Mac and Linux. | |
# | |
# Dependencies: | |
# - MacOS: ifconfig | |
# - Linux: ip | |
# | |
# Installation: |
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 | |
# A command-line tool to simplify the copy of text generated in the terminal to | |
# the clipboard | |
# | |
# Dependencies: | |
# - MacOS: pbcopy | |
# - Linux: xclip | |
# | |
# Installation: |
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
import argparse | |
import os | |
import serial | |
import thread | |
def file_path(string): | |
if os.path.exists(string): | |
return string | |
else: | |
raise Exception('%s does not exists' % string) |
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 | |
sudo yum install -y aws-cli | |
cd /home/ec2-user/ | |
aws s3 cp 's3://aws-codedeploy-us-east-1/latest/codedeploy-agent.noarch.rpm' . --region us-east-1 | |
sudo yum -y install codedeploy-agent.noarch.rpm |