Skip to content

Instantly share code, notes, and snippets.

View wajiii's full-sized avatar

Bill Jackson wajiii

View GitHub Profile
@donpdonp
donpdonp / gist:4567540
Last active December 11, 2015 07:38
neuron multiserver config
{
"connect" : ["irc://freenode/#pdxtech",
"irc://freenode/#pdxbots"],
"networks" : { "freenode" => {"host": "irc.freenode.net"},
"psu" => {"host": "irc.cat.pdx.edu"}
}
}
@terrafied
terrafied / having.sql
Created July 27, 2012 20:04
SQL query
Tables:
-users
-timestamps
-enterprises
-enterprise_users
-user_id
-enterprise_id
Goal:
Trying to find a query for all users for a given enterprise, but only for users for ONLY that enterprise. In otherwords, if a user is part of more than one enterprise (can assume simply more than one enterprise_users record for that user_id), then I *don't* want that returned.
@statico
statico / gist:3172711
Created July 24, 2012 21:15
How to use a PS3 controller on Mac OS X 10.7 (Lion)

How to use a PS3 controller on Mac OS X 10.7 (Lion)

  1. Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.

  2. Reset PS3 controller by inserting paperclip into pinhole near L2 button.

  3. Connect PS3 controller to Mac with USB cable.

  4. Enable Bluetooth.

@xaviershay
xaviershay / LdapAuthenticator.java
Created July 24, 2012 03:27
LDAP Authentication for dropwizard
package com.squareup.alcatraz.auth;
import com.google.common.base.Optional;
import com.unboundid.ldap.sdk.Filter;
import com.unboundid.ldap.sdk.LDAPConnection;
import com.unboundid.ldap.sdk.LDAPException;
import com.unboundid.ldap.sdk.ResultCode;
import com.unboundid.ldap.sdk.SearchRequest;
import com.unboundid.ldap.sdk.SearchResult;
import com.unboundid.ldap.sdk.SearchResultEntry;
@kynx
kynx / cloudfuse.spec
Created June 20, 2012 17:10
cloudfuse centos spec file
Summary: A FUSE application which provides access to Rackspace's Cloud Files
Name: cloudfuse
Version: 20120604
Release: 1%{?dist}
License: BSD
Group: System Environment/Libraries
Source0: redbo-cloudfuse-2cd8214.tar.gz
URL: http://redbo.github.com/cloudfuse/
@wajiii
wajiii / osx.sh
Created April 26, 2012 20:54 — forked from samg/osx.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with useful tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2263406/osx.sh | sh
#
@samg
samg / osx.sh
Created April 4, 2012 04:41 — forked from rfunduk/osx.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with useful tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2263406/osx.sh | sh
#
@codahale
codahale / pom.xml
Last active April 20, 2024 01:38
Take this and save it as pom.xml in your project directory.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>my-project</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<!-- none yet -->
@peternixey
peternixey / securing_rails_updates.md
Created March 5, 2012 13:10
How Homakov hacked GitHub and how to protect your application by Peter Nixey

##How Homakov hacked GitHub and the line of code that could have prevented it


Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.

If you'd like to follow me on twitter my handle is @peternixey


@terrafied
terrafied / multi.html
Created February 17, 2012 01:36
Multiple Highcharts Series
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Highstock Example</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
var seriesOptions = [],