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
#this only works if your home dir is shared/mounted on every machine | |
remote="remote.machine.name" | |
user=$USER | |
shell=bash | |
#on login, see if this is an exceed session or not | |
if [ -n "$XCONFIG_NAME" -a -n "$XSTART_NAME" ]; then | |
#following is not totally necessary | |
echo $DISPLAY > ~/.display |
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 | |
set -e | |
#set -x | |
usage () { | |
cat <<EOF | |
Usage: $0 [-v|--verbose] [-h|--help] [-f|--from "dirs on camera"] [-t|--to "backup location"] camera_ip | |
EOF | |
} |
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/env python | |
# yo dawg I heard you needed a proxy for your proxy | |
# this is a very slow proof of concept | |
import socketserver | |
import http.server | |
import urllib.request | |
#whatever localhost port we want to listen on | |
g_port = 9999 |
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/env python | |
import re | |
class Coordinate(object): | |
def __init__(self, x, y): | |
self.x = x | |
self.y = y | |
def __str__(self): | |
return "({:.7},{:.7})".format(self.x, self.y) |