Skip to content

Instantly share code, notes, and snippets.

View tambakoo's full-sized avatar

Himanshu G. tambakoo

  • 13:07 (UTC +05:30)
View GitHub Profile
@tambakoo
tambakoo / git-branch.txt
Last active September 22, 2021 06:29
Show git branch in a zsh terminal
#IN THE .zshrc DOTFILE, ADD THE FOLLOWING CODE
#git branch stuff
function parse_git_branch() {
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/(\1)/p'
}
setopt PROMPT_SUBST
export PROMPT='${PWD} $(parse_git_branch) $ '
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web servers
# and those relying on copy on write to perform better.
# Rake tasks automatically ignore this option for performance.
development:
adapter: redis
url: redis://localhost:6379/1
test:
adapter: async
staging:
adapter: redis
url: <%= "redis://#{ENV['REDIS_ADDRESS']}:6379/1"%>
user nginx;
worker_processes {{ workers }};
error_log {{ deploy_to }}/shared/log/nginx_error.log;
{% if dynamic_modules == true %}
include modules-enabled/*.conf;
{% endif %}
events {
worker_connections 1024;
{% if passenger != true %}
@tambakoo
tambakoo / Musi River.geojson
Created September 7, 2018 05:24
Musi River
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tambakoo
tambakoo / station.geojson
Created September 6, 2018 13:56
Stations
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.