initial
commit
2d0d281db2
|
|
@ -0,0 +1,3 @@
|
|||
[user]
|
||||
email = bel@bel.bel
|
||||
name = bel
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
*
|
||||
!*.*
|
||||
!*/
|
||||
|
||||
**/*.sw*
|
||||
/Library
|
||||
/Go/bin
|
||||
/Go/pkg
|
||||
/.viminfo
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
inoremap {<CR> {<CR>}<Esc>ko<Tab>
|
||||
inoremap (<CR> (<CR>)<Esc>ko<Tab>
|
||||
"inoremap { {}<Esc>ha <Esc>i
|
||||
|
||||
set ruler
|
||||
set hlsearch
|
||||
syntax enable
|
||||
|
||||
set shiftwidth=3
|
||||
set tabstop=3
|
||||
autocmd Filetype * setlocal ts=3 sts=3 sw=3 expandtab
|
||||
set expandtab
|
||||
set number
|
||||
set relativenumber
|
||||
set autoindent
|
||||
|
||||
" Comment formatting for C/C++/CSS
|
||||
set formatoptions+=r
|
||||
|
||||
"set nowrap
|
||||
|
||||
" cleaner wrap
|
||||
set breakindent
|
||||
|
||||
" case insensitive default (goes sensitive if there's a capital letter)
|
||||
set ignorecase
|
||||
set smartcase
|
||||
|
||||
" nice word wrapping
|
||||
set wrap
|
||||
set linebreak
|
||||
|
||||
"set mouse=a
|
||||
"if has("mouse_sgr")
|
||||
" set ttymouse=sgr
|
||||
"else
|
||||
" set ttymouse=xterm2
|
||||
"end
|
||||
|
||||
" goimports on save
|
||||
autocmd BufWritePre * %s/\([^ ]\) $/\1/e
|
||||
autocmd BufWritePre * %s/\s\s\s\+$//e
|
||||
autocmd BufWritePost *.go !timeout 2 goimports -w %
|
||||
autocmd BufRead,BufNewFile *.go set autoread
|
||||
"set rtp+=timeout 2 $GOPATH/src/github.com/golang/lint/misc/vim
|
||||
"autocmd BufWritePost,FileWritePost *.go execute 'Lint' | cwindow
|
||||
|
||||
autocmd Filetype java setlocal ts=4 sts=4 sw=4 expandtab
|
||||
autocmd Filetype php setlocal ts=4 sts=4 sw=4 noexpandtab
|
||||
autocmd Filetype yaml setlocal ts=2 sts=2 sw=2 expandtab
|
||||
autocmd Filetype eyaml setlocal ts=2 sts=2 sw=2 expandtab
|
||||
autocmd Filetype yml setlocal ts=2 sts=2 sw=2 expandtab
|
||||
autocmd Filetype rb setlocal ts=2 sts=2 sw=2 expandtab
|
||||
autocmd Filetype Jenkinsfile setlocal ts=3 sts=3 sw=3 noexpandtab
|
||||
autocmd Filetype js setlocal ts=4 sts=4 sw=4 noexpandtab
|
||||
autocmd Filetype javascript setlocal ts=4 sts=4 sw=4 expandtab
|
||||
autocmd Filetype typescript setlocal ts=2 sts=2 sw=2 expandtab
|
||||
autocmd Filetype ts setlocal ts=2 sts=2 sw=2 expandtab
|
||||
|
||||
set binary
|
||||
set ffs=unix
|
||||
autocmd FileType crontab setlocal nowritebackup
|
||||
|
||||
"colors pyte
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#! /bin/bash
|
||||
|
||||
cd "$(dirname "$(realpath "$BASH_SOURCE")")"
|
||||
mkdir -p ./Go/{src,bin,pkg}
|
||||
export GOPATH="$PWD/Go"
|
||||
|
||||
if [ "$PWD" != "$HOME" ]; then
|
||||
cp $HOME/.{bash,vim}rc ./
|
||||
export HOME="$PWD"
|
||||
fi
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
recv:
|
||||
questions:
|
||||
- what do you like about go? goroutines; if you can vertical scale then very readable
|
||||
- what don't you like about go? channels; create confusion and open door to a mess
|
||||
- when to use a buffered channel? when non-buffered? buffered only as an option and is limited by how fast consuming is anyway
|
||||
- how do you like to sync if you dont like channels? channels are fine, mutexes and semaphores via channels are fine too
|
||||
- how to `find` in mongo? .... find()
|
||||
- how to `average` in mongo? without aggregate pipeline? pre-aggregate via a second collection/column/document
|
||||
- how to shard `{user:1, ts:123, value:.8}`? by user:1,ts:1;; never hash!
|
||||
- how to build an index? ... createIndex()
|
||||
- would this use index intersection? `{user:5, ts: {gt:now-7days}}`? i said yes, he said no
|
||||
- which index would it use? probably userid:x, since it won't head to see how much that is
|
||||
- how to determine which index? .explain()
|
||||
send:
|
||||
questions:
|
||||
- q: what's on your wishlist roadmap this year? for the next 5 years?
|
||||
a: finish deprecation work !!!
|
||||
|
||||
- q: where are SLAs defined? How are issues escalated?
|
||||
a: we dont notice stuff until a customer has a big bug report;; we have grafana and prometheus !!!
|
||||
|
||||
- q: do you feel comfortable discussing compensation with your lead? with one another?
|
||||
a: yeah, but it has its cons
|
||||
|
||||
- q: you're using mgo?
|
||||
a: no go-common is too painful
|
||||
|
||||
not asked:
|
||||
- q: do you find yourself blocked by other teams? working in other teams' spaces?
|
||||
- q: there's a github repo on running tidepool locally. Any opinions on it? Do you use it?
|
||||
- q: how do you manage configs? secrets?
|
||||
|
||||
- q: who's someone you look up to? what makes them awesome?
|
||||
- q: what does planning vacation time look like?
|
||||
- q: what is performance review process like?
|
||||
|
||||
cut questions:
|
||||
- q: what does a release look like? when is something -release ready-?
|
||||
- q: what's code review like? timeline? protocol?
|
||||
- q: what operating system do you work in? was it a choice? what software is standard? what do you wish for? (IDEs, VPNs, ...)
|
||||
- q: what's your biggest worry?
|
||||
- q: do developers have SSH/root access/db admin access? why?
|
||||
- q: what's the DR plan?
|
||||
- q: what automations do you have? CICD? Metrics and alerts? Deployment?
|
||||
Loading…
Reference in New Issue