Skip to content

Instantly share code, notes, and snippets.

View jerryharrison's full-sized avatar
🐢
Marathon not a sprint.

Jerry Harrison jerryharrison

🐢
Marathon not a sprint.
View GitHub Profile
/*
DON'T ALLOW THESE USERNAMES IN YOUR APP
if you want to allow www.yourapp.com/{username}
here are the words you wouldn't want people to use
as their username
words followed by star (*) mean you don't want to
@jerryharrison
jerryharrison / help.md
Created February 20, 2021 16:03 — forked from elisescu/help.md
temp-tty-server-config

Nginx config

My nginx config. I honestly don't remember the details of all parts of the config, but I do remember having to do something explicit about the websockets connections, which initially were not allowed by the proxy. I should update the documentation of the repo one day, when I will get some time :).

nginx config for the web/browser side (http+websockets connection)

http {
    upstream tty-server {
        server localhost:8010;
@jerryharrison
jerryharrison / Gemfile
Created June 26, 2020 13:43 — forked from dhh/Gemfile
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@jerryharrison
jerryharrison / stuns
Created June 25, 2020 20:23 — forked from yetithefoot/stuns
STUN+TURN servers list
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
@jerryharrison
jerryharrison / .block
Created June 18, 2020 20:40 — forked from armollica/.block
Isometric map
height: 960
@jerryharrison
jerryharrison / install-htop.sh
Created February 5, 2020 14:50 — forked from alexandrerocco/install-htop.sh
Amazon Linux - Install htop
# update
sudo yum -y update
sudo yum -y upgrade
# enable EPEL6 by changing enabled=0 -> enabled=1
sudo vim /etc/yum.repos.d/epel.repo
# install htop
sudo yum install htop
@jerryharrison
jerryharrison / README.md
Created June 18, 2019 16:12 — forked from awmichel/README.md
Development Guide for DNS Resolution: permitzone.dev

Development Guide for DNS Resolution of permitzone.dev Domains

This guide will walk you through setting up permitzone.dev domain resolution locally. It involves setting up dnsmasq to handle .dev DNS requests and nginx to proxy requests to the correct app locally.

Prerequisites

  • Homebrew is installed and working. Use brew doctor to verify.

Setup

@jerryharrison
jerryharrison / values_pointers.go
Created September 6, 2018 15:15 — forked from josephspurrier/values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value
// THIS SHOULD WORK AS COPY/PASTE into mongo console
var games = ["here is a test", "small test", "another game"];
var query = 'here is testing a test';
//////////////////////////////////////////////
// 1. util functions
var intersect = function(arr1, arr2) {