Skip to content

Instantly share code, notes, and snippets.

@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.
@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 / 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 / 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 / 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 / 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 / stellar avatar override
Last active December 22, 2015 02:49
over-ride avatar with just css!
/*Over-ride user avatar*/
#avatar.user img {
display: block;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: url(http://static.tumblr.com/hwdkyha/iGomsgm1o/bunny.gif) no-repeat; /*Change img path, obviouslyr*/
background-size: 80px 80px;
border: 0;
width: 80px; /* Width of new image */
@psql
psql / countdown.js
Created September 16, 2013 16:41
Javascript countdown
<script type="text/javascript">
today = new Date();
BigDay = new Date("December 22, 2013");
msPerDay = 24 * 60 * 60 * 1000 ;
timeLeft = (BigDay.getTime() - today.getTime());
e_daysLeft = timeLeft / msPerDay;
daysLeft = Math.floor(e_daysLeft);
document.write(daysLeft + " days till San Francisco!");
@psql
psql / Future.html
Created September 18, 2013 10:56
Future list
<html>
<head>
<title>The Future</title>
<script type="text/javascript" src="//use.typekit.net/rfz5cki.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
// LOAD file and split line by line and append divs
$.get('https://dl.dropboxusercontent.com/u/36496/future/Do.txt', function(data) {
@psql
psql / loop.js
Created September 25, 2013 12:43
Loop keyframes After Effects
loop_Out("cycle",0)