Skip to content

Instantly share code, notes, and snippets.

@micahyoung
micahyoung / form_demo.html
Created May 6, 2011 21:56
jQuery Form Demo
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
ul#current_emails {
list-style: none;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js" type="text/javascript"></script>
@micahyoung
micahyoung / simple_form_initializer.rb
Created December 8, 2011 03:59
simple_form full error messages
module SimpleForm
module Components
module Errors
def error_text
attribute_name.to_s.humanize + " " + errors.send(error_method)
end
end
end
end
@micahyoung
micahyoung / optimum.sh
Created January 14, 2014 05:26
Poor man's bisect optimization
for i in {1..3}; do
git co master &>/dev/null;
for j in {1..2}; do
git rev-parse --short HEAD
time $*
git co HEAD^ &>/dev/null;
done;
done
@micahyoung
micahyoung / terminal_check.sh
Created January 26, 2014 19:58
Bash conditional for only loading on hardware termain screen
#Frame startup on autologin
if [[ "`tty`" == "/dev/tty1" ]]; then
#run program
fi

Keybase proof

I hereby claim:

  • I am micahyoung on github.
  • I am micahyo (https://keybase.io/micahyo) on keybase.
  • I have a public key ASDwMSo9FQ49vdH8a9NiO00ViDYbuTNCVr1ToUAh7JwN8Qo

To claim this, I am signing this object:

pkgname=live555
pkgver=0.0
pkgrel=1
pkgdesc="Live555"
arch=('i686' 'x86_64' 'mips64el' 'armv6h' 'armv7h')
url="http://live555.com"
license=('LGPL')
depends=()
source=(http://www.live555.com/liveMedia/public/live555-latest.tar.gz)
md5sums=('24dfd57f164c3a1041c9dceded210444')
pkgname=gst-rpicamsrc
pkgver=SKIP
pkgrel=1
pkgdesc="GStreamer element for the Raspberry Pi camera module"
arch=('i686' 'x86_64' 'mips64el' 'armv6h' 'armv7h')
url="https://github.com/thaytan/gst-rpicamsrc"
license=(LGPL)
depends=(gstreamer)
source=(git+https://github.com/thaytan/gst-rpicamsrc.git)
md5sums=(SKIP)
pkgname=http-launch
pkgver=SKIP
pkgrel=1
pkgdesc="HTTP Launch"
arch=('i686' 'x86_64' 'mips64el' 'armv6h' 'armv7h')
url="https://github.com/sdroege/http-launch"
license=(SKIP)
depends=(gstreamer)
source=(git+https://github.com/sdroege/http-launch.git)
md5sums=(SKIP)
  1. Create IAM User
  • Username: bosh
  • Download credentials to disk
  • Attach Policy: AmazonEC2FullAccess
  1. Create EC2 keypair
  • Save bosh.pem to ~/.ssh/bosh.pem
  1. Create EC2 Security Group
  • Name & Description: bosh
@micahyoung
micahyoung / chroot.md
Last active October 12, 2015 03:01
Chroot update for RasPi for ArchLinux
  1. Mount the .img file
fdisk -lu ArchLinuxARM-rpi.img | grep -E "img1|img5"
# ArchLinuxARM-rpi.img1            2048      186367       92160    c  W95 FAT32 (LBA)
# ArchLinuxARM-rpi.img5          188416     3667967     1739776   83  Linux
echo "2048 * 512" | bc
# 1048576
echo "188416 * 512" | bc
# 96468992