Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
it-tricks [2018/03/08 18:03] vidra Add info about invoking OOM-killer by SysRq+F |
it-tricks [2020/09/29 11:21] polak [Editors] |
| |
* **vim**: Ondřej Bojar, Ruda Rosa, Milan Straka (C++ completion, Python completion, asynchronous make), ... | * **vim**: Ondřej Bojar, Ruda Rosa, Milan Straka (C++ completion, Python completion, asynchronous make), ... |
| * to start learning vim, run the ''vimtutor'' command |
* **emacs**: ? | * **emacs**: ? |
* **nano**: | * **nano**: |
* **atom**: Martin Popel | * **atom**: Martin Popel |
| * **IntelliJ IDEA**: Jonáš Vidra |
* **Kate**: Jonáš Vidra | * **Kate**: Jonáš Vidra |
* **Kile** (offline TeX editing): Anša Vernerová | * **Kile** (offline TeX editing): Anša Vernerová |
* **PyCharm**: Petr Bělohlávek | * **PyCharm**: Petr Bělohlávek |
| * **VS Code** (remote access, IDE): Peter Polák |
| |
===== Bash ===== | ===== Bash ===== |
| |
===== LaTeX, pdf ===== | ===== LaTeX, pdf ===== |
| * see also [[tex::triky]] |
* [[http://mg.readthedocs.io/latexmk.html|latexmk]] can be used with ''-pdf -pvc'', so whenever you save a ''tex'' file, the corresponding ''pdf'' will be regenerated (and your pdf viewer will refresh). Other useful options are ''-interaction=nonstopmode -synctex=1'', see e.g. [[https://tex.stackexchange.com/questions/118489/what-exactly-is-synctex|synctex]] | * [[http://mg.readthedocs.io/latexmk.html|latexmk]] can be used with ''-pdf -pvc'', so whenever you save a ''tex'' file, the corresponding ''pdf'' will be regenerated (and your pdf viewer will refresh). Other useful options are ''-interaction=nonstopmode -synctex=1'', see e.g. [[https://tex.stackexchange.com/questions/118489/what-exactly-is-synctex|synctex]] |
* [[https://www.pdflabs.com/docs/pdftk-cli-examples/|pdftk]] for merging and splitting pdf files (and much more) from the command line | * [[https://www.pdflabs.com/docs/pdftk-cli-examples/|pdftk]] for merging and splitting pdf files (and much more) from the command line |
* <code>gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=CompressedWithEmbeddedFonts.pdf Original.pdf</code> | * <code>gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=CompressedWithEmbeddedFonts.pdf Original.pdf</code> |
* http://ufal.mff.cuni.cz/~popel/latex.pdf other hints (mostly for newbies) in Czech | * http://ufal.mff.cuni.cz/~popel/latex.pdf other hints (mostly for newbies) in Czech |
| * [[https://en.wikibooks.org/wiki/LaTeX/Presentations#The_Beamer_package|Beamer]] is a LaTeX package for creating presentations. |
| * You can use it with [[https://pdfpc.github.io/|pdfpc]] to show slides on the overhead projector while reading your notes on your laptop's screen. Create the dual-screen PDF with ''\usepackage{pgfpages} \setbeameroption{show notes} \setbeameroption{show notes on second screen=left}'' and add notes using ''\note{Hello!}''. Then display your presentation with ''pdfpc --notes=left presentation.pdf''. |
| * If you need a pdf-a validator (e.g. for your thesis), you can use `/lnet/ms/projects/verapdf/checkpdf` in the ufal internal network, which is a wrapper for the verapdf tool. New versions of the specification of exact requirements for submitting theses at the Charles university (called a "profile") appear regularly at https://cuni.cz/UK-7987.html; by default, the tool uses version UK-7987-version1-custom8.xml . |
| |
| ===== TAR archive mounting ===== |
| If you work with data consisting of many small files, you **should** store them in tar archives to save inodes. There is a way to mount a tar archive to a specific directory in the simmilar way you mount ISO image. You can use the following wrapper script to //mount// (read-only) ARCHIVE to DIRECTORY: |
| |
| /opt/bin/tarmount -a ARCHIVE DIRECTORY |
| |
| and //umount// when you finish your work: |
| |
| /opt/bin/tarmount DIRECTORY |
| |
| You can also use the original tool called [[https://github.com/mxmlnkn/ratarmount | ratarmount]] directly through the link: |
| |
| /opt/bin/tarmounter |
| |
===== Other ===== | ===== Other ===== |