This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1) Point *.example.com in your DNS setup to your server. | |
# | |
# 2) Setup an Apache vhost to catch the star pointer: | |
# | |
# <VirtualHost *:80> | |
# ServerName *.example.com | |
# </VirtualHost> | |
# | |
# 3) Set the current account from the subdomain | |
class ApplicationController < ActionController::Base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CentOS 6.4 barebones walkthrough guide for a new vps rails server instance | |
# assumes you already have a personal ssh key locally | |
# | |
# script implements the following security approaches: | |
# disables root login | |
# configures ssh setup for deployer user | |
# opens up standard ports | |
# | |
# setup includes: | |
# rvm & ruby-1.9.3-p429 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'unicorn' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -xe | |
#THIS SCRIPT MUST BE RUN AS ROOT | |
ADMIN_USER=admin | |
ADMIN_GROUP=admin | |
#add admin group | |
(cat /etc/group | grep -E '\b$ADMIN_GROUP\b') || sudo groupadd $ADMIN_GROUP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright © 2009, Componentix. All rights reserved. | |
*/ | |
package com.componentix.hibernate.dialect; | |
import java.sql.Types; | |
/** | |
* A proper dialect for Microsoft SQL Server 2000 and 2005. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rbenv & brew git/bash completion terminal setup | |
# for dev desktop only on osx | |
# Run the following commands in order to use this script: | |
################################################################ | |
# !! => Update/Install xcode Command Line Tools <= !! | |
# In your shell/terminal: | |
# Homebrew perms needed: | |
# sudo chown -R root:admin /usr/local | |
# sudo chown -R root:admin /Library/Caches/Homebrew | |
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = yourname | |
email = yourname @ whatever | |
[core] | |
excludesfile = yourhomedir/.gitignore | |
#git config --global core.eol lf | |
#git config --global core.autocrlf input | |
eol = lf | |
autocrlf = input | |
#git rm -rf --cached . |
Follow the steps below to setup a local development environment:
Recommended to download latest XQuartz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Fetch the S3 prefix list ID's for S3 in all AWS regions. | |
# These are can then be used as destinations in route tables | |
aws ec2 describe-regions --query 'Regions[*].RegionName' | \ | |
jq -r '.[]' | \ | |
while read REGION | |
do | |
echo ==== $REGION ==== |
OlderNewer