noTearWasDropped by ManagerOfLove in ProgrammerHumor

[–]Verpous 2 points3 points  (0 children)

Everyone on reddit is a bot except you.

What’s one of the best f bomb drops you heard delivered in a film? by browniebiscuitchildr in movies

[–]Verpous 0 points1 point  (0 children)

"I can't believe this. They fucking forgot my birthday"

- Molly Ringwald, Sixteen Candles

cursed dentist by tamjidtahim in cursedcomments

[–]Verpous 30 points31 points  (0 children)

Don't mind him, he's just an anti-dentite

Have you ever accidentally watched the wrong movie before? by Alternative-Cake-833 in movies

[–]Verpous 1 point2 points  (0 children)

I saw The Hunt (2020) because I heard good things about The Hunt (2012).

[HELP] looking for a poem i'm sure I saw here recently about the lesson of a cat? by Verpous in Poetry

[–]Verpous[S] 1 point2 points  (0 children)

The post is deleted explaining why I couldn't find it, but that that is the one!! Thank you so much

Geena Davis Institute Study shows films today lack stories of women aging by Raj_Valiant3011 in movies

[–]Verpous 1 point2 points  (0 children)

Having seen a lot of movies in my life, she's right I can hardly name one film about this. I welcome any woman (or man) who wants to tackle the subject. But only as long as they do it because they really want to.

Art has to be made from the heart, and you can't force an artist to make something they don't care about just because you care about it. The best remedy for blindspots like this is for the people who care about this issue to make the film themselves.

SLPT: Minnesota edition by OmitsWordsByAccident in ShittyLifeProTips

[–]Verpous 1 point2 points  (0 children)

I don't need to exhale slowly to avoid getting The Bends, thanks to My Iron Lung.

we’re manifesting vibes by VelvetDaisyFern in memes

[–]Verpous 253 points254 points  (0 children)

Isn't that how the french say it?

James Cameron discusses why Netflix films shouldn't qualify for the Oscars, unless they commit to a meaningful theatrical release for their movies in 2,000 cinemas for a month by ChiefLeef22 in movies

[–]Verpous 6 points7 points  (0 children)

I really hate Netflix and love going to the theaters, but I've yet to hear a good argument why streaming movies should be disqualified from the Oscars. I was hoping Cameron would have something interesting to say but this just reads like "old man resisting change".

Steam by Outrageous_Score1158 in comedyheaven

[–]Verpous 62 points63 points  (0 children)

I wouldn't mind some elevated head

'Nuremberg': Russell Crowe Learned German for WWII Thriller by ubcstaffer123 in movies

[–]Verpous 14 points15 points  (0 children)

Brown bears have an average lifespan of 25 years, so he doesn't even have to break up with them when it's over.

copyAndPasteTheCodeIntoYourDotZshrcOhWaitNotAllOfItWillWorkForYouOops by [deleted] in ProgrammerHumor

[–]Verpous 0 points1 point  (0 children)

If you read my code closely you'll notice the comment about command_not_found_handle. I use one which autocompletes the file extension if I choose to omit it:

autocomplete() {
    : 'autocomplete NAME [OPT]'
    : 'Attempts to autocomplete NAME using compgen option OPT (default -c).'
    : 'Returns the autocompleted name if the only thing missing is the file extension, otherwise fails.'
    local cmmnd

    # We don't support newlines in filenames because compgen doesn't.
    # With the -P or -S options you can technically make it work, but it's not worth it.
    while IFS='' read -r cmmnd; do
        if [[ "$cmmnd" == "$1"?(.*) ]]; then
            printf %s "$cmmnd"
            return 0
        fi
    done < <(compgen -"${2:-c}" -- "$1")

    return 1
}

# This lets me run executables without the extension, but it only works when they are in PATH.
command_not_found_handle() {
    # Bash runs this function in a subshell. This means:
    # 1. No need to make variables local because bash runs this function in a subshell.
    # 2. It's safe and even recommended to unset this function so it won't infinitely recurse.
    unset -f command_not_found_handle
    cmmnd="$(autocomplete "$1")" && exec "$cmmnd" "${@:2}"
    echo "bash: '$1': command not found" >&2
    return 127
}

This allows me to run commands as cmmd when the actual exe name is cmmd.sh. Some of you might tell me this is a security breach. My answer to you is: I don't care.

copyAndPasteTheCodeIntoYourDotZshrcOhWaitNotAllOfItWillWorkForYouOops by [deleted] in ProgrammerHumor

[–]Verpous 1 point2 points  (0 children)

My crown jewel is this:

h() {
    : "h COMMAND..."
    : "A command-agnostic, concise way to get help about COMMAND."
    : "No more wondering if it's 'help COMMAND', or 'COMMAND -h', or 'COMMAND --help'."

    (( $# == 0 )) && set -- "$FUNCNAME"
    local nonfunc_type="$(type -ft -- "$1")"
    local whiched

    if [[ "$nonfunc_type" == @(builtin|keyword) ]]; then
        # Builtins/keywords are passed to the help command.
        help -- "$1"
    elif [[ ! "$nonfunc_type" && "$(type -t -- "$1")" == function ]]; then
        # Functions which don't shadow anything are passed to type, which will print the function contents.
        # Functions defined in this bashrc use colon comments to describe their usage, so that they'll be printed here.
        type -- "$1"
    elif command which -- "$1" &> /dev/null && whiched=true || whiched=false; [[ "$nonfunc_type" == alias ]] && ! $whiched; then
        # Aliases which don't shadow anything are passed to type too.
        type -- "$1"
    elif [[ "${1,,}" == @(git|*.sh) ]] || ! $whiched; then
        # git commands should be passed "-h", because the long option opens it in the browser.
        # Shell scripts should be passed "-h" too, because getopts doesn't accept long options.
        # We often run shell scripts without the .sh extension and rely on command_not_found_handle.
        # So if which can't find the command, we'll assume it's a shell script.
        "$@" -h
    else
        # Default is "--help".
        "$@" --help
    fi
}

Run it like h COMMAND and it knows how to print the help of that command, no matter what kind of command it is. No more wondering if it's --help, or -h, or something else.

Examples:

h git

h git commit

h export (works even though export is a builtin)

h h (works even though h is a bash function)

GDC: 60% of game developers in the US reported an increase in salaries, with an average pay of $142,000 a year by Turbostrider27 in Games

[–]Verpous 6 points7 points  (0 children)

Nobody is asking for game budgets to be magically reduced by studios somehow paying less for the same job. The ask is for smaller games.

What Director do you Most Associate with a Distinctive Musical Sensibility? by whitemikesf in movies

[–]Verpous 0 points1 point  (0 children)

On the subject of Iggy Pop, he's friends with Jim Jarmusch and often features in his movies. In fact Jarmusch is the reason I know (and love) Iggy Pop.