docker.sh: a small interactive shell hack for docker
Usage: ./docker.sh [base-image-name]
on write_to_file(this_data, target_file, append_data) | |
try | |
set the target_file to the target_file as string | |
set the open_target_file to open for access file target_file with write permission | |
if append_data is false then set eof of the open_target_file to 0 | |
write this_data to the open_target_file starting at eof | |
close access the open_target_file | |
return true | |
on error | |
try |
import cv2 | |
import numpy as np | |
import time | |
import livestreamer | |
# use live streamer to figure out the stream info | |
streams = livestreamer.streams("http://www.twitch.tv/inostupid") | |
stream = streams['best'] | |
# open our out file. | |
fname = "test.mpg" |
docker.sh: a small interactive shell hack for docker
Usage: ./docker.sh [base-image-name]
#!/usr/bin/env bash | |
# fresh-chrome | |
# | |
# Use this script on OS X to launch a new instance of Google Chrome | |
# with its own empty cache, cookies, and user configuration. | |
# | |
# The first time you run this script, it will launch a new Google | |
# Chrome instance with a permanent user-data directory, which you can | |
# customize below. Perform any initial setup you want to keep on every |