User:Int 80h/commands

= Useful Commands (and their options and switches) = Actually good copying without huge suckage! Useful for copying between shares on the same mount tree. Sensible LaTeX compiling. Create a sensible port forwarding to a host, that's sitting behind a firewall, where SSH is the only way to get access to.  is the ports on the machine you're SSH-ing from.  is the port on the that we're trying to forward to. Make X forwarding work, even when the Admins are idiots. Useful and grep-able netstat output. Very high compression if you want to feel really special. mplayer with embedded subtitle fonts, and everything... Convert a PDF to PNG. Create standard data CD ISO. Optional. Quickly make an empty file. Optional. Create a swap file on btrfs Convert uncompressed video using h.265 (HEVC). selects quality, goes from 0 (highest) to 51. has various settings, file becomes smaller, the slower the process. Print all attached audio devices to pulseaudio. Load module to playback input straight through to an output device. Set Menu key to be compose, no matter the keyboard mapping. Set keyboard mapping to US-AltGr-Intl with a Compose key. Set keyboard mapping to US-AltGr-Intl with a Compose key and make Backspace a lot less useless. Numpad always sends numbers, regardless of Numlock. Opens up the Numlock Key to be a different key alltogether for instance KP_Equals. Rotates a video by altering meta data. This doesn't work universally, but it beats recoding the video. Plays all the videos in a youtube channel in a tiny window, perfect for "Podcasts" which aren't really podcasts. Also good for channels filled with music. Efficiently pack binary data into 7-Zip archives, including already compressed stuff, like MP3s or JPEGs. Sort whatever command output by length. Useful for  and whatnot. Create a zero-length (zero samples) FLAC file. Serves nicely as placeholders and as containers for metadata, channel and bitstream configuration, etc.

Network monitoring
(WIP) ,,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,

Pandoc
Pretty much basic and general setup. Assumes additional setup in header files. KaTeX has to be set up via tailored header files. Local MathJax installation.

Compiler stuff
run  for something that needs local libs. Also works for

Windows
make CapsLock be Escape. Good for Vim and such. Add Consolas as general purpose font for the Console.

Fonts
This makes PCF fonts available in X. A  can be placed in the directory for font name aliases. Re-read fontconfig directories.

XFCE autostart
''When starting applications automatically on logon (Settings > Session and Startup > Application Autostart), XFCE seems to be rather picky about a few things. Here are the workarounds and bodges.'' this applies custom  settings after logging in, gracefully. Otherwise XFCE does whatever it feels like with this...

Video Modes
If a video mode for whatever output isn't available, it can be added in-situ.
 * This will display a Modeline, which has to be used with xrandr. Anything else after "Modeline" in the output, is the actual Modeline, with whatever is in quotes, is the Name, and can be freely changed.
 *  refers to the cvt output above, anything except the first word "Modeline".  refers to the name given to the Mode, usually what has been used in quotes for --newmode .

Check Linux distro version
(WIP) ,,  ,  ,  ,  ,  ,

List all packages by size
(WIP) rpm -qa --queryformat '%10{size} - %-25{name} \t %{version}\n' | sort -n

Get hardware details
(WIP) ,,  ,  ,  ,  ,  ,

Rsync to somewhere using SSH with symlink dereferencing
(WIP) the  option dereferences links,   option optional