Skip to content

Instantly share code, notes, and snippets.

Brandon Github lordnynex

Block or report user

Report or block lordnynex

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lordnynex / gist:1445d0917558ee897632dfda64652788
Created Jul 23, 2018 — forked from lxneng/gist:741932
install PostgreSQL 9 in Mac OSX via Homebrew
View gist:1445d0917558ee897632dfda64652788
install PostgreSQL 9 in Mac OSX via Homebrew
Mac OS X Snow Leopard
System Version: Mac OS X 10.6.5
Kernel Version: Darwin 10.5.0
Install notes for PostgreSQL 9.0.1 install using Homebrew:
sh-3.2# brew install postgresql
lordnynex / GORILLA.BAS
Created May 25, 2018 — forked from caffo/GORILLA.BAS
QBasic Gorillas
' Q B a s i c G o r i l l a s
' Copyright (C) IBM Corporation 1991
' Your mission is to hit your opponent with the exploding banana
lordnynex /
Created Feb 3, 2018 — forked from iros/
Documenting your REST API


<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

lordnynex / tar-gz-reader.go
Created May 11, 2017 — forked from indraniel/tar-gz-reader.go
Reading through a tar.gz file in Go / golang
View tar-gz-reader.go
package main
import (
lordnynex / ssh_client.go
Created Feb 12, 2017 — forked from svett/ssh_client.go
SSH client in GO
View ssh_client.go
package main
import (
lordnynex /
Created Feb 10, 2017 — forked from kkc/
Elasticsearch performance tuning



System: set file descriptors to 32K or 64K

vim /etc/security/limit.conf

View gist:cbeb6f4d2580536aa58b632b637cd7b4
http {
lua_shared_dict healthchecks 1m;
upstream YOURAPP {
server; # just an invalid address as a place holder
balancer_by_lua_block {
local balancer = require "ngx.balancer"
-- well, usually we calculate the peer's host and port
lordnynex / pearson-hashing.c
Created Dec 30, 2016 — forked from imdario/pearson-hashing.c
Pearson hashing (just for fun). Includes Ruby and Golang versions for RFC 3074 and original variants.
View pearson-hashing.c
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
* Pearson hashing (from Wikipedia)
* Pearson hashing is a hash function designed for fast execution on processors with 8-bit registers.
* Given an input consisting of any number of bytes, it produces as output a single byte that is strongly
* dependent on every byte of the input. Its implementation requires only a few instructions, plus a
View gist:cd8ec9aa5f9bd798038acc4413cef2e3
data "template_file" "userdata" {
template = "${file("templates/userdata.tpl")}"
vars {
region = "${var.region}"
file_system_id = "${}"
resource "aws_launch_configuration" "mig5-prod-lc" {
grep -r -E '[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}' *
You can’t perform that action at this time.