Skip to content

Instantly share code, notes, and snippets.

var originalStopPropagation = Event.prototype.stopPropagation
Event.prototype.stopPropagation = function() {
debugger
originalStopPropagation.call(this)
}
var originalStopImmediatePropagation = Event.prototype.stopImmediatePropagation
Event.prototype.stopImmediatePropagation = function() {
@dhovart
dhovart / dokku-vagrant-laravel-app
Last active May 24, 2023 12:35
Simple steps to set up a Laravel app on dokku in a Vagrant box
# --------------------------------------------------
# Setting up a Laravel app on dokku in a Vagrant box
# --------------------------------------------------
# First: cloning the dokku repo
$ git clone https://github.com/progrium/dokku
$ cd dokku
# Start, configure & provision a new vagrant box using the Vagrantfile from the repo
$ vagrant up
@dhovart
dhovart / post-checkout
Last active August 29, 2015 13:56
Git post-checkout and post-commit scripts to ( trigger | stop ) a hcl timer when ( switching branches | committing )
#!/usr/bin/env ruby
# encoding: utf-8
# Git post-checkout script to trigger hcl.
# To be put in .git/hooks/post-checkout and made executable.
# Misc. enhancement ideas :
# automatically map git branches to hcl tasks, storing data in ~/.hcl-git.yml
# prompt for input w/ readline & autocomplete hcl aliases
# create complementary post-commit script asking wether to stop timer or not