Skip to content

Instantly share code, notes, and snippets.

View jstanden's full-sized avatar

Jeff Standen jstanden

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jstanden on github.
  • I am jstanden (https://keybase.io/jstanden) on keybase.
  • I have a public key whose fingerprint is 12B2 7B56 1121 43AD A433 6B42 D399 DA5B A62A 0472

To claim this, I am signing this object:

@jstanden
jstanden / git-external-diff.sh
Created March 18, 2009 03:26
Integrating Changes.app and 'git diff' at command-line.
#!/bin/sh
# See: http://wiki.changesapp.com/index.php/SCM_Integration_Scripts#Git_Integration
if [ $# != 7 ]; then exit 1; fi;
if [ "$2" == "/dev/null" ]; then exit 0; fi;
if [ "$5" == "/dev/null" ]; then exit 0; fi;
/usr/bin/env chdiff --wait "$2" "$5"
@jstanden
jstanden / cerb_behavior_assign_by_to_cc.json
Created April 19, 2018 18:02
A Cerb bot behavior for automatically assigning an owner based on To/Cc recipients
{
"behavior": {
"uid": "behavior_assign_by_to",
"title": "Assign new tickets based on 'To:'",
"is_disabled": false,
"is_private": false,
"priority": 50,
"event": {
"key": "event.mail.received",
"label": "New message added to ticket"
@jstanden
jstanden / cerb670_address_purge.php
Created May 29, 2018 16:25
Purge unused email addresses from Cerb 6.x versions
<?php
require(getcwd() . '/framework.config.php');
require(DEVBLOCKS_PATH . 'Devblocks.class.php');
// Verify we're running in CLI mode only
if(0 != strcasecmp(php_sapi_name(),'cli'))
die("This script should only be run from the command line.\n");
$is_dryrun = true;
@jstanden
jstanden / cerb-profile-ticket-owner-widget.json
Created December 19, 2018 17:46
[Cerb] An importable 'Owner' widget for ticket profiles that provides take/assign/unassign shortcuts
{
"widget": {
"uid": "profile_widget_168",
"_context": "cerberusweb.contexts.profile.widget",
"name": "Owner",
"extension_id": "cerb.profile.tab.widget.html",
"pos": 2,
"width_units": 2,
"zone": "sidebar",
"extension_params": {
@jstanden
jstanden / gist:1489447
Last active February 21, 2023 20:56
Simplex Noise in C# for Unity3D - Adapted from James Livingston's MinePackage: http://forum.unity3d.com/threads/minepackage-minecraft-starter-package.69573/
using UnityEngine;
using System.Collections;
public class SimplexNoiseGenerator {
private int[] A = new int[3];
private float s, u, v, w;
private int i, j, k;
private float onethird = 0.333333333f;
private float onesixth = 0.166666667f;
private int[] T;