Skip to content

Instantly share code, notes, and snippets.

@andrewpmiller
andrewpmiller / omnigraffle-dates.md
Last active September 6, 2024 04:11
Omnigraffle Date Variables
@andrewpmiller
andrewpmiller / osx-BTaudio-Fix.md
Last active March 14, 2019 19:09
A simple terminal command to improve OSX Bluetooth audio
@andrewpmiller
andrewpmiller / getExternalIP
Last active August 29, 2015 14:00
Command line instruction to return your external IP address (from dyndns.org)
curl -sf http://checkip.dyndns.org/|cut -d ':' -f 2|cut -d '<' -f1|sed -e 's/ //g'
@andrewpmiller
andrewpmiller / speedtest-logger.sh
Created August 3, 2014 22:20
Log speedtest results to a log file (on my Pi)
#!/bin/bash
# Appends simple results to log file
# Remember to chmod +x this script to make it executable
speedtest-cli --simple >>/home/pi/speedtest-log.txt
@andrewpmiller
andrewpmiller / Pi-temp
Created August 10, 2014 13:30
CLI command to show board temperature in Fahrenheit
cat /sys/class/thermal/thermal_zone0/temp | awk '{ $1 = (((9/5)*$1)+32)/1000 } 1'
@andrewpmiller
andrewpmiller / Lighttpd-Pi-Installation-Notes.md
Last active May 1, 2019 20:14
How to install Lighttp on a Rasberry Pi

Lighttpd - Installation and Setup for Raspberry Pi

Installation

sudo apt-get update && apt-get upgrade
sudo apt-get install lighttpd

Permissions

@andrewpmiller
andrewpmiller / piupdate.sh
Last active March 9, 2022 13:38
Pi Update bash script
#!/bin/bash
# ------------------------------------------------------------------
# Title: piupdate.sh
# Author: Andrew Miller
# Version: 0.1.1
#
# Description:
# A really simple script that runs through all of the usual updates
# for a Raspbian Raspberry Pi.
#
@andrewpmiller
andrewpmiller / references.md
Last active August 29, 2015 14:07
"Photoshop is Dead!" -- References
@andrewpmiller
andrewpmiller / GmailComposer.scpt
Last active August 29, 2015 14:09
A simple AppleScript that opens a Chrome window to compose a gmail message
on run
tell application "Google Chrome"
make new window
set URL of active tab of window 1 to "https://mail.google.com/mail/?ui=2&view=cm&fs=1&tf=1&shva=1"
activate
end tell
end run