diff --git a/tldr/fc-list b/tldr/fc-list index b369330c..4885d46b 100644 --- a/tldr/fc-list +++ b/tldr/fc-list @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > List available fonts installed on the system. > More information: . -- Return a list of installed fonts in your system: +- Return a list of installed fonts: `fc-list` @@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git `fc-list | grep '{{DejaVu Serif}}'` -- Return the number of installed fonts in your system: +- Return the number of installed fonts: `fc-list | wc {{[-l|--lines]}}` diff --git a/tldr/gum b/tldr/gum index 82117d4e..4bebc5a0 100644 --- a/tldr/gum +++ b/tldr/gum @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # gum > Make glamorous shell scripts. +> See also: `whiptail`, `dialog`. > More information: . - Interactively pick a specific option to print to `stdout`: @@ -22,11 +23,11 @@ source: https://github.com/tldr-pages/tldr.git - Show a spinner while a command is taking place with text alongside: -`gum spin --spinner {{dot|line|minidot|jump|pulse|points|globe|moon|monkey|meter|hamburger}} --title "{{loading...}}" -- {{command}}` +`gum spin {{[-s|--spinner]}} {{dot|line|minidot|jump|pulse|points|globe|moon|monkey|meter|hamburger}} --title "{{loading...}}" -- {{command}}` - Format text to include emojis: -`gum format -t {{emoji}} "{{:smile: :heart: hello}}"` +`gum format {{[-t|--type]}} {{emoji}} "{{:smile: :heart: hello}}"` - Interactively prompt for multi-line text (`` to save) and write to `data.txt`: diff --git a/tldr/kool b/tldr/kool index 1a813d8e..4af4df99 100644 --- a/tldr/kool +++ b/tldr/kool @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kool > Build software development environments. -> More information: . +> More information: . - Create a project using a specific preset: diff --git a/tldr/linux/dialog b/tldr/linux/dialog index 6c417f9f..7ec6eaf0 100644 --- a/tldr/linux/dialog +++ b/tldr/linux/dialog @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # dialog > Display dialog boxes on the terminal. +> See also: `gum`, `whiptail`. > More information: . - Display a message: diff --git a/tldr/linux/flameshot b/tldr/linux/flameshot index b74a1663..ca8d99c4 100644 --- a/tldr/linux/flameshot +++ b/tldr/linux/flameshot @@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Create a screenshot and save it to a specific path: -`flameshot gui --path {{path/to/directory}}` +`flameshot gui {{[-p|--path]}} {{path/to/directory}}` - Create a screenshot interactively in a simplified mode: @@ -27,16 +27,16 @@ source: https://github.com/tldr-pages/tldr.git - Create a screenshot from a specific monitor: -`flameshot screen --number {{2}}` +`flameshot screen {{[-n|--number]}} {{2}}` - Create a screenshot and print it to `stdout`: -`flameshot gui --raw` +`flameshot gui {{[-r|--raw]}}` - Create a screenshot and copy it to the clipboard: -`flameshot gui --clipboard` +`flameshot gui {{[-c|--clipboard]}}` - Create a screenshot with a specific delay in milliseconds: -`flameshot full --delay {{5000}}` +`flameshot full {{[-d|--delay]}} {{5000}}` diff --git a/tldr/linux/fonttools b/tldr/linux/fonttools new file mode 100644 index 00000000..d42ce39f --- /dev/null +++ b/tldr/linux/fonttools @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# fonttools + +> Manipulate fonts in Python. +> More information: . + +- Subset a TTF font file to the Basic Latin Unicode block: + +`fonttools subset {{path/to/font.ttf}} --unicodes=U+0000-007F` + +- Display help: + +`fonttools --help` diff --git a/tldr/linux/fonttools-subset b/tldr/linux/fonttools-subset new file mode 100644 index 00000000..b49cb55a --- /dev/null +++ b/tldr/linux/fonttools-subset @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# fonttools subset + +> Generate subsets of fonts or optimize file sizes. +> More information: . + +- Subset a TTF font file to the Basic Latin Unicode block: + +`fonttools subset {{path/to/font.ttf}} --unicodes=U+0000-007F` + +- Change the file type to WOFF2: + +`fonttools subset {{path/to/font.ttf}} --unicodes=U+0000-007F --flavor=woff2` + +- Keep only the onum (oldstyle figures) and kern (kerning) OpenType font features: + +`fonttools subset {{path/to/font.ttf}} --unicodes=U+0000-007F --layout-features=onum,kern` + +- Set the output file's name: + +`fonttools subset {{path/to/font.ttf}} --unicodes=U+0000-007F --output-file={{path/to/subset.ttf}}` diff --git a/tldr/linux/gnome-software b/tldr/linux/gnome-software index 3b4b65f1..e51fa487 100644 --- a/tldr/linux/gnome-software +++ b/tldr/linux/gnome-software @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # gnome-software > Add and remove applications and update your system. -> More information: . +> More information: . - Launch the GNOME Software GUI if it's not already running: diff --git a/tldr/linux/mdbook b/tldr/linux/mdbook index 2d67b8bf..7dcefb6b 100644 --- a/tldr/linux/mdbook +++ b/tldr/linux/mdbook @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # mdbook > Create online books by writing Markdown files. -> More information: . +> More information: . - Create an mdbook project in the current directory: diff --git a/tldr/linux/ufw b/tldr/linux/ufw index f54a95d1..61a6cf11 100644 --- a/tldr/linux/ufw +++ b/tldr/linux/ufw @@ -9,33 +9,33 @@ source: https://github.com/tldr-pages/tldr.git > Frontend for `iptables` aiming to make configuration of a firewall easier. > More information: . -- Enable ufw: +- Enable `ufw`: `ufw enable` -- Disable ufw: +- Disable `ufw`: `ufw disable` -- Show ufw rules, along with their numbers: +- Show `ufw` rules, along with their numbers: `ufw status numbered` - Allow incoming traffic on port 5432 on this host with a comment identifying the service: -`ufw allow {{5432}} comment "{{Service}}"` +`ufw allow 5432 comment "{{Service}}"` - Allow only TCP traffic from 192.168.0.4 to any address on this host, on port 22: -`ufw allow proto {{tcp}} from {{192.168.0.4}} to {{any}} port {{22}}` +`ufw allow proto tcp from 192.168.0.4 to any port 22` - Deny traffic on port 80 on this host: -`ufw deny {{80}}` +`ufw deny 80` - Deny all UDP traffic to ports in range 8412:8500: -`ufw deny proto {{udp}} from {{any}} to {{any}} port {{8412:8500}}` +`ufw deny proto udp from any to any port 8412:8500` - Delete a particular rule. The rule number can be retrieved from the `ufw status numbered` command: diff --git a/tldr/linux/whiptail b/tldr/linux/whiptail index 96bbe540..f8a4a705 100644 --- a/tldr/linux/whiptail +++ b/tldr/linux/whiptail @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # whiptail > Display text-based dialog boxes from shell scripts. +> See also: `dialog`, `gum`. > More information: . - Display a simple message: @@ -30,4 +31,4 @@ source: https://github.com/tldr-pages/tldr.git - Display a multiple-choice menu: -`{{result_variable_name}}=$(whiptail --title "{{title}}" --menu "{{message}}" {{height_in_chars}} {{width_in_chars}} {{menu_display_height}} "{{value_1}}" "{{display_text_1}}" "{{value_n}}" "{{display_text_n}}" ..... 3>&1 1>&2 2>&3)` +`{{result_variable_name}}=$(whiptail --title "{{title}}" --menu "{{message}}" {{height_in_chars}} {{width_in_chars}} {{menu_display_height}} {{"value_1" "display_text_1" "value_2" "display_text_2" ...}} 3>&1 1>&2 2>&3)` diff --git a/tldr/npm-install b/tldr/npm-install index 7bed580c..46001b96 100644 --- a/tldr/npm-install +++ b/tldr/npm-install @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Download the latest version of a package and add it to the list of dev dependencies in `package.json`: -`npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}` +`npm {{[i|install]}} {{[-D|--save-dev]}} {{package_name}}` - Download the latest version of a package and install it globally: diff --git a/tldr/tesseract b/tldr/tesseract index 09dde084..cf092b4e 100644 --- a/tldr/tesseract +++ b/tldr/tesseract @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # tesseract > OCR (Optical Character Recognition) engine. -> More information: . +> More information: . - Recognize text in an image and save it to `output.txt` (the `.txt` extension is added automatically):