Skip to content

Instantly share code, notes, and snippets.

View therebelrobot's full-sized avatar
A girl made of PLA and caffeine

Aster Haven therebelrobot

A girl made of PLA and caffeine
View GitHub Profile
@therebelrobot
therebelrobot / incident.md
Created July 20, 2016 19:07
Incident Report Template

YYYY MM DD title

Start:

  • Mentioned by via at
  • May have been occurring as early as ~

Resolved: Resolved at

Duration: ~X hours

@therebelrobot
therebelrobot / about.md
Created June 2, 2016 20:22 — forked from nijikokun/about.md
A small, basic, generic game framework / game with no potential being made for fun using weird javascript techniques. Also, I made my own commenting style based on KSS.

GOD.js

Game oriented development framework.

Usage

var entity = god.entity({
  name: "Nijikokun"
}).implement("health").implement("movement");
{"version":"1.1.0","serviceToken":"6c73df3000e611e6bc5a1d6d1334cde5","environment":"default-environment","har":{"log":{"creator":{"name":"galileo-agent-node","version":"2.0.0"},"entries":[{"time":8,"startedDateTime":"2016-04-29T20:09:43.436Z","request":{"method":"GET","url":"http://localhost:8888/status/101","httpVersion":"HTTP/1.1","queryString":[],"headers":[{"name":"host","value":"localhost:8888"},{"name":"accept","value":"*/*"},{"name":"accept-encoding","value":"gzip"},{"name":"user-agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36"},{"name":"connection","value":"close"}],"headersSize":240,"bodySize":0,"bodyCaptured":false},"response":{"status":101,"statusText":"Switching Protocols","httpVersion":"HTTP/1.1","headers":[{"name":"Connection","value":"close"},{"name":"Date","value":"Fri, 29 Apr 2016 20:09:43 GMT"},{"name":"ETag","value":"W/\"13-chG8MgcjHEVgdjZ+Mar8Zg\""},{"name":"Content-Length","value":"19"},{"name":"Cont
@therebelrobot
therebelrobot / Preferences.sublime-settings
Last active April 29, 2016 21:03
Sublime preferences, so I never EVER have to do this again.
{
"atomic_save": true,
"auto_complete": false,
"bold_folder_labels": true,
"color_scheme": "Packages/Colorsublime - Themes/Birds_of_Paradise.tmTheme",
"default_line_ending": "unix",
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"highlight_line": true,
"ignored_packages": [
{"date":"Fri Apr 22 2016 15:39:09 GMT-0700 (PDT)","unix":1461364749,"collectorResponse":["socket hang up"],"data_to_post":{"version":"1.1.0","serviceToken":"6c73df3000e611e6bc5a1d6d1334cde5","environment":"default-environment","har":{"log":{"creator":{"name":"galileo-agent-node","version":"2.0.0"},"entries":[{"time":0,"startedDateTime":"2016-04-22T22:39:06.668Z","request":{"method":"POST","url":"http://localhost:8888/post","httpVersion":"HTTP/1.1","queryString":[],"headers":[{"name":"host","value":"localhost:8888"},{"name":"accept","value":"*/*"},{"name":"accept-encoding","value":"gzip"},{"name":"user-agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36"},{"name":"connection","value":"close"},{"name":"content-type","value":"application/x-www-form-urlencoded"},{"name":"content-length","value":"17"}],"headersSize":304,"bodySize":17,"bodyCaptured":true,"postData":{"mimeType":"application/x-www-form-urlencoded","text":"Zm9vPWJhci
@therebelrobot
therebelrobot / Gitclean.sh
Created April 17, 2016 15:21
Remove stale or merged git branches
git remote prune origin
git branch -r --merged master | egrep -iv '(master|develop)' | sed 's/origin\///g' | xargs -n 1 git push --delete origin
'use strict'
var express = require('express')
var compress = require('compression')
var galileo = require('./lib')
var app = express()
app.use(galileo(
'6c73df3000e611e6bc5a1d6d1334cde5', // staging
// '56cf3d2140aedfa34b1c9989', // local
// http://localhost:3000/v2.0/environments/default-environment/reports/requests-by-paath/results?chartValue=count(request)&from=1456938351000&to=1458580251000&interval=day&filters=W10%3D&page=1&pageSize=10&timezone=-07%3A00`
{
"results": [
{
"columns": [
{
"dimension": "addedProperties.frame",
"name": "addedProperties.frame",
// http://localhost:3000/v2.0/environments/default-environment/reports/requests-by-paath/results?chartValue=count(request)&from=1457020910000&to=1458580010000&interval=hour&filters=W10%3D&page=1&pageSize=10&timezone=-07%3A00`
[
{
"results": [
{
"columns": [
{
"dimension": "addedProperties.frame",
"name": "addedProperties.frame",
eventsSchema.statics.fetchMeetupEvents = function (meetupid) {
return new Promise(function (resolve, reject) {
request(meetupid, function (error, response, body) {
if (!error && response.statusCode === 200) {
var parsed = JSON.parse(body)
resolve(parsed.results)
}else{
reject(error)
}
})