Skip to content

Instantly share code, notes, and snippets.

View AJ-Acevedo's full-sized avatar
🤓
Studying

AJ Acevedo AJ-Acevedo

🤓
Studying
View GitHub Profile
@AJ-Acevedo
AJ-Acevedo / passenger-install.md
Last active December 17, 2015 09:29
Installing Passenger On Mac OS 10.8.3 with SSL

Installing Phusion Passenger on Mac OS 10.8.3 with SSL

$ brew install pcre
$ gem install passenger
$ passenger-install-nginx-module
https://www.phusionpassenger.com/download

TODO:

  • create a deploy user and group
@AJ-Acevedo
AJ-Acevedo / log
Created June 1, 2013 00:01
rvm log for issue #1928
$ rvm --trace requirements ruby
+ [[ -n '' ]]
+ set -o errtrace
+ export 'PS4=+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ PS4='+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ 1370044767.N /scripts/cli : __rvm_parse_args() 709 > [[ -z '' ]]
+ 1370044767.N /scripts/cli : __rvm_parse_args() 709 > [[ -n '' ]]
+ 1370044767.N /scripts/cli : __rvm_parse_args() 712 > [[ error == '' ]]
+ 1370044767.N /scripts/cli : __rvm_parse_args() 712 > [[ 0 -eq 1 ]]
+ 1370044767.N /scripts/cli : __rvm_parse_args() 712 > [[ -n '' ]]
@AJ-Acevedo
AJ-Acevedo / log2
Created June 1, 2013 18:31
debug output for rvm issue #1928
##############################################
####### $ rvm --debug requirements ruby #####
##############################################
$ rvm --debug requirements ruby
rvm_autolibs_flag=enable
Installing requirements for osx, might require sudo password.
requirements code for osx loaded
brew seems to be writable
Install custom packages: homebrew/dupes.
@AJ-Acevedo
AJ-Acevedo / mytest.txt
Created June 23, 2013 17:42
RailsApps Composer not working with Rails RC2
minibook:sandbox aj$ ruby -v
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin11.4.2]
minibook:sandbox aj$ rvm gemset use mytest --create
minibook:sandbox aj$ gem install rails --version=4.0.0.rc2
Fetching: i18n-0.6.4.gem (100%)
Successfully installed i18n-0.6.4
Fetching: multi_json-1.7.7.gem (100%)
Successfully installed multi_json-1.7.7
Fetching: tzinfo-0.3.37.gem (100%)
Successfully installed tzinfo-0.3.37

Postgres 9.2 - Install, Setup and Quick Reference

Set the default template to UTF8

$ su postgres
$ psql -U postgres
psql (9.2.4)
Type "help" for help.
@AJ-Acevedo
AJ-Acevedo / ruby.log
Last active December 20, 2015 10:59
Ruby Segmentation fault - Attempting to run $ RAILS_ENV="staging" rake db:migrate --trace
$ RAILS_ENV="staging" rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate
/usr/local/lib/ruby/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825: [BUG] Segmentation fault
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
@AJ-Acevedo
AJ-Acevedo / fizzbuzz.rb
Created August 8, 2013 19:57
Fizz Buzz - Written in Ruby
#!/usr/bin/env ruby
# Fizz Buzz
# Copyright (c) 2013 AJ Acevedo | http://ajacevedo.com
# This content is released under the MIT License.
# http://www.opensource.org/licenses/mit-license.php
# Version: 0.1
# The heavy lifting of Fizz Buzz
def fizz_buzz?(count)

Bearded's Hourly Contract

Date: [[Date of Document]] Between [Our Company] and [Your Company]

Summary

We’re not big on formality, but sometimes it’s best to have a few simple things written down so that we’re all on the same page. In this contract you won’t find complicated legal terms or large passages of unreadable text. We have no desire to trick you into signing something that you might later regret. We do want what’s best for the safety of both parties, now and in the future.

@AJ-Acevedo
AJ-Acevedo / Contract_Fixed.md
Last active December 21, 2015 01:19 — forked from malarkey/Contract Killer 3.md
AJAlabs - Web Design and Development, Fixed Rate Contract

AJAlabs - Web Development Contract

Revised date: 08/13/2013

Between us [company name]
and you [customer name]

Summary:

@AJ-Acevedo
AJ-Acevedo / Multienancy-with-rails.md
Last active December 21, 2015 03:39
Multienancy with Rails book corrections from: The version published on 2013-08-10

These suggestions are referencing pages from the pdf version published on 2013-08-10

Page: 5
Details:
If using rspec then there is no need for the test directory.

Original:
rails plugin new subscribem --full --mountable --dummy-path spec/dummy