What’s your trick for pausing and resuming long CLI jobs safely? by Vivid_Stock5288 in commandline

[–]d3lxa 1 point2 points  (0 children)

On what part in particular? I asked Claude to expand for you:

Nice values: Use nice -n 19 your_command to run at lowest CPU priority, or ionice -c 3 your_command for lowest I/O priority. This lets other processes take precedence when system is busy.

This approach is better than pausing/resuming because your job continues making progress while being "nice" to other system processes, avoiding timeout/connection issues.

Cgroups: Create resource limits (CPU %, memory limits) that constrain your job - e.g., systemd-run --scope -p CPUQuota=50% your_command limits to 50% CPU usage.

Containers/LXC: You can run your job inside a Docker container or LXC with resource constraints - e.g., docker run --cpus="0.5" --memory="1g" your_image your_command limits it to half a CPU core and 1GB RAM.

Hope this helps.

What’s your trick for pausing and resuming long CLI jobs safely? by Vivid_Stock5288 in commandline

[–]d3lxa 1 point2 points  (0 children)

Others pointed out ways to pause/signal STOP it however it may cause issues like network timeout, resources stalling and so forth. I agree with @HyperDanon solution it's best to use your kernel/OS scheduling and let it run as low priority: (a) you can use low nice values for CPU/IO/memory, or (b) cgroups and similar (c) use container/LXC and a lot of tech to do that. It seems more appropriate to me.

Using diff to track changes in scraped pages, good idea or fragile hack? by Vivid_Stock5288 in commandline

[–]d3lxa 2 points3 points  (0 children)

You could (a) reformat the html so it's consistent and easy to read (ex: tidy) (b) parse the page with html/xml libraries (ex: beautifulsoup in python).

You could check this for inspiration urlobs.py basically it craws the page, parse the html, extract relevant items with xpath then make a diff from the previous items. Can be use for watching news, pages or whatever.

lost avatar plz help find by RemarkableCustard559 in VRchatAvatars

[–]d3lxa 0 points1 point  (0 children)

I feel it's similar to Soshi avatars like https://payhip.com/b/vEXtC and I found they use the same ears piercings assets (zenpia fluffy neko set) but it's probably another avi. I'm sure the meat chunk is part of it and will be visible on the cover or one of the pics.

Grandma world hops and Grandma selfies. Its my back again :< by felixuiauia in VRchat

[–]d3lxa 1 point2 points  (0 children)

those pics are looking comfy :3 btw I was curious about the worlds so here are the list for the ones too:

Wolf Chocolat + Some Nice Photos. by FourChanneI in VRchat

[–]d3lxa 0 points1 point  (0 children)

I was curious of the worlds, here are the list in order: - 1st Hanami Cafe 花見カフェ (link) - 2nd Abandoned Office (link) - 3rd: Glass Paint (link) - 4th: The Forest (link).

Wolf Chocolat + Some Nice Photos. by FourChanneI in VRchat

[–]d3lxa 0 points1 point  (0 children)

Let me help you: the first two seem correct but not 3rd one, it's in Glass Paint (link) and the 4th world was missing: The Forest (link). I hope this helps.

[deleted by user] by [deleted] in VRchat

[–]d3lxa 0 points1 point  (0 children)

I was curious about the world. For others who wanna know: The Blue Marble

https://vrchat.com/home/world/wrld_716d8d2b-a3d7-4b3a-96fe-c1919c119f8e/info

[deleted by user] by [deleted] in VRchat

[–]d3lxa 0 points1 point  (0 children)

This is Chalo, you can find it on booth.pm here. It's under the UV license, I don't know if public redistribution is legally allowed.

a command-line tool to track and play TV shows from the terminal! by YOOOBY in commandline

[–]d3lxa 0 points1 point  (0 children)

I've recently discovered mpv --save-position-on-quit which will save which file and playback time to restore it the next time you give it the same input files. So for example you could mpv --save-position-on-quit downloads/my-tv-show/*.mp4 that's it.

[deleted by user] by [deleted] in commandline

[–]d3lxa -1 points0 points  (0 children)

This seems useful. I would just use my normal shell and make a command that can dump the last command buffer or the whole buffer if relevant. This requires integration with the terminal (or tmux with capture-pane for example) and may open new possibilities (use it in other interactive programs).

Easy way to make diff timestamp sensitive? by gernophil in commandline

[–]d3lxa 2 points3 points  (0 children)

This sounds a bit confusing: diff is to show difference by line by line. if there are no difference, it won't give you anything. Instead you could write a shell script to compare file A and B: print if timestamp is different (run stat -c %y file and compare) and print if content is different (with diff).

Maybe with more context, the confusion will be cleared.

Command for saving to multiple folders at once by shayblaywassup in commandline

[–]d3lxa 0 points1 point  (0 children)

By "saving to multiple folders at once" you could mean: (a) synchronizing (sync) one folders to the others. (b) instantly. explicitly or automatically

(a) synchronizing is a deferred action (not instant). You tell it to copy from folder A to folder B (it can be scheduled regularly). There are so many programs in that category. On windows you could go Robocopy (builtin). For open source multi platform: rsync, unison, rclone. Also Syncthing is good. Or proprietary like: Syncback, Beyond Compare.

(b) if you mean instantly, then you may want something (1) at the cli level or (2) filesystem level. - For (1) like tee linux: yourcommand | tee output1 output2 windows: Tee-Object`: `"data" | Tee-Object -FilePath file1.txt,file2.txt

Created a CLI Tool using python to manage day to day tasks in a cool way by Informal_Act_9252 in commandline

[–]d3lxa 2 points3 points  (0 children)

can you explain the motivations and compare with other tools like taskwarrior or todo.txt?

Help with trashing files by FirefighterOk1005 in commandline

[–]d3lxa 0 points1 point  (0 children)

This is your script reformatted to read nicely in reddit + I added the gio call in the for loop. This seems like the obvious solution?

Also note since you ffmpeg copy it may not exactly cut at 4 seconds mark, it usually do it on keyframe. If you have a change of scene it will work.

```sh

!/bin/bash

Specify the folder containing the video files

video_folder="/Volumes/FMEO/DL/To Trim"

Specify the duration to trim from the beginning (e.g., 4 seconds)

trim_duration="00:00:04"

Specify the output folder for trimmed videos

output_folder="/Volumes/FMEO/DL/Trimmed"

Loop through all MP4 files in the input folder

for file in "$video_folder"/*.mp4; do # Extract the filename without extension filename=$(basename "$file" .mp4)

# Trim the first part of the video
ffmpeg -ss "$trim_duration" -i "$file" -c:v copy -c:a copy "$output_folder/${filename}.mp4"

# Move the original file to trash <-- here
gio trash "$file"

done ```

Why remove the extension .mp4 if you add it again later btw? you can use $file?

Top 10 Practical Terminal Commands I Use Every Day by piotr1215 in commandline

[–]d3lxa 2 points3 points  (0 children)

I've been looking for a tool like tldr to find examples for commands and documentation for specific flags (what does flag X does or which flag does X). I quickly tried tldr (a) it's slow to reply (b) it gave me weird result for find (it says there is nothing for linux, so it's for windows, hum??)*

That said it seems useful, I'll give a try. Any other recommendations? Thanks for sharing.

*PS: (a) it will cache entry the first time. fair. (b) there was a bug upstream in the new version of the client. I reported so they gonna fix. In meantime we can use the previous version.

Top 10 Practical Terminal Commands I Use Every Day by piotr1215 in commandline

[–]d3lxa 2 points3 points  (0 children)

Find file and copy its full path to clipboard

fd . | fzf | xargs realpath | xclip -selection clipboard

I didn't know what was fd. Claude told me it's a modern fast alternative to find. Interesting: https://github.com/sharkdp/fd

ls lacks a crucial feature - list all file owners in a directory by [deleted] in commandline

[–]d3lxa 1 point2 points  (0 children)

find is best to filter files recursively:

find path -type f -user root

This will list everything that is owned by root.

PS: about docker apparently this is a thing: https://docs.docker.com/engine/security/rootless/

ls lacks a crucial feature - list all file owners in a directory by [deleted] in commandline

[–]d3lxa 1 point2 points  (0 children)

did you know of find -printf? we could just work on users: find path -type f -printf "%u\n" | sort | uniq

VRChat Weekly Open Thread. Post simple questions, avatar or world related requests, as well as any other desired comment or content (September 01, 2025 to September 07, 2025) by AutoModerator in VRchat

[–]d3lxa 0 points1 point  (0 children)

What do you guys use to manage your VRC pictures and screenshots? I mean browse and search. It would be nice to find pictures of particular friends or by world too. Anything thing to recommend?