Skip to content

Instantly share code, notes, and snippets.

@gcstang
gcstang / screenrecord.sh
Created December 21, 2016 23:23 — forked from tasomaniac/screenrecord.sh
Screen Record for Android
#!/bin/sh
set -e
if [ -z "$1" ]; then
shot_path=$(date +%Y-%m-%d-%H-%M-%S).mp4
else
shot_path="$*"
fi
@gcstang
gcstang / BackupGHRepoToBackblaze.bat
Created July 20, 2018 16:29
Backup a github repository from Windows. Assumes B2 command lines tools, python, and 7ZIP are installed. Script requires some variables (B2 account, etc) to filled in.
@echo off
SETLOCAL
REM Script to backup git repo to Backblaze B2
REM Set bucket, local directory, password and account to use for the backup.
:: NOTE: might want to import these from the outer environment
:: rather than setting them internally