mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/bdfr
Normal file
33
tldr/bdfr
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bdfr
|
||||
|
||||
> Bulk downloader for Reddit.
|
||||
> More information: <https://github.com/Serene-Arc/bulk-downloader-for-reddit>.
|
||||
|
||||
- Download videos/images from the specified [l]inks to URL or ID's of posts:
|
||||
|
||||
`bdfr download {{path/to/output_directory}} -l {{post_url}}`
|
||||
|
||||
- Download the maximum possible number (roughly 1000) of videos/images from a specified [u]ser:
|
||||
|
||||
`bdfr download {{path/to/output_directory}} -u {{reddit_user}} --submitted`
|
||||
|
||||
- Download submission data (text, upvotes, comments, etc.) [L]imited to 10 submissions for each [s]ubreddit (30 total):
|
||||
|
||||
`bdfr archive {{path/to/output_directory}} -s '{{Python, all, mindustry}}' -L 10`
|
||||
|
||||
- Download videos/images from the [s]ubreddit r/Python [S]orted by top (default is hot) using [t]ime filter all, [L]imited to 10 submissions:
|
||||
|
||||
`bdfr download {{path/to/output_directory}} -s Python -S top -t all -L 10`
|
||||
|
||||
- Download the maximum possible number of both submission data and videos/images from [s]ubreddit r/Python skipping over submissions with mp4 or gif file extensions and creating hard links for duplicate files:
|
||||
|
||||
`bdfr clone {{path/to/output_directory}} -s Python --skip mp4 --skip gif --make-hard-links`
|
||||
|
||||
- Download saved posts of the authenticated user, naming each file according to a specified format. Avoid downloading duplicates and posts already present in the output directory:
|
||||
|
||||
`bdfr download {{path/to/output_directory}} --user me --saved --authenticate --file-scheme '{{ {POSTID}_{TITLE}_{UPVOTES} }}' --no-dupes --search-existing`
|
||||
17
tldr/npm-root
Normal file
17
tldr/npm-root
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# npm root
|
||||
|
||||
> Display path to `node_modules` directory.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-root>.
|
||||
|
||||
- Display path to the local `node_modules` directory:
|
||||
|
||||
`npm root`
|
||||
|
||||
- Display path to the global `node_modules` directory:
|
||||
|
||||
`npm root --global`
|
||||
41
tldr/npm-star
Normal file
41
tldr/npm-star
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# npm star
|
||||
|
||||
> Mark a package as favorite.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-star>.
|
||||
|
||||
- Star a public package from the default registry:
|
||||
|
||||
`npm star {{package_name}}`
|
||||
|
||||
- Star a package within a specific scope:
|
||||
|
||||
`npm star @{{scope}}/{{package_name}}`
|
||||
|
||||
- Star a package from a specific registry:
|
||||
|
||||
`npm star {{package_name}} --registry={{registry_url}}`
|
||||
|
||||
- Star a private package that requires authentication:
|
||||
|
||||
`npm star {{package_name}} --auth-type={{legacy|oauth|web|saml}}`
|
||||
|
||||
- Star a package by providing an OTP for two-factor authentication:
|
||||
|
||||
`npm star {{package_name}} --otp={{otp}}`
|
||||
|
||||
- Star a package with detailed logging:
|
||||
|
||||
`npm star {{package_name}} --loglevel=verbose`
|
||||
|
||||
- List all your starred packages:
|
||||
|
||||
`npm star --list`
|
||||
|
||||
- List your starred packages from a specific registry:
|
||||
|
||||
`npm star --list --registry={{registry_url}}`
|
||||
33
tldr/npm-unstar
Normal file
33
tldr/npm-unstar
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# npm unstar
|
||||
|
||||
> Remove the favorite/star mark from a package.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-unstar>.
|
||||
|
||||
- Unstar a public package from the default registry:
|
||||
|
||||
`npm unstar {{package_name}}`
|
||||
|
||||
- Unstar a package within a specific scope:
|
||||
|
||||
`npm unstar @{{scope}}/{{package_name}}`
|
||||
|
||||
- Unstar a package from a specific registry:
|
||||
|
||||
`npm unstar {{package_name}} --registry={{registry_url}}`
|
||||
|
||||
- Unstar a private package that requires authentication:
|
||||
|
||||
`npm unstar {{package_name}} --auth-type={{legacy|oauth|web|saml}}`
|
||||
|
||||
- Unstar a package by providing an OTP for two-factor authentication:
|
||||
|
||||
`npm unstar {{package_name}} --otp={{otp}}`
|
||||
|
||||
- Unstar a package with a specific logging level:
|
||||
|
||||
`npm unstar {{package_name}} --loglevel={{silent|error|warn|notice|http|timing|info|verbose|silly}}`
|
||||
17
tldr/npm-whoami
Normal file
17
tldr/npm-whoami
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# npm whoami
|
||||
|
||||
> Display npm username.
|
||||
> More information: <https://docs.npmjs.com/cli/whoami>.
|
||||
|
||||
- Display username of the currently logged-in user:
|
||||
|
||||
`npm whoami`
|
||||
|
||||
- Display username of the current user in the specific registry:
|
||||
|
||||
`npm whoami --registry={{registry_url}}`
|
||||
@@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Avoid rate limiting through VNC-sleep:
|
||||
|
||||
`nxc vnc {{192.168.178.2}} -u {{{path/to/usernames.txt}}} -p {{path/to/passwords.txt}} --vnc-sleep {{10}}`
|
||||
`nxc vnc {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}} --vnc-sleep {{10}}`
|
||||
|
||||
- Take a screenshot on the remote system after waiting the specified amount of time:
|
||||
|
||||
`nxc vnc {{192.168.178.2}} -u {{{username}}} -p {{password}} --screenshot --screentime {{10}}`
|
||||
`nxc vnc {{192.168.178.2}} -u {{username}} -p {{password}} --screenshot --screentime {{10}}`
|
||||
|
||||
@@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Specify the font and font size:
|
||||
|
||||
`pbmtextps -font {{Times-Roman}} -fontsize {{30}} "{{Hello World!}}" > {{path/to/output.pbm}}`
|
||||
`pbmtextps -font {{Times-Roman}} -fontsize {{30}} "{{Hello World!}}" > {{path/to/output.pbm}}`
|
||||
|
||||
- Specify the desired left and top margins:
|
||||
|
||||
`pbmtextps -leftmargin {{70}} -topmargin {{162}} "{{Hello World!}}" > {{path/to/output.pbm}}`
|
||||
`pbmtextps -leftmargin {{70}} -topmargin {{162}} "{{Hello World!}}" > {{path/to/output.pbm}}`
|
||||
|
||||
- Do not output the rendered text as a PBM image, but a PostScript program that would create this image:
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Produce a quadratic output image with the specified resolution:
|
||||
|
||||
`pbmtoepsi -dpi {{144}} {path/to/image.pbm}} > {{path/to/output.bmp}}`
|
||||
`pbmtoepsi -dpi {{144}} {{path/to/image.pbm}} > {{path/to/output.bmp}}`
|
||||
|
||||
- Produce an output image with the specified horizontal and vertical resolution:
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Specify amount of RAM for instance:
|
||||
|
||||
`qemu-system-i386 -m 256 -hda image_name.img -cdrom os-image.iso -boot d`
|
||||
`qemu-system-i386 -m 256 -hda {{image_name.img}} -cdrom {{os-image.iso}} -boot d`
|
||||
|
||||
- Boot from physical device (e.g. from USB to test bootable medium):
|
||||
|
||||
|
||||
2
tldr/tar
2
tldr/tar
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`tar czf {{path/to/target.tar.gz}} {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- [c]reate a g[z]ipped archive from a directory using relative paths:
|
||||
- [c]reate a g[z]ipped (compressed) archive from a directory using relative paths:
|
||||
|
||||
`tar czf {{path/to/target.tar.gz}} --directory={{path/to/directory}} .`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user