If u are getting below error while indexing:
{
"error": {
"root_cause": [
{
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
}
If u are getting below error while indexing:
{
"error": {
"root_cause": [
{
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
}
### Keybase proof | |
I hereby claim: | |
* I am twymer on github. | |
* I am twymer (https://keybase.io/twymer) on keybase. | |
* I have a public key ASBFEbZt62sDK6-YDoR3vrSQQRj-K17URROqTR_PEeSN-wo | |
To claim this, I am signing this object: |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
osascript <<-eof | |
tell application "iTerm" | |
set myterm to (make new terminal) | |
set cdhqdir to "cd ~/code/dimagi/commcare-hq" | |
tell myterm | |
launch session "Default session" | |
tell the last session | |
write text "elasticsearch" | |
write text "pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start" |
#! /bin/sh | |
# Start from repository root | |
cd ./$(git rev-parse --show-cdup) | |
# Delete .pyc files | |
find . -name '*.pyc' -delete | |
# Update submodules | |
git submodule update |
git reset --HARD HEAD@{0} // Can see options with git reflog, this should undo the pull's changes | |
git reset --soft HEAD~ // Pull your last commit out to the index (might need to reset further) | |
git stash | |
git pull | |
git stash pop | |
Now fix your issues and push |
function! s:closebufnotwindow(arg) | |
let bufnum = bufnr("%") | |
exe "enew" | |
exe "bd" . bufnum | |
endfunction | |
command! -nargs=* Bsnazzy call s:closebufnotwindow('<args>') |
function! s:movefunction(arg) | |
let oldnum = bufnr("%") | |
let newname = a:arg | |
execute "!mv %" . " " . newname | |
exe "new " . newname | |
exe "bd" . oldnum | |
endfunction | |
command! -nargs=* Newmv call s:movefunction('<args>') |