Fix : Refactor Gnome RDP a bit.
This commit is contained in:
parent
8d8b0013ca
commit
51eb7a6092
|
@ -24,13 +24,13 @@ function fix_gradle_lock() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Fix Gnome's broken RDP ffs.
|
# Fix Gnome's broken RDP ffs.
|
||||||
# Usage: fix_gnome_rdp <USER> <PASSWORD>
|
# Usage: fix_gnome_rdp <PASSWORD>
|
||||||
function fix_gnome_rdp() {
|
function fix_gnome_rdp() {
|
||||||
local user="${1}"
|
local user="${USERNAME}"
|
||||||
local password="${2}"
|
local password="${1}"
|
||||||
|
|
||||||
# Check params.
|
# Check params.
|
||||||
if [[ "${user}" = "" ]] || [[ "${password}" = "" ]]; then
|
if [[ "${password}" = "" ]]; then
|
||||||
help fix_gnome_rdp
|
help fix_gnome_rdp
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
|
@ -43,12 +43,12 @@ function fix_gnome_rdp() {
|
||||||
cd /tmp
|
cd /tmp
|
||||||
openssl genrsa -out rdp-tls.key 4096
|
openssl genrsa -out rdp-tls.key 4096
|
||||||
openssl req -new -key rdp-tls.key -subj "/C=US" | openssl x509 -req -days 730 -signkey rdp-tls.key -out rdp-tls.crt
|
openssl req -new -key rdp-tls.key -subj "/C=US" | openssl x509 -req -days 730 -signkey rdp-tls.key -out rdp-tls.crt
|
||||||
mkdir -p /home/"${user}"/.local/share/gnome-remote-desktop/
|
mkdir -p "${HOME}/.local/share/gnome-remote-desktop/"
|
||||||
mv rdp-tls.key rdp-tls.crt /home/"${user}"/.local/share/gnome-remote-desktop/
|
mv rdp-tls.key rdp-tls.crt "${HOME}/.local/share/gnome-remote-desktop/"
|
||||||
|
|
||||||
# Configure RDP.
|
# Configure RDP.
|
||||||
grdctl rdp set-tls-cert /home/"${user}"/.local/share/gnome-remote-desktop/rdp-tls.crt
|
grdctl rdp set-tls-cert "${HOME}/.local/share/gnome-remote-desktop/rdp-tls.crt"
|
||||||
grdctl rdp set-tls-key /home/"${user}"/.local/share/gnome-remote-desktop/rdp-tls.key
|
grdctl rdp set-tls-key "${HOME}/.local/share/gnome-remote-desktop/rdp-tls.key"
|
||||||
grdctl rdp set-credentials "${user}" "${password}"
|
grdctl rdp set-credentials "${user}" "${password}"
|
||||||
grdctl rdp disable-view-only
|
grdctl rdp disable-view-only
|
||||||
|
|
||||||
|
|
348
.doc/Bash.md
348
.doc/Bash.md
|
@ -14,413 +14,413 @@ $ h <COMMAND>
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`emulator [NAME]`|Start an Android emulator. Default name is `main`.
|
`emulator [NAME]`|Start an Android emulator. Default name is `main`.
|
||||||
|
|
||||||
## Archive.
|
## Archive.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`archive [DIRS]`|Archive directories. All directories by default. Supports .archiveignore exclude file.
|
`archive [DIRS]`|Archive directories. All directories by default. Supports .archiveignore exclude file.
|
||||||
`archive_mt [DIRS]`|Archive using multiple threads. Uses 75% of free RAM. All directories by default. Supports .archiveignore exclude file.
|
`archive_mt [DIRS]`|Archive using multiple threads. Uses 75% of free RAM. All directories by default. Supports .archiveignore exclude file.
|
||||||
`archive_fast [DIRS]`|Archive directories with fast compression. All directories by default. Supports .archiveignore exclude file.
|
`archive_fast [DIRS]`|Archive directories with fast compression. All directories by default. Supports .archiveignore exclude file.
|
||||||
`archive_check [FILES]`|Check archives integrity. Checks all archives by default.
|
`archive_check [FILES]`|Check archives integrity. Checks all archives by default.
|
||||||
`archive_prune [NAME] [VERSIONS]`|Delete old versions of an archive. All archives with 1 version by default.
|
`archive_prune [NAME] [VERSIONS]`|Delete old versions of an archive. All archives with 1 version by default.
|
||||||
`archive_rm [FILES]`|Delete specified or all archive files.
|
`archive_rm [FILES]`|Delete specified or all archive files.
|
||||||
`archive_xz [FILES]`|Recompress previously created archive_fast with better compression.
|
`archive_xz [FILES]`|Recompress previously created archive_fast with better compression.
|
||||||
`archive_name [ARCHIVE] [NAME]`|Rename archives. If no name specified, it simplifies archive's name. If no archives specified, apply to all archives.
|
`archive_name [ARCHIVE] [NAME]`|Rename archives. If no name specified, it simplifies archive's name. If no archives specified, apply to all archives.
|
||||||
`unarchive [FILES]`|Extract previously created archive with checksum validation.
|
`unarchive [FILES]`|Extract previously created archive with checksum validation.
|
||||||
|
|
||||||
## Battery.
|
## Battery.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`battery_level`|Print current battery level.
|
`battery_level`| Print current battery level.
|
||||||
|
|
||||||
## Bootstrap.
|
## Bootstrap.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`bootstrap_rust`|Install Cargo/Rust.
|
`bootstrap_rust`| Install Cargo/Rust.
|
||||||
`bootstrap_texlive`|Install TeXLive.
|
`bootstrap_texlive`| Install TeXLive.
|
||||||
`bootstrap_grub`|Install grub theme.
|
`bootstrap_grub`| Install grub theme.
|
||||||
`bootstrap_ffmpeg`|Install ffmpeg.
|
`bootstrap_ffmpeg`| Install ffmpeg.
|
||||||
`bootstrap_editorconfig`|Install Editorconfig file (with tabs) in current directory.
|
`bootstrap_editorconfig`| Install Editorconfig file (with tabs) in current directory.
|
||||||
`bootstrap_editorconfig_space [AMOUNT]`|Install Editorconfig file (with specified spaces, 8 by default) in current directory.
|
`bootstrap_editorconfig_space [AMOUNT]`|Install Editorconfig file (with specified spaces, 8 by default) in current directory.
|
||||||
`bootstrap_flatpak`|Setup all the flatpak apps on the machine.
|
`bootstrap_flatpak`| Setup all the flatpak apps on the machine.
|
||||||
|
|
||||||
## Cd.
|
## Cd.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`cdd <DIR>`|CD (back to) directory. Goes to the exact-match dir first. If no exact match found, it finds first directory that contains the input (case-insensitive).
|
`cdd <DIR>`|CD (back to) directory. Goes to the exact-match dir first. If no exact match found, it finds first directory that contains the input (case-insensitive).
|
||||||
|
|
||||||
## Checksum.
|
## Checksum.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`checksum_create [FILES]`|Save file checksums. For file with a name `file` it will create a new file called `.file.sha1` with hash in it. All files by default.
|
`checksum_create [FILES]`|Save file checksums. For file with a name `file` it will create a new file called `.file.sha1` with hash in it. All files by default.
|
||||||
`checksum_check [FILES]`|Check stored values against actual files. All files by default.
|
`checksum_check [FILES]`|Check stored values against actual files. All files by default.
|
||||||
`checksum`|Calculate hashes for all files recursively and store in a file called `checksum.sha1`.
|
`checksum`| Calculate hashes for all files recursively and store in a file called `checksum.sha1`.
|
||||||
|
|
||||||
## Chmod.
|
## Chmod.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`x <FILES>`|Add executable flag to file.
|
`x <FILES>`|Add executable flag to file.
|
||||||
|
|
||||||
## Color.
|
## Color.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`color_test`|Print all available colors with their names colored in corresponding color.
|
`color_test`| Print all available colors with their names colored in corresponding color.
|
||||||
|
|
||||||
## Container.
|
## Container.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`ca [NAME]`|Attach/create container box in current directory with specified name. By default uses current dir name.
|
`ca [NAME]`|Attach/create container box in current directory with specified name. By default uses current dir name.
|
||||||
`ck [NAME]`|Remove container box with specified name. By default uses current dir name.
|
`ck [NAME]`|Remove container box with specified name. By default uses current dir name.
|
||||||
`cka`|Remove all container boxes.
|
`cka`| Remove all container boxes.
|
||||||
`cl`|List all container boxes.
|
`cl`| List all container boxes.
|
||||||
|
|
||||||
## Copypaste.
|
## Copypaste.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`copy`|Copy stdin to system clipboard. *Example:* `echo hi \| copy`.
|
`copy`| Copy stdin to system clipboard. *Example:* `echo hi \| copy`.
|
||||||
`paste`|Paste system clipboard to stdout. *Example:* `paste > file.txt`.
|
`paste`| Paste system clipboard to stdout. *Example:* `paste > file.txt`.
|
||||||
|
|
||||||
## Cp.
|
## Cp.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`rcp <FROM> <TO>`|Replaces default cp with rsync.
|
`rcp <FROM> <TO>`|Replaces default cp with rsync.
|
||||||
`rcp_merge <FROM> <TO>`|Copy and also merge all changes (delete dst files that do not exist in src).
|
`rcp_merge <FROM> <TO>`|Copy and also merge all changes (delete dst files that do not exist in src).
|
||||||
`cp_link <FROM> <TO>`|Copy by creating hardlinks. Works for directories, too.
|
`cp_link <FROM> <TO>`|Copy by creating hardlinks. Works for directories, too.
|
||||||
`rcp_test <FROM> <TO>`|Print output of cp_merge without writing anything.
|
`rcp_test <FROM> <TO>`|Print output of cp_merge without writing anything.
|
||||||
|
|
||||||
## Date.
|
## Date.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`today`|Print today date in yyyyMMdd format.
|
`today`| Print today date in yyyyMMdd format.
|
||||||
`dow`|Current day of week number.
|
`dow`| Current day of week number.
|
||||||
|
|
||||||
## Dconf.
|
## Dconf.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`dconf_load`|Load Gnome settings.
|
`dconf_load`| Load Gnome settings.
|
||||||
`dconf_save [FILE]`|Dump Gnome settings into the file. Default name is `gnome.dconf`. Do this before changing settings and after, an then run `diff` to find out what to add to the main `gnome.dconf`.
|
`dconf_save [FILE]`|Dump Gnome settings into the file. Default name is `gnome.dconf`. Do this before changing settings and after, an then run `diff` to find out what to add to the main `gnome.dconf`.
|
||||||
|
|
||||||
## Disk.
|
## Disk.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`pdf`|Show only physical drives info.
|
`pdf`| Show only physical drives info.
|
||||||
`tdu [DIRS]`|Show total size in SI. Current dir by default.
|
`tdu [DIRS]`|Show total size in SI. Current dir by default.
|
||||||
|
|
||||||
## Docker.
|
## Docker.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`docker_volumes <CONTAINER>`|Show container's volumes.
|
`docker_volumes <CONTAINER>`|Show container's volumes.
|
||||||
`docker_health`|Check if any container exited.
|
`docker_health`| Check if any container exited.
|
||||||
`docker_ip <CONTAINER>`|Find out container's IP address.
|
`docker_ip <CONTAINER>`|Find out container's IP address.
|
||||||
`docker_update`|Update all docker images.
|
`docker_update`| Update all docker images.
|
||||||
`docker_prune`|Prune everything.
|
`docker_prune`| Prune everything.
|
||||||
`dc`|Docker compose shortcut.
|
`dc`| Docker compose shortcut.
|
||||||
`dcu [SERVICES]`|Docker compose up.
|
`dcu [SERVICES]`|Docker compose up.
|
||||||
`dcd [SERVICES]`|Docker compose down.
|
`dcd [SERVICES]`|Docker compose down.
|
||||||
`dcp [SERVICES]`|Docker compose pull.
|
`dcp [SERVICES]`|Docker compose pull.
|
||||||
`dcl [SERVICES]`|Docker compose logs.
|
`dcl [SERVICES]`|Docker compose logs.
|
||||||
`dcr [SERVICES]`|Docker compose restart.
|
`dcr [SERVICES]`|Docker compose restart.
|
||||||
`dcs [SERVICES]`|Docker compose stop.
|
`dcs [SERVICES]`|Docker compose stop.
|
||||||
`dcdu [SERVICES]`|Docker compose down & up specified services.
|
`dcdu [SERVICES]`|Docker compose down & up specified services.
|
||||||
`dcpu [SERVICES]`|Docker compose pull & up specified services.
|
`dcpu [SERVICES]`|Docker compose pull & up specified services.
|
||||||
`dcul [SERVICES]`|Docker compose up & attach to logs for specified services.
|
`dcul [SERVICES]`|Docker compose up & attach to logs for specified services.
|
||||||
|
|
||||||
## Doc.
|
## Doc.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`doc_bash`|Generate a markdown file with all the help info. Outputs to `~/.doc/Bash.md`.
|
`doc_bash`|Generate a markdown file with all the help info. Outputs to `~/.doc/Bash.md`.
|
||||||
|
|
||||||
## Export.
|
## Export.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`export_java [VERSION]`|Set java version. Sets to latest when not specified.
|
`export_java [VERSION]`|Set java version. Sets to latest when not specified.
|
||||||
|
|
||||||
## Ffmpeg.
|
## Ffmpeg.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`ffmpeg_mux_audio <SOUND> <OUTPUT DIR>`|Mux audio into containers. File names in sound and current dirrectories must match.
|
`ffmpeg_mux_audio <SOUND> <OUTPUT DIR>`|Mux audio into containers. File names in sound and current dirrectories must match.
|
||||||
`ffmpeg_mux_cover <FORMAT> <COVER>`|Mux cover into music file.
|
`ffmpeg_mux_cover <FORMAT> <COVER>`|Mux cover into music file.
|
||||||
`ffmpeg_music_meta <FORMAT>`|Generate music metadata from directory structure. Top dir is the Artist name like this: `The_Beatles`. Next are albums like this: `2010_My_love`. Inside are songs like this: `01_sample.flac`.
|
`ffmpeg_music_meta <FORMAT>`|Generate music metadata from directory structure. Top dir is the Artist name like this: `The_Beatles`. Next are albums like this: `2010_My_love`. Inside are songs like this: `01_sample.flac`.
|
||||||
|
|
||||||
## File.
|
## File.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`o <FILE>`|Open file/dir in GUI.
|
`o <FILE>`|Open file/dir in GUI.
|
||||||
`play [FILE]`|Play media file from CLI. All files by default.
|
`play [FILE]`|Play media file from CLI. All files by default.
|
||||||
|
|
||||||
## Find.
|
## Find.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`find_ext`|Find all file extensions.
|
`find_ext`| Find all file extensions.
|
||||||
`find_module`|Find all modules.
|
`find_module`| Find all modules.
|
||||||
`find_function [MODULE]`|Find all module functions. Functions from all modules by default.
|
`find_function [MODULE]`|Find all module functions. Functions from all modules by default.
|
||||||
|
|
||||||
## Fix.
|
## Fix.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`fix_ethernet_speed <DEVICE> <SPEED>`|Fix when ethernet mistakenly detects 100 Mb instead of 1000 Mb. SPEED is one of 10/100/1000 etc.
|
`fix_ethernet_speed <DEVICE> <SPEED>`|Fix when ethernet mistakenly detects 100 Mb instead of 1000 Mb. SPEED is one of 10/100/1000 etc.
|
||||||
`fix_files_sftp`|Fix nautilus after typing wrong sftp password.
|
`fix_files_sftp`| Fix nautilus after typing wrong sftp password.
|
||||||
`fix_gradle_lock`|Delete lost Gradle lock files.
|
`fix_gradle_lock`| Delete lost Gradle lock files.
|
||||||
`fix_gnome_rdp`|Fix Gnome's broken RDP ffs.
|
`fix_gnome_rdp <PASSWORD>`|Fix Gnome's broken RDP ffs.
|
||||||
|
|
||||||
## Git.
|
## Git.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`gps`|Git push.
|
`gps`| Git push.
|
||||||
`gpsa`|Git push all (branches). Useful for pushing all stuff to a new remote.
|
`gpsa`| Git push all (branches). Useful for pushing all stuff to a new remote.
|
||||||
`gpsf`|Git force push.
|
`gpsf`| Git force push.
|
||||||
`gpl`|Git pull.
|
`gpl`| Git pull.
|
||||||
`gl`|Git log.
|
`gl`| Git log.
|
||||||
`gs`|Git status.
|
`gs`| Git status.
|
||||||
`gst`|Git stash.
|
`gst`| Git stash.
|
||||||
`gd`|Git diff.
|
`gd`| Git diff.
|
||||||
`gc`|Git commit.
|
`gc`| Git commit.
|
||||||
`gch`|Git checkout.
|
`gch`| Git checkout.
|
||||||
`gchb <BRANCH>`|Git checkout branch.
|
`gchb <BRANCH>`|Git checkout branch.
|
||||||
`gb`|Git branch.
|
`gb`| Git branch.
|
||||||
`gbd <BRANCH>`|Git branch delete.
|
`gbd <BRANCH>`|Git branch delete.
|
||||||
`gbda`|Git branch delete all except current.
|
`gbda`| Git branch delete all except current.
|
||||||
`gf`|Git fetch all.
|
`gf`| Git fetch all.
|
||||||
`gt`|Git tag.
|
`gt`| Git tag.
|
||||||
`gi`|Git ignore files.
|
`gi`| Git ignore files.
|
||||||
`gpc <FILE>`|Git patch create.
|
`gpc <FILE>`|Git patch create.
|
||||||
`gp <FILE>`|Git patch (apply).
|
`gp <FILE>`|Git patch (apply).
|
||||||
`ggc`|Run git garbage collection.
|
`ggc`| Run git garbage collection.
|
||||||
`ga [FILES]`|Preview diff while adding. Adds current dir by default.
|
`ga [FILES]`|Preview diff while adding. Adds current dir by default.
|
||||||
`gr [COMMIT COUNT]`|Rebase by X commits or from root. When COUNT is 0 - rebase from root. Default is 2.
|
`gr [COMMIT COUNT]`|Rebase by X commits or from root. When COUNT is 0 - rebase from root. Default is 2.
|
||||||
`gu [EMAIL]`|Specify git user as Dmitry Voronin with provided email.
|
`gu [EMAIL]`|Specify git user as Dmitry Voronin with provided email.
|
||||||
`gg <REPO>`|Get my git repo.
|
`gg <REPO>`|Get my git repo.
|
||||||
`gdc <COMMITHASH>`|See diff for a specific commit.
|
`gdc <COMMITHASH>`|See diff for a specific commit.
|
||||||
|
|
||||||
## Group.
|
## Group.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`group_ext [FILES]`|Group files by extension.
|
`group_ext [FILES]`|Group files by extension.
|
||||||
`group_year [FILES]`|Group files and dirs by year.
|
`group_year [FILES]`|Group files and dirs by year.
|
||||||
`group_year_current`|Copy files from current year to the named dir.
|
`group_year_current`| Copy files from current year to the named dir.
|
||||||
|
|
||||||
## Help.
|
## Help.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`help <FUNCTION>`|Get help about dotfiles bash function.
|
`help <FUNCTION>`|Get help about dotfiles bash function.
|
||||||
`h <FUNCTION>`|Short for help.
|
`h <FUNCTION>`|Short for help.
|
||||||
|
|
||||||
## Ls.
|
## Ls.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`l [DIRS]`|List files in dirs. Current dir by default.
|
`l [DIRS]`|List files in dirs. Current dir by default.
|
||||||
`ll [DIRS]`|List last modified files first. Current dir by default.
|
`ll [DIRS]`|List last modified files first. Current dir by default.
|
||||||
`lll [DEPTH] [DIRS]`|List files in tree structure. Current dir by default. Depth can be omitted by passing `-` (dash).
|
`lll [DEPTH] [DIRS]`|List files in tree structure. Current dir by default. Depth can be omitted by passing `-` (dash).
|
||||||
`llll [DIRS]`|List files recursively. Current dir by default.
|
`llll [DIRS]`|List files recursively. Current dir by default.
|
||||||
`la [DIRS]`|List all files in dirs, incl. hidden files. Current dir by default.
|
`la [DIRS]`|List all files in dirs, incl. hidden files. Current dir by default.
|
||||||
`lla [DIRS]`|List all files in dirs, incl. hidden files, sorted by mtime. Current dir by default.
|
`lla [DIRS]`|List all files in dirs, incl. hidden files, sorted by mtime. Current dir by default.
|
||||||
|
|
||||||
## Markdown.
|
## Markdown.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`markdown_render <FILE.md>`|Render markdown in browser using Gitea API. Because I want consistency with Gitea web render. Works only inside LAN.
|
`markdown_render <FILE.md>`|Render markdown in browser using Gitea API. Because I want consistency with Gitea web render. Works only inside LAN.
|
||||||
|
|
||||||
## Name.
|
## Name.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`name [FILES]`|Rename dirs to `snake_case` and files to `PascalCase`. Careful with structured file names like archives!
|
`name [FILES]`|Rename dirs to `snake_case` and files to `PascalCase`. Careful with structured file names like archives!
|
||||||
`name_parse <PARSER> [FILES]`|Rename files with provided parser, i.e. `parse_simple`. All files by default.
|
`name_parse <PARSER> [FILES]`|Rename files with provided parser, i.e. `parse_simple`. All files by default.
|
||||||
`name_hash [FILES]`|Rename all files to their hashes while keeping extensions. All files by default.
|
`name_hash [FILES]`|Rename all files to their hashes while keeping extensions. All files by default.
|
||||||
`name_hash_check [FILES]`|Check hashes for previously renamed files. All files by default.
|
`name_hash_check [FILES]`|Check hashes for previously renamed files. All files by default.
|
||||||
`name_show [FILES]`|Rename files for Jellyfin shows, i.e. `Episode S01E01.mkv` All files by default.
|
`name_show [FILES]`|Rename files for Jellyfin shows, i.e. `Episode S01E01.mkv` All files by default.
|
||||||
`name_manga <SEASON> [FILES]`|Rename files for Kavita manga format. All files by default.
|
`name_manga <SEASON> [FILES]`|Rename files for Kavita manga format. All files by default.
|
||||||
`name_music [FILES]`|Rename files for ffmpeg_music_meta format. All files by default.
|
`name_music [FILES]`|Rename files for ffmpeg_music_meta format. All files by default.
|
||||||
`name_ext <EXTENSION> [FILES]`|Rename files with new extension. All files by default.
|
`name_ext <EXTENSION> [FILES]`|Rename files with new extension. All files by default.
|
||||||
`name_prefix <OLD> <NEW> [FILES]`|Change file name prefix. All matching files by default.
|
`name_prefix <OLD> <NEW> [FILES]`|Change file name prefix. All matching files by default.
|
||||||
`name_postfix <OLD> <NEW> [FILES]`|Change file name postfix. All matching files by default.
|
`name_postfix <OLD> <NEW> [FILES]`|Change file name postfix. All matching files by default.
|
||||||
`name_replace <OLD> <NEW> [FILES]`|Replace part of the name. All matching files by default.
|
`name_replace <OLD> <NEW> [FILES]`|Replace part of the name. All matching files by default.
|
||||||
`name_fix_numbering [FILES]`|Fix numbering for numbered files. I.e if there are 10 items and some of them start without zero, then append zero to it. 1..10 -> 01..10.
|
`name_fix_numbering [FILES]`|Fix numbering for numbered files. I.e if there are 10 items and some of them start without zero, then append zero to it. 1..10 -> 01..10.
|
||||||
|
|
||||||
## Nix.
|
## Nix.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`nix_find <PACKAGE>`|Find Nix package path.
|
`nix_find <PACKAGE>`|Find Nix package path.
|
||||||
`nix_unstable`|Switch to Unstable branch.
|
`nix_unstable`| Switch to Unstable branch.
|
||||||
`nix_channel`|Display current channel.
|
`nix_channel`| Display current channel.
|
||||||
`nix_rebuild [HOSTNAME]`|Rebuild system. Optionally force the hostname.
|
`nix_rebuild [HOSTNAME]`|Rebuild system. Optionally force the hostname.
|
||||||
`nix_switch [HOSTNAME]`|Rebuild and switch system. Optionally force the hostname.
|
`nix_switch [HOSTNAME]`|Rebuild and switch system. Optionally force the hostname.
|
||||||
`nix_update [HOSTNAME]`|Update system. Optionally force the hostname.
|
`nix_update [HOSTNAME]`|Update system. Optionally force the hostname.
|
||||||
`nix_clean`|Free up root space.
|
`nix_clean`| Free up root space.
|
||||||
`nix_shell [NAME]`|Spawn shell with specified nix environment. `Main` is default.
|
`nix_shell [NAME]`|Spawn shell with specified nix environment. `Main` is default.
|
||||||
`nix_tmpshell <PACKAGES>`|Spawn nix-shell with specified packages.
|
`nix_tmpshell <PACKAGES>`|Spawn nix-shell with specified packages.
|
||||||
|
|
||||||
## Notify.
|
## Notify.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`notify <MESSAGE>`|Send Telegram notification.
|
`notify <MESSAGE>`|Send Telegram notification.
|
||||||
`notify_silent <MESSAGE>`|Send silent Telegram notification.
|
`notify_silent <MESSAGE>`|Send silent Telegram notification.
|
||||||
|
|
||||||
## Own.
|
## Own.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`own [USER] [FILES]`|Change file ownership to specified user id and restrict access to him. Root user by default. This directory recursively by default.
|
`own [USER] [FILES]`|Change file ownership to specified user id and restrict access to him. Root user by default. This directory recursively by default.
|
||||||
|
|
||||||
## Pack.
|
## Pack.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`pack <TARGET.ext> [FILES]`|Pack files into desired format. All files and directories by default.
|
`pack <TARGET.ext> [FILES]`|Pack files into desired format. All files and directories by default.
|
||||||
`unpack [FILES]`|Attempt to unpack. All supported formats by default.
|
`unpack [FILES]`|Attempt to unpack. All supported formats by default.
|
||||||
|
|
||||||
## Parse.
|
## Parse.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`parse_simple <STRING>`|Parse data and output simplified format.
|
`parse_simple <STRING>`|Parse data and output simplified format.
|
||||||
`parse_pascal <STRING>`|Parse to PascalCase.
|
`parse_pascal <STRING>`|Parse to PascalCase.
|
||||||
`parse_snake <STRING>`|Parse to snake_case.
|
`parse_snake <STRING>`|Parse to snake_case.
|
||||||
`parse_kebab <STRING>`|Parse to kebab-case.
|
`parse_kebab <STRING>`|Parse to kebab-case.
|
||||||
`parse_camel <STRING>`|Parse to camelCase.
|
`parse_camel <STRING>`|Parse to camelCase.
|
||||||
`parse_snake_uppercase <STRING>`|Parse to SNAKE_CASE_UPPERCASE. **NOT STABLE! Repeating results in different output.**
|
`parse_snake_uppercase <STRING>`|Parse to SNAKE_CASE_UPPERCASE. **NOT STABLE! Repeating results in different output.**
|
||||||
`parse_alnum <STRING>`|Parse data keeping only alphanumeric characters.
|
`parse_alnum <STRING>`|Parse data keeping only alphanumeric characters.
|
||||||
`parse_ints <STRING>`|Parse integers from mixed string.
|
`parse_ints <STRING>`|Parse integers from mixed string.
|
||||||
`parse_lowercase <STRING>`|Parse string to lowercase.
|
`parse_lowercase <STRING>`|Parse string to lowercase.
|
||||||
`parse_uppercase <STRING>`|Parse string to uppercase.
|
`parse_uppercase <STRING>`|Parse string to uppercase.
|
||||||
`parse_titlecase <STRING>`|Parse string to title case.
|
`parse_titlecase <STRING>`|Parse string to title case.
|
||||||
`parse_sentencecase <STRING>`|Parse string to sentence case.
|
`parse_sentencecase <STRING>`|Parse string to sentence case.
|
||||||
`parse_startcase <STRING>`|Parse string to start case.
|
`parse_startcase <STRING>`|Parse string to start case.
|
||||||
`parse_json <STRING>`|Parse string to pretty Json.
|
`parse_json <STRING>`|Parse string to pretty Json.
|
||||||
|
|
||||||
## Permission.
|
## Permission.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`perm_share`|Recursively change permissions to allow read sharing with group and others.
|
`perm_share`| Recursively change permissions to allow read sharing with group and others.
|
||||||
`perm`|Recursively change permissions to restrict access for group and others.
|
`perm`| Recursively change permissions to restrict access for group and others.
|
||||||
|
|
||||||
## Ps.
|
## Ps.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`fps [PROCESS]`|Find process and filter.
|
`fps [PROCESS]`|Find process and filter.
|
||||||
|
|
||||||
## Random.
|
## Random.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`random_file`|Picks a random file or directory.
|
`random_file`| Picks a random file or directory.
|
||||||
|
|
||||||
## Recursive.
|
## Recursive.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`recursive <COMMAND>`|Run something recursively over all directories.
|
`recursive <COMMAND>`|Run something recursively over all directories.
|
||||||
`recursive1 <COMMAND>`|Run something recursively over directories of 1 depth (excluding current dir).
|
`recursive1 <COMMAND>`|Run something recursively over directories of 1 depth (excluding current dir).
|
||||||
|
|
||||||
## Rust.
|
## Rust.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`rust_book`|Open Rust book.
|
`rust_book`| Open Rust book.
|
||||||
|
|
||||||
## Su.
|
## Su.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`s [USER]`|Su shortcut for lazy me. Root by default.
|
`s [USER]`|Su shortcut for lazy me. Root by default.
|
||||||
|
|
||||||
## Terminal.
|
## Terminal.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`tsize`|Get terminal size.
|
`tsize`| Get terminal size.
|
||||||
|
|
||||||
## Tmp.
|
## Tmp.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`tmp`|CD into host's primary tmp dir.
|
`tmp`| CD into host's primary tmp dir.
|
||||||
|
|
||||||
## Tmux.
|
## Tmux.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`ta [NAME]`|Create/attach to named session. By default uses current dir name.
|
`ta [NAME]`|Create/attach to named session. By default uses current dir name.
|
||||||
`td`|Detach from running session.
|
`td`| Detach from running session.
|
||||||
`tda`|Detach all other tmux clients.
|
`tda`| Detach all other tmux clients.
|
||||||
`tl`|List running sessions.
|
`tl`| List running sessions.
|
||||||
`tns [NAME]`|Assign name to session. Uses current dir name by default.
|
`tns [NAME]`|Assign name to session. Uses current dir name by default.
|
||||||
`tnw [NAME]`|Assign name to window. Uses current dir name by default.
|
`tnw [NAME]`|Assign name to window. Uses current dir name by default.
|
||||||
`tk [NAME]`|Kill specified session. By default uses current dir name.
|
`tk [NAME]`|Kill specified session. By default uses current dir name.
|
||||||
`tka`|Kill all sessions.
|
`tka`| Kill all sessions.
|
||||||
|
|
||||||
## Todo.
|
## Todo.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`todo`|Open `~/.todo.md` file.
|
`todo`| Open `~/.todo.md` file.
|
||||||
|
|
||||||
## Transcode.
|
## Transcode.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`transcode <FORMAT> [FILES]`|Convert between different formats. By default tries to convert all files.
|
`transcode <FORMAT> [FILES]`|Convert between different formats. By default tries to convert all files.
|
||||||
|
|
||||||
## Try.
|
## Try.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`try <COMMAND>`|Retry command every 2 sec until it completes successfully.
|
`try <COMMAND>`|Retry command every 2 sec until it completes successfully.
|
||||||
|
|
||||||
## Vdl.
|
## Vdl.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`vdl [LINK]`|Download video from URL. When no `[LINK]` specified, it tries to update previously downloaded link.
|
`vdl [LINK]`|Download video from URL. When no `[LINK]` specified, it tries to update previously downloaded link.
|
||||||
`vdl_vk <LINK>`|Temporary fix for vk downloads.
|
`vdl_vk <LINK>`|Temporary fix for vk downloads.
|
||||||
`vdl_file <FILE>`|Download all videos from file with links.
|
`vdl_file <FILE>`|Download all videos from file with links.
|
||||||
|
|
||||||
## Vi.
|
## Vi.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`v`|Neovim shortcut.
|
`v`| Neovim shortcut.
|
||||||
|
|
||||||
## Wallpaper.
|
## Wallpaper.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`wallpaper <FILE>`|Set specified file as a wallpaper.
|
`wallpaper <FILE>`|Set specified file as a wallpaper.
|
||||||
|
|
||||||
## Watch.
|
## Watch.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`w <COMMAND>`|Watch command output with 2 seconds interval.
|
`w <COMMAND>`|Watch command output with 2 seconds interval.
|
||||||
`ww <COMMAND>`|Watch command output with minimal interval.
|
`ww <COMMAND>`|Watch command output with minimal interval.
|
||||||
|
|
||||||
|
|
Reference in a new issue