This file contains 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
awscli==1.14.6 | |
botocore==1.8.10 | |
certifi==2017.11.5 | |
chardet==3.0.4 | |
colorama==0.3.7 | |
docutils==0.14 | |
futures==3.2.0 | |
idna==2.6 | |
jmespath==0.9.3 | |
pkg-resources==0.0.0 |
This file contains 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 os | |
import sys | |
import time | |
import requests | |
PREFIX = sys.argv[1] | |
AWS_ACCESS_KEY_ID = os.environ["AWS_ACCESS_KEY_ID"] | |
AWS_SECRET_ACCESS_KEY = os.environ["AWS_SECRET_ACCESS_KEY"] | |
TIMEZONE_KEY = os.environ["TIMEZONE_KEY"] |
This file contains 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
proc /proc proc defaults 0 0 | |
PARTUUID=34506aa4-01 /boot vfat ro 0 2 | |
PARTUUID=34506aa4-02 / ext4 ro,noatime 0 1 | |
tmpfs /mnt/in_memory_filesystem tmpfs nodev,nosuid,size=256M 0 0 | |
mount_unionfs /etc fuse defaults 0 0 | |
mount_unionfs /var fuse defaults 0 0 | |
none /tmp tmpfs defaults 0 0 |
This file contains 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
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install libomxil-bellagio-dev -y | |
sudo apt-get install v4l-utils | |
sudo sh -c 'echo "deb http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list.d/deb-multimedia.list' | |
sudo sh -c 'echo "deb-src http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list.d/deb-multimedia.list' | |
sudo apt-get update | |
yes | sudo apt-get install deb-multimedia-keyring | |
sudo apt-get update |
This file contains 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 commands | |
# ASSUMED THAT THIS COMMAND HAS ALREADY BEEN RUN | |
# sudo mkdir /mnt/usb_stick | |
MOUNT_DIR = "/mnt/usb_stick" | |
def run_command(command): | |
# start = time.time() | |
ret_code, output = commands.getstatusoutput(command) |
This file contains 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
def test(): | |
print "hello" |