Skip to content

Instantly share code, notes, and snippets.

View jonaharagon's full-sized avatar
💙
Building drama-free communities

Jonah Aragon jonaharagon

💙
Building drama-free communities
View GitHub Profile
@jonaharagon
jonaharagon / CLA.md
Last active January 30, 2019 21:37
AppleProblems Issues CLA

Fiduciary License Agreement 2.0

based on the

Individual Contributor exclusive License Agreement

(including the Traditional Patent License OPTION)

Thank you for your interest in contributing to AppleProblems.org's Apple Problems ("We" or "Us").

The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at https://github.com/appleproblems/issues/blob/master/.github/CONTRIBUTING.md.

How to use this FLA

@jonaharagon
jonaharagon / discourse.md
Last active August 1, 2018 16:51
OpenNIC's Discourse Dev Setup Instructions

Prerequisites

Docker and Git should be installed, and wget -qO- https://get.docker.com/ | sh should install both (although for some reason when I did it on Debian I still had to install Git manually).

Install

This is easy, just create a directory and clone Discourse's docker Git repo.

sudo -s
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="OpenPGP Keyserver">
<title>OpenPGP Keyserver</title>
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
==================================================================
https://keybase.io/jonaharagon
--------------------------------------------------------------------
I hereby claim:
* I am an admin of https://triplebit.net
* I am jonaharagon (https://keybase.io/jonaharagon) on keybase.
* I have a public key ASCGcCNXNSy0Aoxd_aEmexnTpNnMWfnKVmjeadFr5anplwo
@jonaharagon
jonaharagon / opennic-do
Created May 6, 2017 01:15
OpenNIC User Data Configuration for DigitalOcean (Ubuntu 16.04)
#cloud-config
package_update: true
packages:
- bind9
manage-resolv-conf: true
resolv_conf:
nameservers:
- '127.0.0.1'
- '138.197.25.214'
- '185.121.177.177'
@jonaharagon
jonaharagon / srvzone-do
Last active December 30, 2022 14:33
Modified SRVZONE Script for DigitalOcean User Data Installation (see https://wiki.opennic.org/opennic:srvzone for original)
#!/bin/bash
cd `/etc/bind`
mkdir --mode=774 --parents /var/cache/bind/opennic
mkdir --mode=774 --parents /var/cache/bind/opennic/master
mkdir --mode=774 --parents /var/cache/bind/opennic/slave
chown -R bind:bind /var/cache/bind
file_root='/var/cache/bind/opennic/tld-root'
file_master='/var/cache/bind/opennic/master/$TLD'
file_slave='/var/cache/bind/opennic/slave/$TLD.zone'
@jonaharagon
jonaharagon / keybase.md
Last active March 13, 2018 21:52
This is a Keybase verification file for https://keybase.io/jonaharagon

Keybase proof

I hereby claim:

  • I am jonaharagon on github.
  • I am jonaharagon (https://keybase.io/jonaharagon) on keybase.
  • I have a public key ASDird0rMUlWf6hEiuVPu5IiGTE0y6q8ZXFbXon5paxJFgo

To claim this, I am signing this object:

@jonaharagon
jonaharagon / renew-certs
Last active February 16, 2017 04:41 — forked from thisismitch/le-renew-webroot
Auto Renewal Script for Let's Encrypt and Discourse (@ DigitalOcean)
#!/bin/bash
web_service='nginx'
config_file="/opt/letsencrypt/settings.ini"
le_path='/opt/letsencrypt'
exp_limit=30;
if [ ! -f $config_file ]; then
echo "[ERROR] config file does not exist: $config_file"
client
dev tun
proto udp
remote <YOUR PUBLIC IP ADDRESS HERE> 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
#!/bin/sh
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j SNAT --to-source 192.168.X.X