Skip to content

My dotfiles

License

Notifications You must be signed in to change notification settings

andrewferrier/dotfiles

Repository files navigation

Dotfiles - Master Cheatsheet

awk     | <https://github.com/learnbyexample/Command-line-text-processing/blob/master/gnu_awk.md>
bash/sh | ~/.config/bash.d/README.md
i3      | ~/.config/i3/config
kitty   | ~/.config/kitty/kitty.conf
lf      | ~/.config/lf/lfrc
mutt    | ~/.mutt/muttrc.common
neovim  | ~/.config/nvim/README.md
tmux    | ~/.config/tmux/tmux.conf
zsh     | ~/.config/zsh/README.md

MacOS

caffeinate -i <somecommand> | prevent system from sleeping whilst command is running
Ctrl-1/2/3                  | switch desktop
Cmd-Shift-.                 | toggle hidden file display in Finder
Option-Delete               | delete previous word

Firefox

Cmd-Opt-R   | reader view
Vimium keys | <https://github.com/philc/vimium#keyboard-bindings>

zathura (PDF viewer)

a | zoom out to page
r | rotate
s | zoom to page width

feh (image viewer)

/      | zoom out to show entire image
<up>   | zoom in
<down> | zoom out
<, >   | rotate

journalctl

journalctl --since=yesterday                 | output from beginning of yesterday
journalctl --since=-1week                    | output from 1 week ago
journalctl CONTAINER_NAME="docker_container" | output from docker container
journalctl --user -u xyz.service             | output from specific user service

Linux

Ctrl-Backspace                               | delete previous word
                                             |
badblocks -b 8192 -wsv /dev/device           | test device for bad blocks
blkdiscard --secure -v -f /dev/device        | Securely erase SSD
getent hosts <hostname>                      | look up DNS name
hardlink                                     | combine duplicate files using hardlinks
inotifywait -m -r ~/directory                | watch a directory for changes
sdparm --clear=STANDBY --save -S /dev/device | disable SCSI drive from going to sleep
lshw -short -sanitize                        | Summarize hardware for selling
parted mkpart primary ext4 0% 100%           | create a single partition
pdfunite                                     | combine PDFs on comand line
xxd                                          | Hex dump

Audio file manipulation

eyeD3 --add-image "cover.jpg:FRONT_COVER" test.mp3 | add image to MP3

General Configuration Help

* MacOS - <https://git.herrbischoff.com/awesome-macos-command-line/about/>