Skip to content

Instantly share code, notes, and snippets.

View mastix's full-sized avatar

Sascha Sambale mastix

View GitHub Profile
@mastix
mastix / sync.sh
Created January 17, 2016 09:40
Updated MotionEyeOS Google Drive sync script (added pull from Google Drive to allow local media deletion)
#!/bin/bash
# sync.sh written by Claude Pageau for pi-timolo, his excellent video processing application.
# re-purposed and mangled by Malcolm Taylor for use with MotionPie
# edited by Emil Janesten to stop duplicate running instances and duplicate files and folders in Google Drive.
# Jan 2016: edited by Sascha Sambale to pull changes from Google Drive as well, which allows to delete local media when deleted in Google Drive.
# folder where motion files are located
SYNC_DIR=MotionEye
# Get current folder where this script is located
@mastix
mastix / install-nginx-1.9.10.sh
Last active January 29, 2016 11:18 — forked from wouterds/install-nginx-1.9.9.sh
Install nginx 1.9.9 on Raspberry Pi
#!/usr/bin/env bash
# names of latest versions of each package
export NGINX_VERSION=1.9.10
export VERSION_PCRE=pcre-8.38
export VERSION_LIBRESSL=libressl-2.3.2
export VERSION_NGINX=nginx-$NGINX_VERSION
# URLs to the source directories
export SOURCE_LIBRESSL=ftp://ftp.openbsd.org/pub/OpenBSD/LibreSSL/