| Function | Shortcut |
|---|---|
| previous tab | β + left arrow |
| next tab | β + right arrow |
| go to tab | β + number |
| go to window | β + Option + Number |
| go to split pane by direction | β + Option + arrow |
| go to split pane by order of use | β + ] , β + [ |
| split window horizontally (same profile) | β + D |
| split window vertically (same profile) | β + d |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
| package org.scribe.builder.api; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| import org.scribe.exceptions.OAuthException; | |
| import org.scribe.extractors.AccessTokenExtractor; | |
| import org.scribe.model.OAuthConfig; | |
| import org.scribe.model.OAuthConstants; | |
| import org.scribe.model.OAuthRequest; |
Yesterday I upgraded our running elasticsearch cluster on a site which serves a few million search requests a day, with zero downtime. I've been asked to describe the process, hence this blogpost.
To make it more complicated, the cluster was running elasticsearch version 0.17.8 (released 6 Oct 2011) and I upgraded it to the latest 0.19.10. There have been 21 releases between those two versions, with a lot of functional changes, so I needed to be ready to roll back if necessary.
- elasticsearch
We run elasticsearch on two biggish boxes: 16 cores plus 32GB of RAM. All indices have 1 replica, so all data is stored on both boxes (about 45GB of data). The primary data for our main indices is also stored in our database. We have a few other indices whose data is stored only in elasticsearch, but are updated once daily only. Finally, we store our sessions in elasticsearch, but active sessions are cached in memcached.
###Vim Cheat Sheet
MOVEMENT
- Basic movement: h j k l (left, down,up, right)
- Word movement: w b (next, back) W B (ignore punct)
- Number powered movement: 3w
- Start of line: 0, end $
- Start doc: gg, end: G, line: 6G
- Next page: CTRL+f, Back page: CTRL+b, 1/2 versions: CTRL+d, CTRL+u
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
- Install fish via Brew
- Optionally install Oh My Fish!
- Add fish to known shells
- Set default shell to fish
brew install fish
curl -L https://get.oh-my.fish | fish