Skip to content

Instantly share code, notes, and snippets.

View chrisjmccrum's full-sized avatar

Christopher McCrum chrisjmccrum

  • 14:42 (UTC -04:00)
View GitHub Profile
@kcak11
kcak11 / App.md
Last active January 15, 2026 14:15
Country Codes

Country Codes

List of all Country Codes (ISO & Dialing) sorted in alphabetical order.

@srfrog
srfrog / cuid.sql
Created November 27, 2019 03:49
CUIDs for PL/PgSQL
-- Collision-resistant ids optimized for horizontal scaling and performance, for PL/PgSQL.
-- Based on https://github.com/ericelliott/cuid
-- Version 1.0.0
-- Usage: SELECT cuid();
-- BEGIN CONFIG ---
-- Put a unique host ID (int) here per server instance.
-- Once set, this value should not be changed.
@jclausen
jclausen / haproxy.cfg
Created March 5, 2017 23:04
Haproxy - Load Balance All Domains with SSL Termination
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
maxconn 1024
@guardrex
guardrex / nutjob-webhostbuilder-pattern.cs
Last active September 2, 2017 15:03
My "NUTJOB" WebHostBuilder Pattern
/*
The purpose of this pattern is to consolidate all application
configuration into just ONE file and configure the app based
on the server/dev environment where it finds itself. It removes
the need for environment variables and/or JSON config files on
individual machines.
*/
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Mvc;
@vtanathip
vtanathip / gitignore-android-studio-list
Last active August 15, 2025 01:21
Git Ignore files list that should use in Android Studio Projects
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
@glinton
glinton / smart-pub.md
Last active November 20, 2024 13:32
SmartOS zone manipulation. Snapshot, image, rollback, and migrate.

SmartOS Zone Manipulation

Notes on snapshots, images, and migrations

Create Zone/KVM

# Create zone
vmadm create <<EOL
{
 "brand": "joyent",
 .