Skip to content

Instantly share code, notes, and snippets.

View deoxxa's full-sized avatar

Conrad Pankoff deoxxa

View GitHub Profile

Keybase proof

I hereby claim:

  • I am deoxxa on github.
  • I am deoxxa (https://keybase.io/deoxxa) on keybase.
  • I have a public key whose fingerprint is 705C 59DD 2D68 750C 41BB 2160 8445 FAFF 1500 FF17

To claim this, I am signing this object:

@deoxxa
deoxxa / gist:2702446
Created May 15, 2012 15:01
SphinxSearch init script for debian/ubuntu
#!/bin/bash
#
# sphinx:
# Start the Sphinx search engine
SPHINX_BINARY=/usr/local/bin/sphinx-searchd
SPHINX_CONFIG=/usr/local/etc/sphinx/sphinx.conf
SPHINX_USER=sphinx
test -f $SPHINX_BINARY || exit 0
Paste this into your browser console on a bandcamp page and it'll replace the
track player listing with text, where the text has track start times and
names. This makes it easier to copy/paste track information about albums e.g.
for reviews.
You can use either the full version or the minified version. Both do the same
thing, but the minified one might be easier to paste.
@deoxxa
deoxxa / queue.js
Created January 1, 2012 18:16
javascript job queue
module.exports = Queue;
function Queue(action, concurrency) {
this.action = action;
this.concurrency = concurrency || 1;
this.waiting = [];
this.running = 0;
}
@deoxxa
deoxxa / example.go
Last active November 18, 2016 03:24
// ...
sqb := newBuilder(6)
cqb := newBuilder(6)
b := []*builder{sqb, cqb}
sqb.push(0, "select prd.id, prd.name, prd.picture, (prc.price * 100)::numeric::integer, cg.date")
cqb.push(0, "select count(distinct prd.id)")
pushAll(b, 1, "from stores s")
@deoxxa
deoxxa / stream.yml
Last active November 13, 2016 11:28
name: CDCI Events
slug: N2002828Q
index: cdci-events
issuers:
- id: 1369a3f9-6775-40bf-a0a4-b705940fe01f
autoApproveUser: true
fields:
- timestamp
- pro_b_data.enni_fnn
- account_id
@deoxxa
deoxxa / swagger.yml
Last active November 12, 2016 01:07
swagger: "2.0"
info:
title: Live Table API
description: Interact with and configure a Siphon.IO Live Table
version: "1.0.0"
host: api.uber.com
schemes:
- https
basePath: /api/v1
produces:
{
"Imei": "354678050021708",
"Timestamp": 1477343460116,
"Priority": 0,
"Gps": {
"Longitude": 1508431968,
"Latitude": -323215269,
"Altitude": 135,
"Angle": 82,
"Satellites": 8,
#!/bin/sh
set -e
echo "--- Clearing old build contents"
rm -rf build/*
echo "--- Getting yarn image"
docker pull kkarczmarczyk/node-yarn:6.7-slim
// @flow
/* eslint-disable no-use-before-define */
const TOKEN_AND = 'TOKEN_AND';
const TOKEN_ATOM = 'TOKEN_ATOM';
const TOKEN_BANG = 'TOKEN_BANG';
const TOKEN_COLON = 'TOKEN_COLON';
const TOKEN_CURLY_CLOSE = 'TOKEN_CURLY_CLOSE';
const TOKEN_CURLY_OPEN = 'TOKEN_CURLY_OPEN';