Skip to content

Instantly share code, notes, and snippets.

View karthiknamburu's full-sized avatar

Karthik karthiknamburu

View GitHub Profile
@karthiknamburu
karthiknamburu / priority_queue.rb
Created March 28, 2020 02:27 — forked from brianstorti/priority_queue.rb
Priority queue implementation in Ruby
class PriorityQueue
attr_reader :elements
def initialize
@elements = [nil]
end
def <<(element)
@elements << element
bubble_up(@elements.size - 1)
@karthiknamburu
karthiknamburu / psql_useful_stat_queries.sql
Created June 13, 2019 14:37 — forked from anvk/psql_useful_stat_queries.sql
List of some useful Stat Queries for PSQL
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB.
------------
-- Basics --
------------
-- Get indexes of tables
@karthiknamburu
karthiknamburu / Git Commit Message Format
Created March 15, 2019 20:46
Git Commit Message Format
Git Commit Message Format
Type
Must be one of the following:
feat: A new feature
fix: A bug fix
docs: Documentation only changes
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
refactor: A code change that neither fixes a bug nor adds a feature
@karthiknamburu
karthiknamburu / gitflow-breakdown.md
Created March 7, 2019 15:57 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@karthiknamburu
karthiknamburu / gist:f2b14f83fe40a87c0f6c454ff2dcb76b
Created September 25, 2018 18:28 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@karthiknamburu
karthiknamburu / GitCommitEmoji.md
Created June 26, 2018 19:52 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
https://github.com/nimmis/docker-alpine-apache
@karthiknamburu
karthiknamburu / ansible-redhat installation
Created September 2, 2016 23:25
How to install and configure Ansible on Red Hat Enterprise Linux
I found an interesting article via Newsfusion Open Source News - I thought you might like it:
http://go.newsfusion.com/open
-source/item/0
@karthiknamburu
karthiknamburu / ansible-redhat installation
Created September 2, 2016 23:25
How to install and configure Ansible on Red Hat Enterprise Linux
I found an interesting article via Newsfusion Open Source News - I thought you might like it:
http://go.newsfusion.com/open-source/item/0
@karthiknamburu
karthiknamburu / file.rb
Created September 2, 2016 23:24
How to install and configure Ansible on Red Hat Enterprise Linux
I found an interesting article via Newsfusion Open Source News - I thought you might like it:
http://go.newsfusion.com/open-source/item/0