Skip to content

Instantly share code, notes, and snippets.

View tleyden's full-sized avatar

Traun Leyden tleyden

View GitHub Profile
@tleyden
tleyden / mattermost_nginx.conf
Created November 6, 2023 16:32
mattermost nginx conf
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
# HTTPS configuration
listen 443 ssl http2; # managed by Certbot
@tleyden
tleyden / gist:64bd251b39c1e30a8b68106feb5beffc
Created November 5, 2019 17:47
open-ocr-preprocessor build logs
New in Docker Hub: Personal Access Tokens. Learn more >
Explore
Repositories
Organizations
Repositories
tleyden5iwx / open-ocr-preprocessor
Builds
Using 0 of 1 private repositories. Get more
SUCCESS
Building in Docker Cloud's infrastructure...
Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.
KernelVersion: 4.4.0-1060-aws
Components: [{u'Version': u'18.03.1-ee-3', u'Name': u'Engine', u'Details': {u'KernelVersion': u'4.4.0-1060-aws', u'Os': u'linux', u'BuildTime': u'2018-08-30T18:42:30.000000000+00:00', u'ApiVersion': u'1.37', u'MinAPIVersion': u'1.12', u'GitCommit': u'b9a5c95', u'Arch': u'amd64', u'Experimental': u'false', u'GoVersion': u'go1.10.2'}}]
Arch: amd64
BuildTime: 2018-08-30T18:42:30.000000000+00:00
ApiVersion: 1.37
@tleyden
tleyden / gist:3c8f1d88ef30d4cd57d6e03b2848e290
Created February 15, 2018 21:16
Couchbase Server Vagrantfile
# VM for running Couchbase Server in a private network
#
# After starting:
#
# - vagrant ssh to get into the vm
# - wget http://latestbuilds.service.couchbase.com/builds/releases/5.0.1/couchbase-server-enterprise-5.0.1-centos7.x86_64.rpm (or from downloads page)
# - run "ip addr" to get eth1 ip address
# - on host machine, go to ip-address:8091 to setup Couchbase Server
{
"interface":":4984",
"log": ["*", "BLIP", "BLIP+", "BLIP++"],
"databases": {
"todo": {
"server": "walrus:",
"users": {
"user1": {"password": "pass", "admin_channels": ["user1"]},
"user2": {"password": "pass", "admin_channels": ["user2"]},
"mod": {"password": "pass", "admin_roles": ["moderator"]},
@tleyden
tleyden / find_functions_w_error_params.go
Created November 14, 2017 00:40
Find all functions that take an "error" as a parameter using Go's AST parser
package main
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
"log"
"strings"
)
@tleyden
tleyden / clobber_doc.go
Created July 8, 2017 23:38
openwhisk debugging
package main
import (
"context"
"fmt"
"encoding/json"
"github.com/flimzy/kivik"
_ "github.com/flimzy/kivik/driver/couchdb" // The CouchDB driver
"os"
@tleyden
tleyden / gist:806bad30c18b29f4e350adca5e2d91ef
Created April 10, 2017 18:11
The Code Not Taken (if Robert Frost were a coder and alive today)
Two branches diverged in a hairy func,
And sorry I could not setjmp both
And be one core, long I spun
And looked down one stack as deep I could
To where it bent in the memory bus
Then took the other, as just as fast,
And having perhaps the better metal,
Because it was cachey and wanted warmth,
Though as for that the executing there
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.