Skip to content

Instantly share code, notes, and snippets.

@shamangeorge
shamangeorge / jail.local
Created October 10, 2017 22:31 — forked from Dman46/jail.local
Fail2ban - send Slack notifications
...
action_with_slack_notification = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
slack[name=%(__name__)s]
action = %(action_with_slack_notification)s
...
#!/bin/sh
exec < /dev/tty
./.git/hooks/validate_commit.rb $1
@shamangeorge
shamangeorge / vpnsetup.sh
Last active August 29, 2015 14:15 — forked from hwdsl2/.MOVED.md
#!/bin/sh
#
# Amazon EC2 user-data file for automatic configuration of IPsec/L2TP VPN
# on a Ubuntu server instance. Tested with 14.04 (Trusty) AND 12.04 (Precise).
# With minor modifications, this script *can also be used* on dedicated servers
# or any KVM- or XEN-based Virtual Private Server (VPS) from other providers.
#
# DO NOT RUN THIS SCRIPT ON YOUR PC OR MAC! THIS IS MEANT TO BE RUN WHEN
# YOUR AMAZON EC2 INSTANCE STARTS!
#
@shamangeorge
shamangeorge / crayola.json
Last active November 8, 2020 21:55 — forked from jjdelc/crayola.json
Official Crayola Colors hex and rgb values in JSON
[
{
"hex": "#EFDECD",
"name": "Almond",
"rgb": "(239, 222, 205)"
},
{
"hex": "#CD9575",
"name": "Antique Brass",
"rgb": "(205, 149, 117)"