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 | |
BASEDIR=`dirname $0` | |
INCLUDE_DIRS="/home/pi/work/" | |
FILE=$BASEDIR/pi-work.tar.gz | |
tar czvf $FILE $INCLUDE_DIRS | |
~/open-source/Dropbox-Uploader/dropbox_uploader.sh upload $FILE |
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
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os/exec" |
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
tmux_init() | |
{ | |
tmux new-session -s "work" -d -n "ssh-window" | |
tmux new-window -n "other" "htop" | |
tmux split-window -v "vim" | |
tmux split-window -h "dstat -v" | |
tmux -2 attach-session -d | |
} | |
if which tmux 2>&1 >/dev/null; then | |
test -z "$TMUX" && (tmux attach || tmux_init) |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from Foundation import * | |
from SystemConfiguration import * | |
import os | |
import commands | |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import os | |
import glob | |
from urllib2 import urlopen, Request | |
from urllib import urlencode | |
import getpass |