Skip to content

Instantly share code, notes, and snippets.

View eyupatis's full-sized avatar
🏠
Working from home

Eyüp Atiş eyupatis

🏠
Working from home
View GitHub Profile
heroku pgbackups
heroku pgbackups:url b004
curl -o latest.dump "heroku pgbackups:url"
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U postgres -d universiteplus_development latest.dump
@eyupatis
eyupatis / gist:10525319
Last active August 29, 2015 13:59
Manage multiple apps on Heroku - Set a default app
git config heroku.remote heroku
#ifndef BID_H
#define BID_H
class Bid {
int value;
public:
Bid(){
value = 0;
@eyupatis
eyupatis / gist:9980221
Created April 4, 2014 18:18
Mysql 5.5 Change a column's varchar length
alter table [table_name] modify [column_name] varchar(500);
@eyupatis
eyupatis / gist:6734718
Created September 27, 2013 20:30
Rails drop a table from rails console
ActiveRecord::Migration.drop_table(:users)
@eyupatis
eyupatis / gist:6074270
Created July 24, 2013 20:33
Source not found problem when installing libxml2 to Mac Os x Mountion Lion
if you have homebrew you must write this to terminal
brew install libxml2
after installation
brew link libxml2 --force
source not found error fixed for me. Hope you fix too.