Skip to content

Instantly share code, notes, and snippets.

@nicholasserra
nicholasserra / zookeeper-kafka
Created March 29, 2017 20:24 — forked from mesonoxian/zookeeper-kafka
Simple Zookeeper and Kafka init.d Startup Script
#! /bin/bash
### BEGIN INIT INFO
# Provides: kafka
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: kafka service
### END INIT INFO
@nicholasserra
nicholasserra / kafka
Created March 29, 2017 20:10 — forked from superscott/kafka
Simple Kafka Ubuntu init.d Startup Script
DAEMON_PATH=/opt/kafka/bin
DAEMON_NAME=kafka
# Check that networking is up.
#[ ${NETWORKING} = "no" ] && exit 0
PATH=$PATH:$DAEMON_PATH
# See how we were called.
case "$1" in
start)
@nicholasserra
nicholasserra / settings_test_snippet.py
Created February 18, 2016 21:56 — forked from NotSqrt/settings_test_snippet.py
Another shot at this problem ..
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
return "notmigrations"
MIGRATION_MODULES = DisableMigrations()
## Backbone
http://addyosmani.com/largescalejavascript/#mediatorpattern
http://blog.pamelafox.org/2013/07/a-guide-to-writing-backbone-apps-at.html
http://ozkatz.github.io/avoiding-common-backbonejs-pitfalls.html
http://www.joezimjs.com/javascript/backbone-js-subview-rendering-trick/
http://www.benknowscode.com/2013/08/extending-backbone-for-building-better-web-applications.html
http://drupalmotion.com/article/debounce-and-throttle-visual-explanation
## Promises

IMHO the correct way to install bleeding edge plugins to Vagrant is to use the standard Vagrant installer.

These instructions should work for Vagrant 1.1.0 - 1.4.x (but probably not for Vagrant 1.5+),

git clone https://github.com/berkshelf/berkshelf.git
cd berkshelf
gem build berkshelf.gemspec

# Install directly to Vagrant's gem storage, as this is not a plugin