Skip to content

Instantly share code, notes, and snippets.

Bazze /
Last active May 18, 2019
Bash script for setting up symlinked git hooks (that works)
#!/usr/bin/env bash
# 1. Save this script in your repo as "hooks/"
# 2. Save your git hooks in "hooks/git/<hook name>"
# 3. Execute this script with bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${DIR}/.."
#!/usr/bin/env bash
# Usage: ./ <git revision/tag/branch> <git revision/tag/branch>
JIRA_STATUSES="Done,\"Ready for QA\""

Keybase proof

I hereby claim:

  • I am Bazze on github.
  • I am bazze ( on keybase.
  • I have a public key whose fingerprint is 2FF3 D3EA FA72 BD91 6F06 4FBE 3C18 DCF8 E7AD EAD0

To claim this, I am signing this object:

Bazze / Input.jsx
Last active Jan 25, 2017
I use this class as drop-in replacement for the "Input" class after it got deprecated in react-bootstrap version 0.29.0.
View Input.jsx
import React, { PropTypes } from 'react';
import ReactDOM from 'react-dom';
import { FormGroup, ControlLabel, FormControl, HelpBlock } from 'react-bootstrap';
class Input extends React.Component {
static propTypes = {
children: PropTypes.any,
help: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
id: PropTypes.string,
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
Bazze / .bash_profile
Last active Jul 26, 2016
View .bash_profile
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
# Yes, I'm lazy
alias ls='ls -laGFh'
# Always do vagrant up with --provision
vagrant() { if [[ $@ == "up" ]]; then command vagrant up --provision | more; else command vagrant "$@"; fi; }
Bazze / .gitconfig
Last active May 4, 2016
My .gitconfig
View .gitconfig
ui = auto
[color "branch"]
# good looking colors i copy/pasted from somewhere
current = green bold
local = green
remote = red bold
[color "diff"]
# good looking colors i copy/pasted from somewhere
meta = yellow bold