Skip to content

Latest commit

 

History

History
287 lines (229 loc) · 7.95 KB

README.org

File metadata and controls

287 lines (229 loc) · 7.95 KB

Applications

Emacs

Editor

Movement

KeyFunction
h/lmove char left/right
j/kmove line down/up
g j/kmove visual line down/up
w/bmove next/prev beg of word
e/gemove next/prev end of word
W/B/E/gEmove next/prev beg/end whitespace only word

Table

KeyFunction
¦ a ¦ b Tabcreate table
¦- Tabinsert hrule
Tab/S-Tabnext/prev cell + align
Spc m b i r/cinsert row/column
Spc m b d r/cdelete row/column
M-h/lmove column left/right
M-j/kmove row down/up

Inkscape

Document

KeyFunction
C-S-pInkscape preferences
C-S-ddocument preferences
C-z/C-S-zundo/redo
C-M-kspellcheck document
C-S-ssafe as PDF
C-S-eexport as PNG

Group, clone, duplicate

KeyFunction
C-dduplicate selection
C-g/C-S-ggroup/ungroup selection
M-dclone object
S-M-dunlink clone
S-dselect clone origin

Zoom

KeyFunction
C-wheel/+/-zoom in/out
5fit page
6fit width
4fit drawing
3fit selection
1temporary zoom selection
`/S-`prev/next zoom

Canvas

KeyFunction
wheel/S-wheel/C-arrowsvert/horiz scroll
Spc-movearbitrary move
C-S-wheelrotate canvas
C-5cycle outline modes
ftemporary clean view
S-F11toggle tool bars
F12toggle dialogs

Guides, grids

KeyFunction
%toggle snapping
#toggle grid
¦toggle guides
Ruler-dragcreate guide
S-dragrotate guide
C-S-dragrotate guide snap angle
Deldelete guide

Z-order, layers

KeyFunction
Homeraise selection to top
PgUpraise selection
PgDwlower selection
Endlower selection to bottom

Fill, stroke

KeyFunction
clickfill from palette
S-clickstroke from palette
M-dragtemporary ungesture
C-dragadjust lightness/intensity
S-dragadjust saturation/shade
C-c/C-S-vcopy/paste object style

Select s

KeyFunction
Spctemporary switch to select
clickselect object
S-clicktoggle selection
C-clickselect in group
M-clickselect under
dragrubberband selection
S-dragadd to rubberband selection
M-dragtouch selection
S-M-dragadd to touch selection
Tab/S-Tabselect next/prev object
S-scycle scale/rotate/align

Move s

KeyFunction
drag/arrowsmove selection
S/M-arrowscoarse/fine grained move
S-dragmove without snapping
C-draghoriz/vert move

Scale s

KeyFunction
C-dragaspect ratio scale
S-drag/</>symmetric scale
C/M-</>coarse/fine grained scale

Rotate, flip s

KeyFunction
C-dragsnap angle rotate
S-dragopposite corner rotate
M-[/]fine grained rotate
h/vhoriz/vert flip

Text t

KeyFunction

Bezier b

KeyFunction

Node n

KeyFunction
S-rreverse path

Rectangle r

KeyFunction

Ellipse e

KeyFunction

Environments

Docker

Install and configure Docker

yay -S docker docker-compose docker-buildx
sudo groupadd docker
sudo usermod -G docker -a $USER
newgrp docker
sudo systemctl enable docker.service
sudo systemctl start docker.service

Network management

docker network create $net
docker network ls
docker network rm --force $net
docker container run --network $net --network-alias $cnt $img

Image management

docker buildx build --tag user/image:tag --target stage .
docker image ls --all [image[:tag]]
docker image rm --force $img
# space for images, build cache, local volumes and container writable layers
docker system df
# remove all stopped containers, unused networks, dangling images, unused cache
docker system prune

Container management

docker container run --name $cnt --hostname $cnt --rm $img \
  [cmd args...] [bash -c 'cmd ...']
docker container run --interactive --tty $img
docker container run --env VAR=val $img
docker container run --detach --publish $hostport:$cntport $img
docker container ls --all
docker container stop $cnt
docker container rm --force $cnt # stop then remove

Execute a command inside a container

docker container top/stats/logs --follow $cnt
docker container cp hostfile $cnt:/path # even from stopped
docker container exec $cnt ls/cat/rm /path # only on running
docker container exec -it $cnt bash # interactive

Volume and mount management

docker volume create $vol
docker volume ls
docker volume rm --force $vol
docker container run --volume $vol:/cntpath $img
docker container run --name $cnt --rm \
  --mount type=volume,source=$vol,target=/cntpath,readonly $img
docker container run --name $cnt --rm \
  --mount type=bind,source=(pwd)/hostpath,target=/cntpath,readonly $img

Docker compose

docker-compose config # validate merged YAML config
docker-compose --file compose.yaml up [--detach]
docker-compose up --build --scale $srv=N # creates new containers
docker-compose ps
docker-compose logs --follow [$srv]
docker-compose start/stop # existing containers
docker-compose down [$srv] # removes containers

rclone

# configure remote
rclone config
# list remote files/directories
rclone ls/lsl/lsd/tree remote:path
# show remote object size
rclone size remote:path
# show remote quota
rclone about remote:
# generate a public link to a file
rclone link remote:path
# copy files
rclone copy --progress remote:path ~/local
rclone copy --progress ~/local remote:path
# delete files
rclone --dry-run delete remote:path
# operate remote with TUI
rclone ncdu remote: