Skip to content

Instantly share code, notes, and snippets.

View jjcall's full-sized avatar
🎯
Focusing

Jason Calleiro jjcall

🎯
Focusing
View GitHub Profile
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U jjcall -d refinery_database_development latest.dump
pg_restore: connecting to database for restore
pg_restore: dropping INDEX unique_schema_migrations
pg_restore: dropping INDEX index_seo_meta_on_seo_meta_id_and_seo_meta_type
pg_restore: dropping INDEX index_seo_meta_on_id
pg_restore: dropping INDEX index_refinery_users_on_id
pg_restore: dropping INDEX index_refinery_user_plugins_on_user_id_and_name
pg_restore: dropping INDEX index_refinery_user_plugins_on_name
pg_restore: dropping INDEX index_refinery_roles_users_on_user_id_and_role_id
pg_restore: dropping INDEX index_refinery_roles_users_on_role_id_and_user_id
Desktop psql -h localhost -U jjcall -W refinery_database_development < latest.dump
Password for user jjcall:
ERROR: syntax error at or near "PGDMP"
LINE 1: PGDMP
id integer NOT NULL,
^
ERROR: syntax error at or near ""
LINE 1: START WITH 1
^
ERROR: syntax error at or near ""
earlyshares-cms [master●] rails s -p 4000
Digest::Digest is deprecated; use Digest
=> Booting WEBrick
=> Rails 3.2.8 application starting in development on http://0.0.0.0:4000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2014-10-02 09:29:14] INFO WEBrick 1.3.1
[2014-10-02 09:29:14] INFO ruby 2.1.2 (2014-05-08) [x86_64-darwin13.0]
[2014-10-02 09:29:14] INFO WEBrick::HTTPServer#start: pid=42947 port=4000
cache: [GET /] miss
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
Started GET "/learn-more/overview" for 127.0.0.1 at 2014-10-01 23:12:34 -0400
Processing by PagesController#show as HTML
Parameters: {"slug"=>"overview"}
Completed 500 Internal Server Error in 14ms
** [Airbrake] Notice was not sent due to configuration:
Environment Monitored? false
API key set? false
ActiveRecord::AdapterNotSpecified - database configuration does not specify adapter:
activerecord (4.0.9) lib/active_record/connection_adapters/connection_specification.rb:52:in `resolve_hash_connection'
@jjcall
jjcall / index.html
Created August 16, 2014 19:54
A Pen by Jason Calleiro.
<div class="loader-wrapper loader-wrapper-light">
<div class="loader">
<img src="https://dl.dropboxusercontent.com/u/264487/bg_mark.svg" width="42" alt="Loading...">
</div>
</div>
<div class="loader-wrapper loader-wrapper-dark">
<div class="loader">
<img src="https://dl.dropboxusercontent.com/u/264487/bg_mark.svg" width="42" alt="Loading...">
</div>
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
<ul>
<li>layer name <i>remove icon</i></li>
<li>layer name <i>remove icon</i></li>
<li><i>add icon</i></li>
</ul>