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
#! /usr/bin/python | |
import getopt, sys, os, time, subprocess, shutil, argparse | |
WIDTH = 1280 | |
HEIGHT = 720 | |
RATE = "60000/1001" | |
EXT = ".mov" | |
FFMPEG = "ffmpeg.exe" |
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
#!/bin/bash | |
declare SRC="" | |
declare DST="" | |
declare -i USE_TIME=0 | |
declare -r WIDTH=1280 | |
declare -r HEIGHT=720 | |
declare -r RATE="60000/1001" | |
declare -r EXT=".mov" |
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
#!/bin/sh | |
SRCFILE=$1 | |
DSTFILE=$2 | |
# Sanity checking, to make sure everything is in order. | |
if [ -z "$SRCFILE" -o -z "$DSTFILE" ]; then | |
echo "Usage: $0 <Source File> <Destination File>" | |
exit 5 | |
fi | |
if [ ! -f "$SRCFILE" ]; then |
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
# The player piano takes 720k floppies. "Convert" 1.44MB floppies by putting a piece of tape over the lower right hole. | |
# Insert the original disk | |
# Make an image of the original disk: | |
ddrescue -b 512 -c 9 -d -r 20 /dev/fd0 classical1.img | |
# Insert the blank disk | |
# Format as 720k (Double Density) | |
superformat /dev/fd0 dd |
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
#!/bin/sh | |
SRCFILE=$1 | |
DSTFILE=$2 | |
# Sanity checking, to make sure everything is in order. | |
if [ -z "$SRCFILE" -o -z "$DSTFILE" ]; then | |
echo "Usage: $0 <Source File> <Destination File>" | |
exit 5 | |
fi | |
if [ ! -f "$SRCFILE" ]; then |
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 cp netmonitor.sh /usr/bin/netmonitor.sh | |
sudo chmod 755 /usr/bin/netmonitor.sh | |
sudo crontab -e | |
Add to crontab: | |
*/2 * * * * /usr/bin/netmonitor.sh 2>&1 | /usr/bin/logger -t netmonitor |