(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # Based on https://gist.github.com/fernandoaleman/5083680 | |
| # Start the old vagrant | |
| $ vagrant init ubuntu_saucy | |
| $ vagrant up | |
| # You should see a message like: | |
| # [default] The guest additions on this VM do not match the install version of | |
| # VirtualBox! This may cause things such as forwarded ports, shared | |
| # folders, and more to not work properly. If any of those things fail on | 
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/usr/bin/env python | |
| """Use inotify to watch a directory and execute a command on file change. | |
| Watch for any file change below current directory (using inotify via pyinotify) | |
| and execute the given command on file change. | |
| Just using inotify-tools `while inotifywait -r -e close_write .; do something; done` | |
| has many issues which are fixed by this tools: | |
| * If your editor creates a backup before writing the file, it'll trigger multiple times. | |
| * If your directory structure is deep, it'll have to reinitialize inotify after each change. | 
| { | |
| "title": "Maxifier Logs", | |
| "services": { | |
| "query": { | |
| "idQueue": [], | |
| "list": { | |
| "0": { | |
| "query": "level:\"ERROR\"", | |
| "alias": "", | |
| "color": "#890F02", | 
| # | |
| # Hack the distutils_plugin's SETUP_TEMPLATE to disable hardlinks. | |
| # | |
| import string | |
| from pybuilder.core import init | |
| from pybuilder.plugins.python import distutils_plugin | |
| SDIST_MONKEY_PATCH = """ | |
| # sdist_hack: Remove reference to os.link to disable using hardlinks when | 
| #!/bin/bash | |
| # Make sure we have the dev tools | |
| yum groupinstall "Development Tools" | |
| # Just in case you started installing dependencies from yum | |
| yum -y remove libnfnetlink | |
| # lets put the source code here | |
| mkdir -p ~/.src | 
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| # ---------------------- | |
| # installing dnsmasq and enable daemon | |
| # ---------------------- | |
| brew install dnsmasq | |
| sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons | |
| # ---------------------- | |
| # adding resolver for vbox domain | |
| # ---------------------- | |
| [ -d /etc/resolver ] || sudo mkdir -v /etc/resolver | |
| sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/vbox' | 
| # Start the old vagrant | |
| $ vagrant init centos-6.3 | |
| $ vagrant up | |
| # You should see a message like: | |
| # [default] The guest additions on this VM do not match the install version of | |
| # VirtualBox! This may cause things such as forwarded ports, shared | |
| # folders, and more to not work properly. If any of those things fail on | |
| # this machine, please update the guest additions and repackage the | |
| # box. | 
| #!/bin/bash | |
| # Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/ | |
| yum groupinstall "Development tools" | |
| yum install zlib-devel | |
| yum install bzip2-devel openssl-devel ncurses-devel | |
| wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2 | |
| tar xf Python-2.7.3.tar.bz2 | |
| cd Python-2.7.3 |