Skip to content

Instantly share code, notes, and snippets.

View ajmath's full-sized avatar

Andrew Matheny ajmath

  • Slack
  • Morgantown, WV
View GitHub Profile
{
"Animate Dead": {
"CastingTime": "1 standard action",
"Classes": "Mystic=4Technomancer=4",
"SpellListDescription": "Create controlled undead creatures out of target corpses.",
"Duration": "Instantaneous",
"Level": "4",
"Description": "This spell turns corpses into undead creatures that obey your spoken commands. The undead can be made to follow you or they can be made to remain in place and attack any creature (or a specific kind of creature) entering the area. They remain animated until they are destroyed. A destroyed undead can't be animated again. You can create one or more undead creatures with a total CR of no more than (CASTERLEVEL/2). You can only create one type of undead with each casting of this spell. Creating undead requires special materials worth 1000 credits * the total CR of the undead created; these materials are consumed as part of casting the spell. The undead you create remain under your control indefinitely. No matter how many times you use this spell however you can contro
@jeffwhelpley
jeffwhelpley / gist:056e012544c631438ad2
Created July 12, 2015 02:06
playing nice: continuation-local-storage, hapi.js and pm2

I had a lot of issues trying to get continuation-local-storage (cls) working on a hapi.js app with pm2 in cluster_mode. Long story short, my mistake was wrapping cls around my server.start() when I should have been running it in a request handler. Here is the code you should use to get all this working:

var cls = require('continuation-local-storage');
var ns = cls.createNamespace('mySession');

var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection({ port: 80 });
@chilicat
chilicat / copy-dir.sls
Created October 10, 2013 10:30
Salt: How to copy a directory recursive
/tmp/myDir
file.recurse:
- source: salt://files/myDir
- user: root
- group: root
@xconnecting
xconnecting / build.gradle
Created October 26, 2012 06:10
Use custom Ant task from Gradle
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
configurations { taskdef }
repositories { mavenCentral() }
dependencies { taskdef 'java2html:j2h:1.3.1' }
@lukeman
lukeman / gist:949011
Created April 29, 2011 20:44
pinax 0.7.3 boot script with virtualenv 1.6
#!/usr/bin/env python
## WARNING: This file is generated
"""Create a "virtual" Python installation
"""
# If you change the version here, change it in setup.py
# and docs/conf.py as well.
virtualenv_version = "1.6"
import base64