Skip to content

Instantly share code, notes, and snippets.

@johnmarc
johnmarc / config
Created December 3, 2015 20:39
ssl config nginx
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
## generate perserver with
## cd /etc/ssl/certs
## openssl dhparam -out dhparam.pem 4096
ssl_dhparam /etc/nginx/dhparams.pem;
@kpheasey
kpheasey / 0000_packages.config
Last active September 16, 2019 21:56 — forked from gcarrion-gfrmedia/0000_packages.config
AWS Elastic Beanstalk Ruby 2.2 Puma Sidekiq
packages:
yum:
git: []
htop: []
@natelandau
natelandau / .bash_profile
Last active April 30, 2024 18:07
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@iloveitaly
iloveitaly / n_for_x.rb
Created January 9, 2013 16:00
N for X promotion calculator for spree commerce. (example: "5 for $50")
module Spree
class Calculator::NForX < Calculator
preference :number, :integer, :default => 0 # n
preference :amount, :decimal, :default => 0 # x
attr_accessible :preferred_amount
attr_accessible :preferred_number
def self.description
I18n.t(:n_for_x)
@lusis
lusis / dba-user.json
Created January 7, 2011 11:24
Managing MySQL user accounts with Chef
{
"id":"dbauser",
"uid":506,
"comment":"DBA User",
"shell":"/bin/bash",
"groups": [
"sysadm",
"dba"
],
"ssh_key": "XXXXXXXXXX"