Skip to content

Instantly share code, notes, and snippets.

@cloudrck
cloudrck / secure-link.conf
Created October 14, 2023 16:25
Nginx Secure Link Config
@cloudrck
cloudrck / ComicIO.py
Last active December 30, 2022 18:42
Python Script to generate a Comic Book EPUBv3 or CBZ file from JPEG's.
#!/usr/bin/env python
# coding: utf-8
# ComicIO: copyright (C) 2016, Daejuan Jacobs
# This is a preview to a script I will be packaging soon. Consider this an Alpha build
# Just need Python v3
#
#ToDo
# * Add page count
# * dc:identifier for UPC/ISBN http://www.idpf.org/epub/30/spec/epub30-publications.html#sec-opf-dcidentifier
# * Coverimage.xtml

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@cloudrck
cloudrck / multicraft.conf
Last active November 10, 2020 15:01
Nginx Configuration for running Multicraft Panel
upstream php5-fpm-sock {
server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
server_name minecraft.example.com;
root /srv/minecraft/multicraft/;
index index.php;
@cloudrck
cloudrck / debian-gfs.sh
Created July 10, 2015 02:04
Debian 8 Jessie GlusterFS Install and Configuration
#!/bin/bash
set -e
# Debian 8 'Jessie' GlusterFS Install
#########
#ToDo:
# * Change guid/suid of mount
# * Give option for cluster type
# * Change variables via command line read
########
@cloudrck
cloudrck / defaults_unicorn_app
Created April 22, 2017 02:22 — forked from AlexeyDemidov/defaults_unicorn_app
Unicorn service file for systemd with rvm support
# save this file in /etc/default/unicorn_app
USER=app_user
APP_ROOT=/srv/app
RVM_STRING=2.2.4@app_gemset
RACK_ENV=production
UNICORN_OPTS="-D -c /srv/app/shared/config/unicorn.rb -E production"
DAEMON=unicorn
require 'rubygems'
require 'sinatra'
helpers do
def request_headers
env.inject({}){|acc, (k,v)| acc[$1.downcase] = v if k =~ /^http_(.*)/i; acc}
end
end
@cloudrck
cloudrck / certbot-renew.sh
Last active February 20, 2017 03:46
Renew Script for LetsEncrypt
#!/usr/bin/env bash
set -o errexit
set -o nounset
# Bash will remember & return the highest exitcode in a chain of pipes.
# This way you can catch the error in case mysqldump fails in `mysqldump |gzip`
set -o pipefail
PATH=/sbin:/bin:/usr/sbin:/usr/bin
@cloudrck
cloudrck / Backup.sh
Created June 10, 2016 02:37
Bash Backup Script
#!/usr/bin/env bash
# This file:
#
# - Simple Bash script to mysqldump > Gzip > Rsync+ssh storage
# - It trys to avoid hardcoded login credentials
# - It assumes the user executing has ~/.my.cnf for mysqldump
#
# Version: 0.1
#
# Usage:
@cloudrck
cloudrck / install-comodo-ssl-cert-for-nginx.rst
Created May 9, 2016 04:04 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert