Skip to content

Instantly share code, notes, and snippets.

View hayespotter's full-sized avatar

Hayes Potter hayespotter

View GitHub Profile
osascript -e 'tell app "System Events" to display dialog "Dont run random scripts from the internet without looking at them first"'
#git basics and standards
commands you should be comfortable with:
--help
add
reset
status
branch
checkout
#set default editor to nano
export EDITOR=/usr/bin/nano
alias reload='source ~/.bash_profile'
alias reboot="sudo shutdown -r now"
alias off="sudo shutdown -h now"
alias ls='ls -FGlAhp'
alias ttop="top -R -F -s 10 -o rsize"
@hayespotter
hayespotter / cars.html
Created December 7, 2015 21:12 — forked from brandonb927/cars.html
Cars Challenge - little Angular project
<!doctype html>
<html ng-app>
<head>
<meta charset="utf-8">
<title></title>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.21/angular.min.js"></script>
</head>
<body ng-controller="CarSelector">
<h3>Select A Dream Car</h3>
@hayespotter
hayespotter / gist:1153297
Created August 18, 2011 04:33 — forked from saikat/gist:1084146
Stripe sample checkout form
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Stripe Sample Form</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js"></script>
<script type="text/javascript" src="https://js.stripe.com/v1/"></script>
<script type="text/javascript">
@hayespotter
hayespotter / webkitten.sh
Created August 17, 2011 15:04 — forked from tomhodgins/webkitten.sh
Update WebKit to latest nightly build for OS X
#! /bin/sh
echo "Welcome to WebKitten, the WebKit updater"
echo "This process may take a few minutes"
mkdir ~/.webkitten
cd ~/.webkitten
# This sets a variable named 'LATEST' that is the
# value of the latest webkit download for OS X
LATEST=`curl -s "http://nightly.webkit.org" | sed -n 's/.*http/http/'p | sed -n 's/dmg.*/dmg/'p | sed -n 1p`