Skip to content

Instantly share code, notes, and snippets.

View elijah's full-sized avatar
🦊

Elijah Wright elijah

🦊
View GitHub Profile
@Epigene
Epigene / MB puma + Nginx settings
Last active December 28, 2020 19:35
MB puma + Nginx settings
# /config/puma.rb
app = "manabalss" # App-specific
root = "/home/deployer/apps/#{app}"
workers 5
threads 1, 1 # relying on many workers for thread-unsafe apps
rackup DefaultRackup
port 11592
@lesaux
lesaux / graphite.go
Created March 13, 2015 14:45
graphite-driver for cadvisor
package graphite
import (
"bytes"
"fmt"
"net"
"sync"
"time"
"github.com/google/cadvisor/info"
@msikma
msikma / rfc5646-language-tags.js
Created February 26, 2015 13:51
RFC 5646 Language Tags
// List of language tags according to RFC 5646.
// See <http://tools.ietf.org/html/rfc5646> for info on how to parse
// these language tags. Some duplicates have been removed.
var RFC5646_LANGUAGE_TAGS = {
'af': 'Afrikaans',
'af-ZA': 'Afrikaans (South Africa)',
'ar': 'Arabic',
'ar-AE': 'Arabic (U.A.E.)',
'ar-BH': 'Arabic (Bahrain)',
'ar-DZ': 'Arabic (Algeria)',
@joakin
joakin / _what.md
Last active January 29, 2020 13:36
phabricator stylish
import os, glob, re
def main():
p = re.compile('^([0-9a-f]+-[0-9a-f]+)\s[a-z\-]{4}\s[0-9a-f]{8}\s[a-z0-9]{2}\:[a-z0-9]{2}\s[0-9]+\s+(.*)$')
smaps = glob.glob('/proc/[0-9]*/smaps')
for smap in smaps:
lines = open(smap).readlines()
for line in lines:
m = p.match(line)
if m and 'libc' in line:
name = open(smap.replace('smaps','status')).readlines()[0]
@harperreed
harperreed / config.json
Created December 29, 2014 17:33
Slack messages from CRON
{
"token":"xxxxxxxxxx",
"subdomain":"subdomain",
"username":"Eventbot",
"text":"<!everyone> here is an important link: <https://modest.com/|modest.com>",
"channel":"#general",
"icon": ":ghost:"
}
@abdulhadad
abdulhadad / httpd-proxy-tableau.conf
Created November 26, 2014 08:09
Proxy configuration for tableau on apache httpd
# open tableau server login screen in existing server http://webserver_host/tableau/
# after login url will redisrect to http://webserver_host/
# open again to open tableau server portal http://webserver_host/tableau/
#
# clear web browser cache to use or use private browsing mode
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
#! /bin/bash
# A hacky script that converts org-mode documents to an old-style
# Remarkup dialect, used by Phabricator and other tools.
set -x
set -e
pandoc --read=org --write=markdown --atx-headers $1 \
| sed -E "s/\{\.(.*)\}/lang=\1/g" \
| sed -E "s/\[(.*)\]\((.*)\)/[[\2 | \1]]/g" \
;;; phabricator.el --- Phabricator/Arcanist helpers for Emacs.
;; Author: Andrew Tulloch
;; URL: https://github.com/ajtulloch/phabricator.el
;; Version: 0.1
;; Created: 2014-09-11
;; Keywords: phabricator, arcanist, diffusion
;; Package-Requires: ((emacs "24.1") (ido "0.1") (projectile "0.1") (dash "0.1"))
;; This file is NOT part of GNU Emacs.
@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active March 29, 2025 07:56
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software