Skip to content

Instantly share code, notes, and snippets.

@1rabbit
1rabbit / autoturtle.sh
Last active February 18, 2018 03:07
Attiny85 - RPI/ARM power management for battery operated devices
#!/bin/bash
gpio mode 28 out
gpio write 28 1
i="0"
while [ $i -lt 3 ]
do
@1rabbit
1rabbit / autorpi.sh
Last active June 4, 2018 18:53
AutoRPI 1.0 Automatic headless image maker for Raspbian Lite
#!/bin/sh
#Start with "source autorpi.sh"
#AutoRPI 1.0 Automatic headless image maker for Raspbian Lite
#2018 Designdesk.org
#Run as root for mount/unmount rights
#Options
basedir="$HOME/AutoRpi"
advanced=;username=;passhashed=;passwd=;wlanset=;wlanssid=;wlanpsk=;hostname=;sshkey=;layout=;resize=;extend=;sndledoff=;skip=;
###Optional automatic setup like this :### username="turtle"; passhashed=y ; passwd="\$1\$VaoXRUzMB/VyxP6VnT7Fbs9y9LjXEFFDd" ; wlanssid="hAfpFKX" ; wlanpsk="HMhMYzyIpy5u0mr0SKBCxVb6lN4lc3NaptfktNNAHv+geUcmQgb" ; hostname="tinycomputer" ; sshkey="ssh-rsa /84r14PMuU7Xv4PLeAiHsQzVXc7zSInsZuVBFIyhJGHU+iC7fITU3kzLvMG2ZzB6A/Zp/+lJu+6IjSGcFFo4vx84ZJ2Rj9OUoFWjE2qMlGwKmr== user@yourpc" ; layout="us" ; resize=y ; extend=y ; sndledoff=y ; advanced=y ; wlanset=y ; skip=y