• 3 Posts
  • 130 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2025

help-circle












  • I’ve always written my while/for loops with braces like this.

    $ egrep '(while|done)' ~/.local/bin/*.sh
    /home/baronvonj/.local/bin/disable_subtitle_tracks.sh:while read file; do {
    /home/baronvonj/.local/bin/disable_subtitle_tracks.sh:} done < ${file_list}
    /home/baronvonj/.local/bin/extract_subtitles.sh:while read fpath; do {
    /home/baronvonj/.local/bin/extract_subtitles.sh:} done <<<$(find "$1" -name "*.mp4" -o -name "*.mkv")
    /home/baronvonj/.local/bin/find_4k_level52_h264.sh:while read file; do {
    /home/baronvonj/.local/bin/find_4k_level52_h264.sh:} done <<< $(find $1 -name "*.mp4" -o -name "*.mkv")
    /home/baronvonj/.local/bin/find_4k_only.sh:while read line; do {
    /home/baronvonj/.local/bin/find_4k_only.sh:} done <<< $(find "${mdir}" -regextype posix-extended -regex '.*\[4k\]\.(mp4|mkv)')
    /home/baronvonj/.local/bin/reduce_level.sh:while true; do
    /home/baronvonj/.local/bin/reduce_level.sh:done
    /home/baronvonj/.local/bin/reduce_level.sh:while read f; do {
    /home/baronvonj/.local/bin/reduce_level.sh:} done <<< $(find "${START_DIR}" -type f -iname '*.mp4' -o -iname '*.mkv') 
    /home/baronvonj/.local/bin/remove_languages.sh:while read file; do {
    /home/baronvonj/.local/bin/remove_languages.sh:} done < ${file_list}
    /home/baronvonj/.local/bin/reorg_v2_v3.sh:while read src; do {
    /home/baronvonj/.local/bin/reorg_v2_v3.sh:} done <<< $(find "${indir}" -name "*.mp4" -o -name "*.mkv" -o -name "*.nfo")
    /home/baronvonj/.local/bin/set_quality.sh:while read fpath; do {
    /home/baronvonj/.local/bin/set_quality.sh:} done <<<$(find "$1" -name "*.mp4" -o -name "*.mkv")```



  • yeah, honestly it makes no sense for this to be an issue. Like I can kinda get it if I’m doing things like unplugging the dock quick connect cable and attaching the type cover keyboard and then trying to wake and it freaks out and needs a reboot. But to be totally unresponsive until a hard power reset even without doing those things is just crazy.





  • baronvonj@piefed.socialtoAsk Lemmy@lemmy.world•*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    2 months ago

    Why say it in a vague way?

    Because being vague in that context is the point. So that they can recontextualize it later, when quotes in a different group/setting. People who see or hear that speech or sound it’s can simply perceive themselves as part of the referenced community and feel included and spoken for.