Skip to content

Instantly share code, notes, and snippets.

View andrewvaughan's full-sized avatar
🇺🇦

Andrew Vaughan andrewvaughan

🇺🇦
View GitHub Profile
@andrewvaughan
andrewvaughan / osx_setup.md
Last active March 2, 2023 02:12
Mac OSX Setup

Mac OSX Bootstrap

Upgrade to Mavericks

  1. Install Mavericks via the App Store.

Secure The Machine

@andrewvaughan
andrewvaughan / photoshop.less
Created June 6, 2014 17:53
Less with Photoshop Mixins
// Use Less.js 1.3.2 or higher to compile.
.round-box(@tl: 9, @tr: 9, @br: 9, @bl: 9) {
@val: ~'@{tl}px' ~'@{tr}px' ~'@{br}px' ~'@{bl}px';
-moz-border-radius: @val;
-webkit-border-radius: @val;
-o-border-radius: @val;
-ms-border-radius: @val;
-khtml-border-radius: @val;
@andrewvaughan
andrewvaughan / piboard.md
Last active April 3, 2022 14:46
Create a Raspberry Pi Rotating Dashboard

These instructions were performed on a RaspberryPI 2 with a proper heatsink.

Install NOOBS

  1. Follow these instructions to install NOOBS with a Mac.
  2. Choose "Raspbian" from the selected options when installing.

Configure the Pi

#include <stdbool.h>
#include <AnalogKeypad.h>
#include <Servo.h>
// Arduino Pin Assignments
#define PIN_KEYS A0
#define PIN_SERVO 9
#define PIN_LED 13
// Servo Configurations
@andrewvaughan
andrewvaughan / install-pi.sh
Created April 30, 2016 18:44
Easy installer for Raspberry Pi images
#!/bin/bash
# SD Card Image Installer for Mac
#
# Formats a given SD Card and writes an image to it - now with progress bars!
#
# Before using, ensure "pv" is installed with Homebrew (brew install pv)
#
# Usage: sudo install-pi.sh disk2 your-pi-image.img
@andrewvaughan
andrewvaughan / lite-packages.txt
Created May 2, 2016 23:19
Packages included on Raspbian Jesse Lite
pi@raspberrypi:~ $ aptitude search '~i!~M'
i acl - Access control list utilities
i adduser - add and remove users and groups
i apt - commandline package manager
i apt-utils - package management related utility program
i aptitude - terminal-based package manager
i aptitude-common - architecture independent files for the apt
i avahi-daemon - Avahi mDNS/DNS-SD daemon
i base-files - Debian base system miscellaneous files
i base-passwd - Debian base system master password and gro
@andrewvaughan
andrewvaughan / RFID-Pi.md
Last active January 7, 2024 14:52
Reading RFID via UART on the RaspberryPi

RFID via UART on RaspberryPi

Download the Latest Version of Raspbian Lite

This can be downloaded here. It is highly recommended to download the Lite version. You can also download the full version, but most of the image is just bloat for this project.

Prepare the MicroSD Card

It is recommended to get a Class 10 or better card to improve speeds. Lower-quality cards will take tremendously longer to format, configure, and load on the RaspberryPi.

@andrewvaughan
andrewvaughan / cast_iron.md
Created April 19, 2018 21:24
Cast Iron Repair

Cast Iron Repair

This guide covers cast iron repair, cleaning, and re-seasoning. Different tools are needed depending on how bad a shape the cast iron is in.

Tools Needed

If you are only cleaning and seasoning the pan (that is, there is no rust), you will need:

  • A [calibrated][calibrate-oven] oven with "cleaning cycle" capabilities
@andrewvaughan
andrewvaughan / .bash_profile
Created April 27, 2019 01:28
A collection of git aliases for `.bash_profile`
#### SPECIAL GIT SHORTCUTS (Andrew Vaughan <hello@andrewvaughan.io>)
#
# Checkout a git branch - creates and pushes it if it doesn't exist
#
branch() {
local branch="$1"
if [ -z "$branch" ]; then
echo
@andrewvaughan
andrewvaughan / mcassist.js
Created November 7, 2019 19:02
My Colony Assist
/**
* MyColony Asssist
*
* Provides overlay and helpful hints for the My Colony game by ApeWebApps. Play at:
*
* https://www.apewebapps.com/my-colony/
*
* @author Andrew Vaughan
*
* @since 0.1.0 - Initial release