Skip to content

Instantly share code, notes, and snippets.

@RedRoosterKey
RedRoosterKey / apple_convert.sh
Last active November 23, 2017 21:08
Convert SD card contents into a format that can be imported into apple devices
#! /bin/bash
set -e
# set -v
# Copy and convert files to an Apple import friendly format and directory structure
# simply provide the script with the directory where you have mounted the SD card
# ./apple_convert.sh /media/user/SD_CARD
src=${1}
dest=${src}/DCIM/000___00
@RedRoosterKey
RedRoosterKey / interpersonalAuthenticator.sh
Last active November 23, 2017 21:08
Allows 2 independent persons to create a shared otp time based code
#! /bin/bash
set -e
# set -v
# Accepts a first party and a second party and produces a shared
# One Time Password Time based code, usually referred to as 2FA
# Dependencies
# sudo apt-get install qrencode oathtool
@RedRoosterKey
RedRoosterKey / ghostBox.py
Created February 19, 2017 00:04
Facilitates communication with extradimensional entites via a raspberry pi and sensehat (for entertainment purposes only)
#!/usr/bin/python
from sense_hat import SenseHat
from datetime import datetime
import math,os,random,subprocess,time
#
# Background:
#
# I have seen various electronic devices on paranormal TV shows (most popular
# being the Ovilus by Digital Dousing) that claim to convert "ghost energy" into
@RedRoosterKey
RedRoosterKey / git_bisect.sh
Last active November 23, 2017 21:08
An example of how to use git bisect with tests to automatically find a bad commit
#! /bin/bash
# author RedRoosterKey
set -e
# set -v
# Example - exit code 125 tells git bisect to skip this commt
# git_bisect.sh --back 10 "cd Release || exit 125; make clean || exit 125; make || exit 125; make test"
back=1