input {
file {
# /path/to/APP/app/logs/prod.log
path => "/srv/*/app/logs/dev.log"
}
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## switch block | |
case "$1" in | |
start) | |
start | |
;; | |
stop) | |
stop |
git-rebase
reapply all commits from your branch to the TOP of another branch. It will sequentially take all the commmits from the branch you're in, and reapply them to the destination branch. Git-rebase does not destroy the old ones.
read more git-rebase golden rule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
ARTIFACTS=shop.tar.gz | |
TARGET_BASE=/srv/www | |
TARGET_ARCHIVE=$TARGET_BASE/$ARTIFACTS | |
TARGET_LOCATION=$TARGET_BASE/shop | |
case "$1" in | |
deploy) | |
echo 'backing up artifacts ...' |
I use commonly key combination jk
to do quick switch between INSERT/COMMAND mode in vim. The followings are the configurations for the favorite editors.
to allow quick switch INSERT/COMMAND mode in atom with keys jk
, two files need to be configured
atom.commands.add 'atom-text-editor', 'exit-insert-mode-if-proceeded-by-j': (e) ->
editor = @getModel()
pos = editor.getCursorBufferPosition()
range = [pos.traverse([0,-1]), pos]
OlderNewer