Skip to content

Instantly share code, notes, and snippets.

View colinwilson's full-sized avatar
🎯

Colin Wilson colinwilson

🎯
View GitHub Profile
@parmentf
parmentf / GitCommitEmoji.md
Last active September 17, 2026 21:00
Git Commit message Emoji
@jpawlowski
jpawlowski / haproxy.cfg
Last active May 31, 2023 05:41
Geeking out with HAproxy on pfSense: The ultimate port 443 TLS/SSL router | http://loredo.me/post/116633549315/geeking-out-with-haproxy-on-pfsense-the-ultimate
global
maxconn 2000
stats socket /tmp/haproxy.socket level admin
uid 80
gid 80
nbproc 1
chroot /tmp/haproxy_chroot
daemon
tune.ssl.default-dh-param 2048
# Modern browser compatibility only as mentioned here:
@joepie91
joepie91 / vpn.md
Last active September 12, 2026 03:49
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@vkostyukov
vkostyukov / statuses.md
Last active June 21, 2026 12:56
HTTP status codes used by world-famous APIs
API Status Codes
[Twitter][tw] 200, 304, 400, 401, 403, 404, 406, 410, 420, 422, 429, 500, 502, 503, 504
[Stripe][stripe] 200, 400, 401, 402, 404, 429, 500, 502, 503, 504
[Github][gh] 200, 400, 422, 301, 302, 304, 307, 401, 403
[Pagerduty][pd] 200, 201, 204, 400, 401, 403, 404, 408, 500
[NewRelic Plugins][nr] 200, 400, 403, 404, 405, 413, 500, 502, 503, 503
[Etsy][etsy] 200, 201, 400, 403, 404, 500, 503
[Dropbox][db] 200, 400, 401, 403, 404, 405, 429, 503, 507
@dlangille
dlangille / 01-inputs.conf
Created July 23, 2015 21:15
Logstash configuration
#logstash-forwarder
input {
lumberjack {
port => 5043
type => "logs"
ssl_certificate => "/usr/local/etc/ssl/metrics.int.unixathome.org.crt"
ssl_key => "/usr/local/etc/ssl/metrics.int.unixathome.org.nopassword.key"
codec => plain { charset => "ISO-8859-1" }
}
}
@elfurbe
elfurbe / docker-compose.yml
Created July 9, 2015 00:41
ES Rancher Service Prototype
ES-Masters:
tty: true
command:
- elasticsearch
- -Des.cluster.name=sansabelt
- -Des.node.master=true
- -Des.node.data=false
- -Des.discovery.zen.ping.multicast.enabled=false
- -Des.discovery.zen.ping.unicast.hosts=datas,clients
image: elasticsearch
@amochohan
amochohan / 01_Laravel 5 Simple ACL manager_Readme.md
Last active March 26, 2026 13:38
Laravel 5 Simple ACL - Protect routes by an account / role type

#Laravel 5 Simple ACL manager

Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.

If the user has a 'Root' role, then they can perform any actions.

Installation

Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php

@chaudum
chaudum / gist:39373c14cf7f89e0c808
Last active March 25, 2016 05:30
At the moment, Crate does not have a builtin concept of ACL or user permissions, but there are several ways to secure a cluster and prevent it from unauthorized access. However, sometimes you want make your cluster just read-only and people have been asking us about that. — https://crate.io/blog/readonly-crate-with-nginx-and-lua/
upstream crate {
server 10.0.0.101:4200;
server 10.0.0.102:4200;
server 10.0.0.103:4200;
}
server {
listen 4220;
location = /_sql {
# Varnish 4.0 file for our Craft CMS projects
# Based on https://github.com/mattiasgeniar/varnish-4.0-configuration-templates/blob/master/default.vcl
#
# This is still work in progress, comments appreciated.
vcl 4.0;
import std;
import directors;
@gmasse
gmasse / gist:4b0c34be3d797cd729d2
Last active February 22, 2022 16:00
OVH custom iPXE boot (dedicated server)