Skip to content

Instantly share code, notes, and snippets.

View anthonycintron's full-sized avatar

Anthony Cintron anthonycintron

View GitHub Profile
@biske
biske / restore-database.txt
Last active November 26, 2015 17:02
Restore database from Heroku to local environment
$ wget $(heroku pg:backups public-url -a legacy-next-staging) -O tmp/tti_legacy.dump
Remove all conections to database (for example shut down rails servers or rails console).
# From legacy project:
$ bundle exec rake db:drop db:create
$ pg_restore --verbose --clean --no-acl --no-owner -h localhost -U ivanbisevac1 -d tti_development tmp/tti_legacy.dump
$ bundle exec rake db:migrate
# On roundabout project:
package gibberish
{
import flash.display.Sprite;
import flash.geom.Rectangle;
import flash.text.*;
import gs.TweenLite;
import gs.TweenMax;
public class GibberishTextField extends Sprite