(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
import os | |
import time | |
import subprocess | |
while True: | |
output = subprocess.check_output(['istats', 'cpu']) | |
output1 = subprocess.check_output(['istats', 'fan']) | |
output2 = subprocess.check_output(['istats', 'battery']) | |
new_output = '\n\n\n' + str(output.decode('utf-8')) + '\n' + str(output1.decode('utf-8')) + '\n' + str(output2.decode('utf-8')) | |
print(new_output.replace('For more stats run `istats extra` and follow the instructions.', '')) |
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
This file remaps the key bindings of a single user on Mac OS X 10.5 to more closely | |
match default behavior on Windows systems. | |
You must log out and back in to see these changes. | |
Here is a rough cheatsheet for syntax. | |
Key Modifiers | |
^ : Ctrl | |
$ : Shift |
zfs list -r -H -t snapshot -o name stream/lxc/stash | xargs -n1 zfs destroy |
[Interface] | |
PrivateKey = *********************** | |
Address = 192.168.10.2/32, fc::2/128 | |
DNS = 1.1.1.1, 2606:4700:4700::1111 | |
[Peer] | |
PublicKey = *********************** | |
AllowedIPs = 0.0.0.0/0, ::/0 | |
Endpoint = endpoint.domain.tld:51820 |
# Start with the setup normally, then select "Shell" at the partitioning step. | |
# Check device names | |
camcontrol devlist | |
# Create a gpt and a bootstrap partition | |
gpart destroy -F ada0 | |
gpart create -s gpt ada0 | |
gpart add -a 4k -t freebsd-boot -s 64k ada0 | |
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0 |
NOTE: All commands that start with tmux
can be executed within a tmux session by typing prefix
, followed by :
, then type the rest of the command (after tmux
).
There is a binary script called tat
that can be run and it will create a new session named after the directory that you are currently in. If a session with that name already exists, it will just open that session.
Command | Description |
---|---|
tmux new -s [session name] | Start new named session |
prefix s | Choose a different session using fzf (custom mapping) |