Skip to content

Instantly share code, notes, and snippets.

View fadookie's full-sized avatar
🕹️
😹

Eliot Lash fadookie

🕹️
😹
View GitHub Profile
@fadookie
fadookie / gist:ca22021c3e9db4d69991
Created June 19, 2014 00:58
Manimal/memcached bash aliases
alias startmemcached="launchctl load -w /System/Library/LaunchDaemons/com.danga.memcached.plist"
alias stopmemcached="launchctl unload /System/Library/LaunchDaemons/com.danga.memcached.plist"
alias startmanimal="startmemcached; mvn clean tomcat7:run-war"
@fadookie
fadookie / waterscreen1.shader
Created January 14, 2015 11:59
Water screen shader w/ time scrubbing
// http://unitycoder.com/blog/2012/02/26/water-splash-screen-effect-shader/
Shader "Custom/waterscreen1" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_Water ("WaterBlur (BW)", 2D) = "white" {}
_Slide ("SliderTime", Range(0, 0.2)) = 0
}
SubShader {
Tags { "RenderType"="Opaque" }
@fadookie
fadookie / TempoManager.cs
Last active August 29, 2015 14:13
Unity Tempo Manager Example
/**
* This is an example of how to make a class that fires off events to the BPM of a song.
* I haven't tested it and it may require work to compile, this is based off a much more complex
* manager from another project.
*
* Copyright (c) 2015 Eliot Lash
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
@fadookie
fadookie / crappyVertPerlin.shader
Created January 16, 2015 13:07
Crappy perlin noise vertex shader
Shader "Custom/crappyVertPerlin" {
Properties {
// _Slide ("SliderTime", Range(0, 20)) = 0
_PerlinScale ("Perlin Scale", Vector) = (50, 50, 0, 0)
}
SubShader {
Tags { "RenderType"="Opaque" }
Pass {
CGPROGRAM
@fadookie
fadookie / gist:01c67623f0a52faf5243
Last active August 29, 2015 14:13
Example jenkins callstack... for fuck's sake...
javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:809)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:752)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at javax.mail.Transport.send0(Transport.java:194)
at javax.mail.Transport.send(Transport.java:124)
at hudson.tasks.Mailer$DescriptorImpl.doSendTestMail(Mailer.java:519)
@fadookie
fadookie / build_and_install_soomla.sh
Created March 24, 2015 14:35
A script to build the SOOMLA Store Android plugin from source and install it into a Unity project. Read comments in the file header for setup instructions.
#!/bin/bash
# This script is designed to build the SOOMLA Store android plugin, and install it into a Unity game.
# Update the variables in the config section below to customize for your environment.
#
# Copyright (c) 2014 Eliot Lash
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
@fadookie
fadookie / hover-export.js
Last active August 29, 2015 14:26
DNS zone file
// Hover.com "Zone file import/export" has been *Planned* since 2011
// https://help.hover.com/entries/471066-Zone-file-import-export
// Here's a brittle approximation of export.
//
// 1. login to your account: https://www.hover.com/domains
// 2. run the following in your browser's JavaScript console, changing the first line
// to your domain
// 3. copy the text logged to the console.
// 4. manually correct FQDNs, these have to end with a period "."
//
@fadookie
fadookie / HelloWorld.cpp
Created September 20, 2011 03:39 — forked from rawbitrec/HelloWorld.cpp
Ye Olde Sea Pluss Pluss!
//created by Eliot Lash and Robert Muller on 10/3/10
//copyright Eliot Lash and Robert Muller 2011
//Welcome to Ye Olde Sea Pluss Pluss!
#include <iostream>
#include <string>
#include "olde.h"
#define normal
@fadookie
fadookie / arcPointCollision.pde
Created April 22, 2012 06:42
Arc/point collision
class Arc {
boolean collidesWith(PolarCoord point) {
return !( sin(startAngle) > sin(point.t) ||
sin(stopAngle) < sin(point.t) ||
cos(startAngle) > cos(point.t) ||
cos(stopAngle) < cos(point.t) ||
minRadius > point.r ||
maxRadius < point.r );
}
}
@fadookie
fadookie / snow.png
Created April 26, 2012 06:51 — forked from anonymous/snowfight
snowfight.pde
snow.png