Skip to content

Instantly share code, notes, and snippets.

@lordnynex
lordnynex / Hexavigesimal.java
Created August 25, 2021 18:52 — forked from pinguet62/Hexavigesimal.java
The Hexavigesimal numeral system.
package fr.pinguet62.util;
/**
* Wrapper for hexavigesimal representation and conversions.<br />
* {@code 0} = {@code "A"}<br/>
* {@code 25} = {@code "Z"}<br/>
* {@code 26} = {@code "AA"}<br/>
* {@code 27} = {@code "AB"}<br/>
* {@code 730} = {@code "ABC"}
*/
@lordnynex
lordnynex / host_offset.txt
Created August 3, 2021 19:01 — forked from busbey/host_offset.txt
Helper for running YCSB "Core Workloads" on multiple hosts.
client-1.example.com:0
client-2.example.com:429496729
client-3.example.com:858993458
client-4.example.com:1288490187
client-5.example.com:1717986916
@lordnynex
lordnynex / glcoud-signed-url.go
Created February 3, 2021 18:19 — forked from poindextrose/glcoud-signed-url.go
Example on how to create a signed URL on Google Cloud Storage with Go
package main
import (
"fmt"
"time"
"google.golang.org/cloud/storage"
)
const (
@lordnynex
lordnynex / hasmany.go
Created October 11, 2020 22:34 — forked from albttx/hasmany.go
Golang GORM has_many exemple
package main
import (
"fmt"
"log"
"github.com/Sirupsen/logrus"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/postgres"
)
@lordnynex
lordnynex / gist:1445d0917558ee897632dfda64652788
Created July 23, 2018 22:31 — forked from lxneng/gist:741932
install PostgreSQL 9 in Mac OSX via Homebrew
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
lordnynex / GORILLA.BAS
Created May 25, 2018 20:56 — 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
lordnynex / API.md
Created February 3, 2018 22:19 — forked from iros/API.md
Documenting your REST API

Title

<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
lordnynex / tar-gz-reader.go
Created May 11, 2017 01:27 — forked from indraniel/tar-gz-reader.go
Reading through a tar.gz file in Go / golang
package main
import (
"archive/tar"
"compress/gzip"
"flag"
"fmt"
"io"
"os"
)
@lordnynex
lordnynex / ssh_client.go
Created February 12, 2017 22:49 — forked from iamralch/ssh_client.go
SSH client in GO
package main
import (
"fmt"
"io"
"io/ioutil"
"net"
"os"
"strings"
@lordnynex
lordnynex / elasticsearch.md
Created February 10, 2017 02:24 — forked from kkc/elasticsearch.md
Elasticsearch performance tuning

##TUNING##

Configuration

System: set file descriptors to 32K or 64K

vim /etc/security/limit.conf