Skip to content

Instantly share code, notes, and snippets.

View kxhitiz's full-sized avatar
:octocat:
{ hello: world }

Kshitiz Gurung kxhitiz

:octocat:
{ hello: world }
View GitHub Profile
@kxhitiz
kxhitiz / git-commit-log-stats.md
Created April 12, 2019 17:43 — forked from eyecatchup/git-commit-log-stats.md
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




#!/usr/bin/env bash
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz
mkdir vim && tar xzvf vim.tar.gz -C vim
export PATH=$PATH:/app/vim/bin
@kxhitiz
kxhitiz / prepare-commit-msg
Created May 10, 2017 22:19 — forked from jasonmerino/prepare-commit-msg
Prepend branch name to every git commit message unless on master.
#!/bin/sh
#
# Prepend the branch name to the commit message
#
# Add this file as [repo]/.git/hooks/prepare-commit-msg
#
# A couple notes:
# 1. The file must be executable (chmod +x prepare-commit-msg)
# 2. This works on a per-repo basis (unless you follow this guide https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook)
@kxhitiz
kxhitiz / Gemfile
Created August 14, 2013 05:52 — forked from geemus/Gemfile
source "http://rubygems.org"
gem 'fog'
/* Flatten das boostrap */
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
border-collapse: collapse !important;
background-image: none !important;
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
sudo apt-get build-dep tmux
git clone https://github.com/ThomasAdam/tmux.git
cd tmux/trunk
./autogen.sh
./configure --prefix=/usr/local
make
@kxhitiz
kxhitiz / responsive-iframes.css
Created June 28, 2012 05:09 — forked from aarongustafson/responsive-iframes.css
Responsive iFrames with jQuery
iframe {
max-width: 100%;
}
@kxhitiz
kxhitiz / launch_sublime_from_terminal.markdown
Created June 5, 2012 04:10 — forked from artero/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation