Contents Menu Expand
  • NLP and Machine Learning-related
    • Comparer Spacy, StanfordNLP et TreeTagger sur un corpus oral et un corpus de presse 🇫🇷
    • Classification de prénoms en genre (masculin/féminin) 🇫🇷
    • Text Classification: du TF-IDF aux word embeddings en passant par features expertes 🇫🇷
  • Transformers in NLP with PyTorch, TensorFlow and Hugging Face
    • 10 questions on Bert 🇬🇧
    • 10 questions sur Bert 🇫🇷
    • Classification de commentaires avec Camembert sans prise de tête : les fondamentaux 🇫🇷
  • Better Programmer
    • Mieux programmer en Python 🇫🇷
    • A serious guide to git 🇬🇧
    • Connect to remote jupyter notebook in Pycharm
    • Understand objected-oriented programming (OOP) by building a minimal Web Scraping framework 🇬🇧
    • Be a responsible programmer when doing Object-Oriented Programming 🇬🇧
  • Algorithms and data structures by examples in Python
    • Algorithm or many ways of solving a problem 🇬🇧
    • Algorithme ou plusieurs façons de résoudre un problème 🇫🇷
    • Data structures or many ways of organizing your stuff 🇬🇧
    • Roadmap and cheatsheet of algorithms and data structures
  • Web Related
    • Complete tutorial on scraping French news from Le Monde 🇬🇧
    • Scraper « le monde » et construire ton propre corpus 🇫🇷
    • On your way to scraping French forums 🇬🇧
    • Deploying Django app on Ubuntu at digitalocean + SSL certificate 🇬🇧
  • Computational Linguistics in R
    • La loi de Zipf illustrée avec gutenbergr en R 🇫🇷
    • Analyse des Correspondances Multiples : le cas de l’ergatif en warlipiri 🇫🇷
    • Analyse en composantes principales (PCA) : prépositions d’inclusion en français 🇫🇷
  • High performance computing
    • Parallelization in Python: a beginner’s guide (1, using map)
  • My Codebase
    • My codebase for bash/shell script (macOS)
    • Tumux-related code
    • My python codebase (including packages/libraries)
    • Pytorch
    • Pandas codebase
  • Mathematics in Machine Learning and NLP
    • Machine Learning : algorithmes et mathématiques 🇫🇷
    • Machine Learning : algorithmes et mathématiques 🇫🇷

Tumux-related code¶

If you check my bash codebase, you’ll see that it’s possible to run a task/process in background with nohup and in the comment i said or use tumux.

nohup commande # nonstop after disconnection/or use tumux

So why using tumux?¶

Well put simply, it makes your life easier.

Detaching¶

Tmux keeps all the windows and panes in a session. You can exit a session at any point. This is called “detaching”. The wonderful part is that Tmux will keep this session alive until you kill the tmux server (e.g. when you reboot) so that at any later point in time you can pick that session up exactly from where you left it by simply “attaching” to that session.

Those who have done web development/remote scripting/ssh will see what I mean.

My Code base¶

c = ctrl

tmux # start
c-b % # horizontal split
c-b arrow # move between panes
tmux kill-session -t kocijan # kill a session named kocijan
tmux ls # see running sessions
c-b x # kill session when on live, use c-d works too
tmux attach -t 0 # attach a detached window
tmux attach -t kocijan # attach a session named kocijan
tmux new -s kocijan # start a session named kocijan
tmux rename-session -t 0 database # rename the session
C-b d # detach a session

Reference¶

https://www.hamvocke.com/blog/a-quick-and-easy-guide-to-tmux/

Next
My python codebase (including packages/libraries)
Previous
My codebase for bash/shell script (macOS)
Copyright © 2022, Xiaoou Wang | Built with Sphinx and @pradyunsg's Furo theme. | Show Source
Contents
  • Tumux-related code
    • So why using tumux?
    • Detaching
    • My Code base
    • Reference