this post was submitted on 20 Dec 2024
31 points (100.0% liked)

Internet is Beautiful

785 readers
34 users here now

Welcome to Internet is Beautiful Lemmy and Mbin community.

Find a cool or useful website on the internet. Share it here so others Lemmings can bookmark it too.


Rules

Related Communities

founded 1 month ago
MODERATORS
 

You can visit the website, or even better, curl for what you want.

$ curl cht.sh/touch

gets you this:

 cheat:touch 
# To change a file's modification time:
touch -d <time> <file>
touch -d 12am <file>
touch -d "yesterday 6am" <file>
touch -d "2 days ago 10:00" <file>
touch -d "tomorrow 04:00" <file>

# To put the timestamp of a file on another:
touch -r <refrence-file> <target-file>

Append with ~ and a word to show only help containing that word:

$ curl cht.sh/zstd~compress

Result:

 tldr:zstd 
# zstd
# Compress or decompress files with Zstandard compression.
# More information: <https://github.com/facebook/zstd>.

# Decompress a file:
zstd -d path/to/file.zst

# Decompress to `stdout`:
zstd -dc path/to/file.zst

# Compress a file specifying the compression level, where 1=fastest, 19=slowest and 3=default:
zstd -level path/to/file

# Unlock higher compression levels (up to 22) using more memory (both for compression and decompression):
zstd --ultra -level path/to/file

For more usage tips, curl cht.sh/:help.

top 3 comments
sorted by: hot top controversial new old
[–] 9point6@lemmy.world 6 points 2 days ago* (last edited 2 days ago)

So it's kinda like tldr but without the need to have already installed it, I can see the odd time I might use that

Where's the response data sourced from? Is it the same as tldr?

Edit: just looked into it, yeah it does

[–] wizzim@infosec.pub 4 points 2 days ago (1 children)

This is really cool but I'd like it in local.

Like a tldr "man".

[–] 9point6@lemmy.world 9 points 2 days ago* (last edited 2 days ago)

You're looking for tldr

https://github.com/tldr-pages/tldr

In fact the project linked by OP is linked as a project using the tldr data on the repo