- 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| --- | |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: Creates a Systems Manager Association with inline PowerShell. | |
| Resources: | |
| Association: | |
| Type: AWS::SSM::Association | |
| Properties: | |
| AssociationName: AssociationName | |
| Name: AWS-RunPowerShellScript | |
| Parameters: |
| " If on Mac run: | |
| " brew install ripgrep | |
| " Install CtrlP of course | |
| " Plug 'ctrlpvim/ctrlp.vim' | |
| if executable('rg') | |
| set grepprg=rg\ --color=never | |
| let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""' | |
| let g:ctrlp_use_caching = 0 | |
| else |
brew install fish
curl -L https://get.oh-my.fish | fishPeople
: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: |
###Vim Cheat Sheet
MOVEMENT
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.
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.
| 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; |