A Tutorial for Tmux Beginners

A Tutorial for Tmux Beginners

Tmux is a very productive and versatile terminal multiplexer released in 2007. Its design stems from GNU Screen, the prototypical terminal multiplexer first released in 1987.

Why Tmux?

A typical application of Tmux is remote work. Imagine that you ssh to your office machine and open a remote terminal to run programs. The SSH connection is suddenly broken for some reasons, e.g. poor signal, power cut, etc. As a result, all running processes are lost as the terminal session is closed.

Read more

FFmpeg Reference Sheets

Convert a video from MOV to mp4:
ffmpeg -i input.mov -qscale 0 output.mp4

Trim a video in seconds:
ffmpeg -ss 00:01:00 -to 00:02:00 -i input.mp4 -c copy output.mp4

Options:

  • -i: This specifies the input file. In that case, it is (input.mp4).
  • -ss: Used with -i, this seeks in the input file (input.mp4) to position.
  • 00:01:00: This is the time your trimmed video will start with. The timing format is: hh:mm:ss
  • -to: This specifies duration from start (00:01:40) to end (00:02:12).
  • 00:02:00: This is the time your trimmed video will end with.
  • -c copy: This is an option to trim via stream copy. (NB: Very fast)
Read more

Docker Cheat Sheet

To run a Docker container to support a development workflow, we will do the following:

  • Mount our source code into the container
  • Install all dependencies, including the “dev” dependencies
  • Start nodemon to watch for filesystem changes
Read more

Aide-mémoire pour GNU Emacs

Cette page est un (non exhaustive & usage personnel) aide-mémoire sur les raccourcis de GNU Emacs. Mais ce serait super si cela pouvait aider quelqu’un d’autre.

Read more