Skip to content

Instantly share code, notes, and snippets.

@psql
psql / patches.js
Created February 4, 2014 05:16
Unreleased FB QC patches
> (null)
<QCNodeManager | namespace = "com.apple.QuartzComposer" | 501 nodes>: Patch with name "FBDeviceRendererPatch" is missing
> Macro Patch
Cannot create node of class "FBDeviceRendererPatch" and identifier "(null)"
> (null)
<QCNodeManager | namespace = "com.apple.QuartzComposer" | 501 nodes>: Patch with name "FBImageSendTCPPatch" is missing
> Macro Patch
@psql
psql / Border tweak
Created April 29, 2014 15:24
Override stellar border styles
#avatar.user img { border-color: black; }
a { color: #CF3F3F !important; }
a:hover { color: white !important; }
@psql
psql / lol.bash
Created September 5, 2014 14:19
Recent Bash Profile
# make ls colorful
export CLICOLOR=1
#git branch in path
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
RED="\[\033[0;31m\]"
@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 / wobble.js
Created December 18, 2015 16:44
Ae wobble slider
Amp = thisComp.layer("Null 1").effect("Amp")("Slider") + 20;
Math.sin(time*50)*Amp;