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:
server { | |
listen 80; | |
root /var/www/; | |
server_name test01.cloudrck.net www.test01.cloudrck.net; | |
location /p { | |
if ($request_uri ~* "^/p/(.+)/([0-9]+)/(.*)$") { | |
set $md5 $1; | |
set $expires $2; | |
set $directory $3; |
I hereby claim:
To claim this, I am signing this object:
# 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 |
#!/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 |
#!/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: |
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.
#!/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 |
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 |
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.2.3' | |
# Use sqlite3 as the database for Active Record | |
gem 'sqlite3' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 5.0' | |
# Use Uglifier as compressor for JavaScript assets |
## A sample /etc/unicorn/my_app.conf | |
## | |
APP_ENV=production | |
APP_ROOT=/home/myuser/legendsu | |
SHARED_ROOT=/home/myuser/shared | |
UNICORN="/home/myuser/.rvm/gems/ruby-2.1.2/bin/unicorn" |