Skip to content

Instantly share code, notes, and snippets.

View psql's full-sized avatar
🏝️
aloha

Professor P psql

🏝️
aloha
View GitHub Profile
@psql
psql / gist:4535954
Created January 15, 2013 04:06
My bash profile
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
NO_COLOUR="\[\033[0m\]"
@psql
psql / changes text when uploaded
Created January 15, 2013 02:41
Upload counter expression for After Effects
uploaded = Math.round(time *15 -30 )
text.sourceText=uploaded+'%'
if (uploaded>100){
text.sourceText ='UPLOADED!'}
@psql
psql / squetch.html
Created August 30, 2012 00:35
Tumblr Theme for Squetch
<!DOCTYPE html>
<head>
<title>{Title}</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
<meta name="description" content="{MetaDescription}">
<script type="text/javascript" src="//use.typekit.net/qbb3kmh.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<link href="http://dl.dropbox.com/u/36496/squetch.css" rel="stylesheet" type="text/css">
<style type="text/css">
@psql
psql / tumblrThemeGuts.html
Created August 29, 2012 19:13
Tumblr theme guts
<!DOCTYPE html>
<head>
<title>{Title}</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
<meta name="description" content="{MetaDescription}">
<style type="text/css">
</style>
</head>
@psql
psql / Layer to animation sprite.jsx
Created August 9, 2012 18:28
Photoshop layer stack to horizontal sprite
if (documents.length > 0)
{
var docRef = activeDocument;
var activeLayer = docRef.activeLayer;
numLayers = docRef.artLayers.length;
@psql
psql / gist:3137601
Created July 18, 2012 17:27 — forked from anonymous/gist:3137596
launch Astrobot
chrisallickmpb:~ chrisallick$ ssh ec2-user@bots.debris.cc -i ~/.ssh/debris.pem
Last login: Wed Jul 18 16:00:58 2012 from host-216-220-114-135.dsl.bway.net
__| __|_ )
_| ( / Amazon Linux AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-ami/2012.03-release-notes/
There are 10 security update(s) out of 16 total update(s) available
Run "sudo yum update" to apply all updates.