[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
it-tricks [2017/10/12 15:38]
popel created
it-tricks [2017/10/12 17:32]
popel
Line 2: Line 2:
 Various tips how to increase your productivity (esp. in Linux). Various tips how to increase your productivity (esp. in Linux).
  
 +===== Editors =====
 +Who uses which editor and is willing to provide a mini-training for new users (show config, favorite macros, highlighters etc.).
 +Feel free to add your name and editor.
 +
 +  * **vim**: Ondřej Bojar, Ruda Rosa, ...
 +  * **emacs**: ?
 +  * **atom**: Martin Popel
 +
 +===== Bash =====
 +  * Use Bash auto-completion (''source /etc/bash_completion''). Some tools have plugins, e.g. many [[https://metacpan.org/pod/Bash::Completion|Perl tools]].
 +  * ''export HISTCONTROL=ignoreboth'' results in bash history ignoring duplicate entries and entries starting with a space.
 +
 +===== Git =====
 +  * [[https://github.com/magicmonty/bash-git-prompt|bash-git-prompt]] shows e.g. the current branch and status. Martin Popel prefers to configure it (in bashrc) with
 +
 +    export GIT_PS1_SHOWDIRTYSTATE=1
 +    export GIT_PS1_SHOWSTASHSTATE=1
 +    export PS1='[\t]\[\033[2;31m\]\h:\W\[\033[01;95m\]$(__git_ps1 "(%s)")\[\033[2;31m\]>\[\033[0m\] '
 +
 +  * [[https://github.com/jonas/tig|tig]] text-mode gitk but better
 +  * read https://guides.github.com/, understand [[https://guides.github.com/introduction/flow/|GitHub flow]], check [[https://services.github.com/on-demand/resources/learning-path/|GitHub training]]
 +  * learn [[https://help.github.com/articles/using-keyboard-shortcuts/|GitHub keyboard shortcuts]], esp. "y" for permalink to a given line (line range) in source codes
 +
 +===== Other =====
   * When using **Perl** at ÚFAL, we recommend using [[Perlbrew]] with shared perl interpreters (different versions) and shared Perl modules (which otherwise take several hours to install).   * When using **Perl** at ÚFAL, we recommend using [[Perlbrew]] with shared perl interpreters (different versions) and shared Perl modules (which otherwise take several hours to install).
-  * See [[Python]] for using **Python** at ÚFAL. +  * See [[Python]] for using **Python** at ÚFAL
 +  * See [[internal:remote access]], esp. for byobu and mosh.
   * You **should not turn off** Linux workstations at ÚFAL, unless really needed (or agreed with it@ufal). In that case, try the standard ways, and if they do not work, try Ctrl+Alt+SysRq+[R,E,I,S,U,B] rather than plug out power cable. Mnemonics: "Reboot Even If System Utterly Broken", see http://en.wikipedia.org/wiki/Magic_SysRq_key#Uses   * You **should not turn off** Linux workstations at ÚFAL, unless really needed (or agreed with it@ufal). In that case, try the standard ways, and if they do not work, try Ctrl+Alt+SysRq+[R,E,I,S,U,B] rather than plug out power cable. Mnemonics: "Reboot Even If System Utterly Broken", see http://en.wikipedia.org/wiki/Magic_SysRq_key#Uses
 +  * Ondřej Bojar has implemented many [[http://www1.cuni.cz/~obo/textutils/|Text utils]], which he likes to use in his scripts and advises his students to do so as well.
 +

[ Back to the navigation ] [ Back to the content ]