Lazy EXP+

Tools & Tips for Python Developer and Linux/Mac User

Agenda

  • Linux & Mac
    • bash: .bashrc, CLI hotkey, prompt
    • byobu: terminal window manager
  • Python
    • one-liners
  • Emacs
  • Web

Linux & Mac

  • .bashrc
    • history.  HISTFILESIZE, HISTSIZE, histappend...
    • nice prompt for git/hg
      https://github.com/milkbikis/powerline-bash
      ​function _update_ps1()
      { export PS1="$(~/Scripts/powerline-bash.py --cwd-only $?)" }
      export PROMPT_COMMAND="history -a; _update_ps1"

    • use CDPATH, cd subdir in anywhere. 
      export  CDPATH='.:~:~/project'

  • CLI hotkey
    emacs mode is default; vi mode. set -o vi
    ​search, move to start/end, <alt> + .
    work on shell of python, mysql, mongo, etc... 

Linux & Mac

  • Byobu
    • window manager, backend is tmux/screen
    • teamocil + tmux  Link: preview, repo 

  • Other

    • script  ps_mem.py    download @github

    • hibernate

    • fab

    • select clip access

    • one more script? 

Linux & Mac

  • Wanted
    • window capture. wmctrl?
    • 番茄钟 / workrave

Python

  • oneliners​

     $ echo '{"foo": "lorem", "bar": "ipsum"}' | python -mjson.tool | pygmentize -l json 

     $ python -m smtpd -n -c DebuggingServer localhost:25

     $ python -m SimpleHTTPServer 8080

Emacs

  • oneliners​
    • desktop
    • magit.el
    • ido
    • flymake
    • Org-mode (with MobileOrg)
    • info and help
    • pymacs + rope
    • yasnippet
    • sqlplus.el

 

Emacs

  • Feture
    • minor mode
    • buffer
    • keyboard flow
    • remote edit
    • macros
    • Emacs(源自Editor MACroS,宏编辑器)
    • <alt+x> execute function
    • extension (package)
    • customize?
      scp case
      stardict integrate

Emacs

  • Wanted
    • python spec. align line
    • better project
    • navigator
    • python shell
    • window switch

Resources

  • Links
    @pycoders Pycoders Weekly
    BOSO (Top Questions on Stack Overflow)
  • Docs
    .bashrc
    ​dotfile repo@bitbucket (private, need request)

Lazy EXP+

By Liu Bo

Lazy EXP+

Tools & Tips for Python Developer and Linux/Mac User

  • 1,993