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/python | |
import json | |
import os | |
import requests | |
# For a list of bricks and their colors | |
# Find the fewest sellers that you can get your bricks from | |
# So you dont have to deal with tons of orders from tons of sellers :-) |
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/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import with_statement | |
from contextlib import closing | |
from zipfile import ZipFile, ZIP_DEFLATED | |
import os | |
import datetime | |
import shutil | |
def zipdir(basedir, archivename): |
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 | |
TMPPATH=/tmp/site/ | |
BUCKET=s3://wullt.net/ | |
rm -rf $TMPPATH | |
wget \ | |
--recursive \ | |
--no-clobber \ |
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 | |
IP=$( /usr/bin/curl ipinfo.io/ip ) | |
USAGE=$(cat <<-END | |
{ | |
"Comment": "Update record to reflect new IP address of this RPI", | |
"Changes": [ | |
{ | |
"Action": "UPSERT", |
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 | |
/usr/bin/zip -r /tmp/repositories.zip /home/git | |
/usr/local/bin/aws s3 cp /tmp/repositories.zip s3://wulltnet/rpi/ | |
rm /tmp/repositories.zip |
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/sh | |
rfolder=/sdcard/DCIM/Camera | |
lfolder=Images | |
adb shell ls "$rfolder" > android.files | |
ls "$lfolder" -1 > local.files | |
rm -f update.files |