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
set :application, "SampleApp" | |
set :repository, "." | |
set :scm, :none | |
set :use_sudo, false | |
set :keep_releases, 5 | |
#Use the copy method which will compress and scp the files | |
set :deploy_via, :copy | |
set :main_js, "app.js" |
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
after_success: | |
- chmod 600 deployment/key.pem | |
- ssh-add deployment/key.pem | |
- gem install capistrano | |
- cap deploy |
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
# add to ~/.bash_profile | |
function sshh() { | |
local PROJECTNAME=${PWD##*/} | |
local HOST=$1 | |
eval "ssh -t ${HOST} \"cd ${PROJECTNAME}; bash\"" | |
} |
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
require 'rubygems' | |
require 'sinatra' | |
require 'json' | |
require 'omniauth' | |
require 'omniauth-facebook' | |
require 'omniauth-twitter' | |
class SinatraApp < Sinatra::Base | |
configure do | |
set :sessions, true |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Gamepad Shit</title> | |
<script type="text/javascript"></script> | |
<style type="text/css"></style> | |
</head> | |
<body> | |
<h1>Gamepad Shit</h1> |
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
/////////////////////////////////////////////////////////////////////////////////// | |
// | |
// 88888888ba db ad88888ba 88888888888 | |
// 88 "8b d88b d8" "8b 88 | |
// 88 ,8P d8'`8b Y8, 88 | |
// 88aaaaaa8P' d8' `8b `Y8aaaaa, 88aaaaa | |
// 88""""""8b, d8YaaaaY8b `"""""8b, 88""""" | |
// 88 `8b d8""""""""8b `8b 88 | |
// 88 a8P d8' `8b Y8a a8P 88 | |
// 88888888P" d8' `8b "Y88888P" 88888888888 |
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
brew update | |
brew versions FORMULA | |
cd `brew --prefix` | |
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
brew install FORMULA | |
brew switch FORMULA VERSION | |
git checkout -- Library/Formula/FORMULA.rb # reset formula | |
## Example: Using Subversion 1.6.17 | |
# |
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages