Skip to content

Instantly share code, notes, and snippets.

View nranjan54's full-sized avatar

Niraj Kumar Ranjan nranjan54

View GitHub Profile
@nranjan54
nranjan54 / herok_github.md
Created January 13, 2016 14:52 — forked from jczaplew/herok_github.md
Heroku + Github + Sensitive Data

Heroku + Github + Sensitive Data

Scenario: You deployed a Heroku project that contains sensitive data (password, API key, etc) but you want to share it on Github.

Problem: You need to commit all files necessary for the application to run on Heroku. However, pushing this to Github would reveal the sensitive info.

Solution: Have a production branch (for this example, master will be the production branch) and a Github branch. The latter contains a different .gitignore that ignores the sensitive files.

@nranjan54
nranjan54 / .vimrc
Last active August 29, 2015 14:27 — forked from rocarvaj/.vimrc
Minimal .vimrc for C/C++ developers
" VIM Configuration File
" Description: Optimized for C/C++ development, but useful also for other things.
" Author: Gerhard Gappmeier
"
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" disable vi compatibility (emulation of old bugs)