- indexer and shipper setups
- TODO: add auth layer between kibana and elasticsearch... https://github.com/fangli/kibana-authentication-proxy ?
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc| var gulp = require('gulp'); | |
| var phpspec = require('gulp-phpspec'); | |
| var run = require('gulp-run'); | |
| var notify = require('gulp-notify'); | |
| gulp.task('test', function() { | |
| gulp.src('spec/**/*.php') | |
| .pipe(run('clear')) | |
| .pipe(phpspec('', { notify: true })) | |
| .on('error', notify.onError({ |
By Thomas Darr (@trdarr), with love.
“How has no one yet written a tutorial for deploying Hubot on @digitalocean? cc @beyroutey”
— Miles Grimshaw (@milesgrimshaw), 10 Dec 2013
| var Video = Backbone.Model.extend({}); | |
| var VideoList = Backbone.Collection.extend({ | |
| model: Video, | |
| url: '/videos' | |
| }); | |
| var VideoPlayerView = Backbone.View.extend({ | |
| id: 'video-player', | |
| className: 'video-player', |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # Redis configuration file example | |
| # Note on units: when memory size is needed, it is possible to specify | |
| # it in the usual form of 1k 5GB 4M and so forth: | |
| # | |
| # 1k => 1000 bytes | |
| # 1kb => 1024 bytes | |
| # 1m => 1000000 bytes | |
| # 1mb => 1024*1024 bytes | |
| # 1g => 1000000000 bytes |
| // # Mocha Guide to Testing | |
| // Objective is to explain describe(), it(), and before()/etc hooks | |
| // 1. `describe()` is merely for grouping, which you can nest as deep | |
| // 2. `it()` is a test case | |
| // 3. `before()`, `beforeEach()`, `after()`, `afterEach()` are hooks to run | |
| // before/after first/each it() or describe(). | |
| // | |
| // Which means, `before()` is run before first it()/describe() |
| ;; This is an attempt to mimic what the "CtrlP Funky" plug-in | |
| ;; for Vim does, allowing a "fuzzy search" of functions within | |
| ;; the current buffer. | |
| ;; | |
| ;; Because this uses completing-read (in my config., this is | |
| ;; handled by helm, which is awesome), it isn't actually | |
| ;; "fuzzy," but it gets the job done. | |
| ;; | |
| ;; Note: This is my first real attempt at writing elisp so it | |
| ;; might not be "proper." |