Productivity tips & tricks Productivity tips & tricks for a - - PowerPoint PPT Presentation

productivity tips tricks productivity tips tricks
SMART_READER_LITE
LIVE PREVIEW

Productivity tips & tricks Productivity tips & tricks for a - - PowerPoint PPT Presentation

Productivity tips & tricks Productivity tips & tricks for a developer for a developer Sebastian Witowski Sebastian Witowski 1 2 3 4 5 6 vs. vs. 7 8 dotles dotles .bashrc, .vimrc, .gitcong alias ..="cd


slide-1
SLIDE 1

Productivity tips & tricks Productivity tips & tricks

for a developer for a developer

Sebastian Witowski Sebastian Witowski

1

slide-2
SLIDE 2

2

slide-3
SLIDE 3

3

slide-4
SLIDE 4

4

slide-5
SLIDE 5

5

slide-6
SLIDE 6

6

slide-7
SLIDE 7

vs. vs.

7

slide-8
SLIDE 8

8

slide-9
SLIDE 9

dotles dotles

.bashrc, .vimrc, .gitcong

alias ..="cd .." alias ...="cd ../.." alias ....="cd ../../.." alias ll='ls -al' alias g="git" alias ga="git add" alias gb="git branch" alias gci="git commit" alias prod1='ssh cds-wn-01' alias prod2='ssh cds-wn-02' alias chown='chown --preserve-root'

source

9

slide-10
SLIDE 10

dotles dotles

.bashrc, .vimrc, .gitcong

syntax enable " enable syntax processing set number " display line numbers set showcmd " show command in bottom bar set showmatch " higlight matching parenthesis set history=1000 " store lots of :cmdline history set incsearch " search as characters are entered " Allow saving of files as sudo command W w !sudo tee % > /dev/null " Pressing s will toggle and untoggle spell checking map s :setlocal spell!

source

10

slide-11
SLIDE 11

dotles dotles

.bashrc, .vimrc, .gitcong

[alias] ci = commit co = checkout d = diff l = log # Squash last N commits together squash = "!f(){ git reset --soft HEAD~${1} && git commit --ed # Checkout a PR (usage: git copr 1234) copr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:p # Merge GitHub pull request on top of the `master` branch ...

source

11

slide-12
SLIDE 12

vim vim

" Map leader key to space let mapleader = "\"

12

slide-13
SLIDE 13

IPython IPython

Execute some code each time you start IPython

.... c.InteractiveShellApp.exec_lines = [ 'from invenio.search_engine import perform_request_search', 'from invenio.bibformat_engine import BibFormatObject' ]

IPython#cong-le

13

slide-14
SLIDE 14

Text expanders Text expanders

14

slide-15
SLIDE 15

What are your tricks? What are your tricks?

15