Skip to content

Instantly share code, notes, and snippets.

View naimrajib07's full-sized avatar

Naim Rajiv naimrajib07

View GitHub Profile
@naimrajib07
naimrajib07 / .powenv
Created April 2, 2017 19:28
Using Pow!! with Foreman (Configuration)
# In your app's root.
# Make Pow!! export all the env variables contained in the .env file used by Foreman.
export $(cat .env)
@naimrajib07
naimrajib07 / links.textile
Created January 29, 2016 10:24 — forked from lucashungaro/links.textile
Links de referência utilizados em minha palestra
@naimrajib07
naimrajib07 / rspec_model_testing_template.rb
Created December 9, 2015 09:30
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http…
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems:
@naimrajib07
naimrajib07 / gist:92e43aa19359fb68bba9
Created October 2, 2015 16:12 — forked from wrburgess/gist:5528649
Backup Heroku Postgres database and restore to local database

Grab new backup of database

Command: heroku pgbackups:capture --remote production

Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712

Get url of backup download

Command: heroku pgbackups:url [db_key] --remote production

@naimrajib07
naimrajib07 / how_to_concerns.md
Last active August 29, 2015 14:25 — forked from jhjguxin/how_to_concerns.md
how to concerns with rails 3
How to setup Heroku Hostname SSL with GoDaddy SSL Certificate and Zerigo DNS
Heroku recently added an exciting new 'Hostname SSL' option. This option offers the broad compatibility of IP-based SSL, but at 1/5 the price ($20 / month at the time of this writing).
The following tutorial explains how to use Heroku's new 'Hostname SSL' option on your Heroku project. Before we begin, let's list what we're using here:
* Heroku Hostname SSL
* GoDaddy Standard SSL Certificate
* Zerigo DNS