Skip to content

Instantly share code, notes, and snippets.

@elijahsgh
elijahsgh / conf.json
Created March 15, 2019 15:23
nginx unitd with wordpress for 1.8.0+
{
"listeners": {
"*:8080": {
"pass": "routes/wordpress"
}
},
"routes": {
"wordpress": [
{
@elijahsgh
elijahsgh / upload_package.py
Last active November 29, 2017 17:49
Upload packages from CI to Katello, basic PoC
#!/usr/bin/env python2
# Based on https://gist.github.com/jlsherrill/4fa35b787147e6f087fd302dfae2af25
# If Foreman reports an invalid package then reduce the chunk size.
import requests
import argparse
import sys
def getorganization(foremansettings, org_name):