start new:
tmux
start new with session name:
tmux new -s myname
| # change prefix to Ctrl-a (like in gnu-screen) | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| # shell | |
| set -g default-command /bin/zsh | |
| set -g default-shell /bin/zsh |
| # List all functions and packages used by R scripts in a project. | |
| library(NCmisc) | |
| # IMPORTANT: Also load any libraries used by the project | |
| # Make list of all functions by package | |
| funcs <- | |
| list.files(here::here(), pattern ="\\.R$", recursive = TRUE, full.names = TRUE) %>% | |
| map(list.functions.in.file) %>% | |
| flatten |
https://github.com/doomemacs/doomemacs/blob/master/docs/getting_started.org#with-homebrew
I use emacs-plus because of the emacs-mac issues with emacsclient. See this issue: railwaycat/homebrew-emacsmacport#52
| ### MATPLOTLIBRC FORMAT | |
| # This is a sample matplotlib configuration file - you can find a copy | |
| # of it on your system in | |
| # site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
| # there, please note that it will be overwritten in your next install. | |
| # If you want to keep a permanent local copy that will not be | |
| # overwritten, place it in the following location: | |
| # unix/linux: | |
| # $HOME/.config/matplotlib/matplotlibrc or |
| # from terminal to clipboard | |
| echo "hello world" > /dev/clipboard | |
| pass show personal/loom |head -n 1 > /dev/clipboard | |
| # from clipboard to terminal | |
| cat /dev/clipboard > save.txt |
| #### | |
| # Specify the OS you want to run the Docker container in | |
| # For the latest version of Ubuntu, use: | |
| # FROM ubuntu:latest | |
| # Learn more about this Ubuntu image, and versions (tags): | |
| # https://hub.docker.com/_/ubuntu | |
| #### | |
| FROM ubuntu:22.04 | |
| ##### |
A complete guide with examples, time customization, and process management
Sometimes you need to automate a task on a Linux server — but crontab isn’t available. This is common on restricted systems, containers, or environments where cron is not installed or disabled.
With a simple Bash loop, you can create your own lightweight scheduler that behaves similarly to cron.
This guide covers: