Skip to content

Instantly share code, notes, and snippets.

View svperfecta's full-sized avatar
👾

Brian Corrigan svperfecta

👾
View GitHub Profile
'use strict'
var Assert = require('assert')
var _ = require('lodash')
var Redis = require('redis')
var Uuid = require('node-uuid')
var Cryo = require('cryo')
var NAME = 'redis-store'
var MIN_WAIT = 16
@svperfecta
svperfecta / s3iampermissions.json
Last active February 24, 2020 04:04
S3 Bucket Upload Permissions
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets"
],
"Resource": [
"arn:aws:s3:::*"
+---------------------+------------------------------------------------------------------------+-----------+----------------------------------------+
| created_at | username | kind | txt |
+---------------------+------------------------------------------------------------------------+-----------+----------------------------------------+
| 2016-08-31 04:02:04 | #d26b9e78-6b20-11e6-9b5b-06567476c2f5@conference.superevilmegacorp.net | groupchat | Chatter! |
| 2016-08-31 03:43:24 | #d26b9e78-6b20-11e6-9b5b-06567476c2f5@conference.superevilmegacorp.net | groupchat | ZZZZZZZZZZZZ |
| 2016-08-31 03:43:17 | #d26b9e78-6b20-11e6-9b5b-06567476c2f5@conference.superevilmegacorp.net | groupchat | Another message |
| 2016-08-31 03:42:50 | #d26b9e78-6b20-11e6-9b5b-06567476c2f5@conference.superevilmegacorp.net | groupchat | AAAAAAAAAAA
###
###' ejabberd configuration file
###
###
### The parameters used in this configuration file are explained in more detail
### in the ejabberd Installation and Operation Guide.
### Please consult the Guide in case of doubts, it is included with
### your copy of ejabberd, and is also available online at
### http://www.process-one.net/en/ejabberd/docs/
#
# In this file you can configure options that are passed by ejabberdctl
# to the erlang runtime system when starting ejabberd
#
#' POLL: Kernel polling ([true|false])
#
# The kernel polling option requires support in the kernel.
# Additionally, you need to enable this feature while compiling Erlang.
#
@svperfecta
svperfecta / gist:c11f204e4d3f95870ff55c06517b5360
Last active October 7, 2016 14:18
erlang:process_info(Pid).
(ejabberd@host1)8> erlang:process_info(Pid).
[{current_function,{gen,do_call,4}},
{initial_call,{proc_lib,init_p,5}},
{status,waiting},
{message_queue_len,877855},
{messages,[{process_iq,{jid,<<"887eca26-e6ad-11e5-8b18-062cb73cdbb1">>,
<<"mycorp.net">>,<<"2592797013071216009701042">>,
<<"887eca26-e6ad-11e5-8b18-062cb73cdbb1">>,
<<"mycorp.net">>,<<"2592797013071216009701042">>},
{jid,<<"887eca26-e6ad-11e5-8b18-062cb73cdbb1">>,
@svperfecta
svperfecta / artifact.js
Last active February 3, 2017 21:31
Artifactory Format
{
"data": {
"type": "artifact",
"id": "", // Optional - Can be provided or will be automatically created. If provided *must* be unique for each new version of the champ (or new versions will overwrite old ones)
"attributes": {
slug: "taka", // Required, no spaces, used for urls - We will calculate this.
name: "Taka", // Required
class: "hero", // Abitrary, intended to be word no spaces like hero, ability, faction, item
title: "Blade in Shadow", // Optional
description: "You are Taka of House Kamuha. I have unburdened your mind of memory and remorse. This is my gift to you. It is a great honor to be of House Kamuha. You are of House Kamuha... SAY IT!", // Optional, can support html for markup
@svperfecta
svperfecta / sample.js
Last active February 3, 2017 22:21
Sample
{
"data": {
"type": "sample",
"id": "1",
"attributes": {
"createdAt": "2017-01-11T03:00:00Z",
"shardId": "na",
"t0": "2017-01-11T03:00:00Z",
"t1": "2017-01-11T04:00:00Z",
"titleId": "test"
{
"data":[
{
"type":"match",
"id":"73753af6-2537-11e7-a335-06a4039421b6",
"attributes":{
"createdAt":"2017-04-19T19:36:17Z",
"duration":940,
"gameMode":"private",
"patchVersion":"",
[
{ "time": "2017-04-19T19:36:39+0000", "type": "PlayerFirstSpawn", "payload": { "Team": "Left", "Actor": "*Gwen*" } },
{ "time": "2017-04-19T19:36:39+0000", "type": "LevelUp", "payload": { "Team": "Left", "Actor": "*Gwen*", "Level": 1, "LifetimeGold": 0 } },
{ "time": "2017-04-19T19:36:43+0000", "type": "PlayerFirstSpawn", "payload": { "Team": "Right", "Actor": "*Koshka*" } },
{ "time": "2017-04-19T19:36:43+0000", "type": "LevelUp", "payload": { "Team": "Right", "Actor": "*Koshka*", "Level": 1, "LifetimeGold": 0 } },
{ "time": "2017-04-19T19:36:50+0000", "type": "BuyItem", "payload": { "Team": "Left", "Actor": "*Gwen*", "Item": "Weapon Blade", "Cost": 300, "RemainingGold:": 325, "Position": [ -78.18, 1.30, 0.88 ] } },
{ "time": "2017-04-19T19:36:52+0000", "type": "LearnAbility", "payload": { "Team": "Right", "Actor": "*Koshka*", "Ability": "HERO_ABILITY_KOSHKA_TWIRL_NAME", "Level": 1 } },
{ "time": "2017-04-19T19:36:53+0000", "type": "BuyItem", "payload": { "Team": "Left", "Actor": "*Gwen*", "Item": "Light S