Skip to content

Instantly share code, notes, and snippets.

View tylerwillingham's full-sized avatar

Tyler Willingham tylerwillingham

View GitHub Profile
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
rake db:migrate
rake aborted!
could not connect to server: Permission denied
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
rake db:migrate
rake aborted!
could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (fe80::1) and accepting
sudo -u postgres createuser -D -P rails
Password:
could not identify current directory: Permission denied
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) y
Password:
sudo -u postgres createuser -D -P rails
Password:
could not identify current directory: Permission denied
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) y
Password:
@tylerwillingham
tylerwillingham / site.com.conf
Created April 30, 2012 22:08
nginx vhost config
server {
listen 80;
server_name staging.site.com;
error_log url_to_nginx-error.log;
access_log url_to_nginx-access.log;
root /srv/http/nginx/site.com/staging/root;
location / {
<input type="hidden" name="elqCustomerGUID" value="" /> {!-- Auto-populated by Eloqua --}
<input type="hidden" name="elqFormName" value="ResourceLibrary">
<input type="hidden" name="elqSiteID" value="1554" />
<input type="hidden" name="elqCookieWrite" value="0" />
<input type="hidden" name="OmniWebLead" value="1" />
<input type="hidden" name="task_status" value="" />
<input type="hidden" name="member_status" value="Inquiry-High" />
<input type="hidden" name="oid" value="00D300000000Ndm" />
<input type="hidden" name="retURL" value="SFDCID_returnError" /> {!-- SFDCID_action --}
<input type="hidden" name="Primary_Language__c" value="{env:language}" />
<?php
$last_view = array(
'session_one' => array(
'last_slide' => '3'
),
'session_two' => FALSE,
'session_three' => FALSE
);
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* ExpressionEngine - by EllisLab
*
* @package ExpressionEngine
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2003 - 2011, EllisLab, Inc.
* @license http://expressionengine.com/user_guide/license.html
* @link http://expressionengine.com
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* ExpressionEngine - by EllisLab
*
* @package ExpressionEngine
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2003 - 2011, EllisLab, Inc.
* @license http://expressionengine.com/user_guide/license.html
* @link http://expressionengine.com