#!usr/bin/env
get a load of this 😹
October 27, 2025 at 7:47 PM
I'm sure this will be controversial, because it's a pro-AI post on a notoriously anti-AI site (BlueSky).

I'm almost 45 and have never written a UNIX shell script. So I asked ChatGPT for help, and it gave me the following in a matter of seconds. It's really good at this sort of thing.

1/2
October 24, 2025 at 1:26 PM
I've been messing with .NET 10 on macOS and Linux. It's been ~18 years but C# is still as good as I remember.

And you can run single-file CS scripts with "dotnet run script.cs"!

Shebangs even work! "#!/usr/bin/env dotnet run"

And it's pretty fast! Excellent work @damianedwards.com and team.
September 21, 2025 at 5:10 PM
someday we'll switch to cloudflare, but in the meantime here's a script to find the date of last deployment from each of your $20/mo vercel team members 😡
gist.github.com/david-crespo...
January 27, 2025 at 6:05 PM
npx will not look at "main" it looks at "bin" instead, this works as intended:

```
$ mkdir my-create-app
$ cd my-create-app
$ npm init -y
$ printf '#!/usr/bin/env node\nconsole.log("hello")' > index.js
$ npm pkg set bin="index.js"
$ cd ..
$ npx ./my-create-app
hello
```
December 20, 2024 at 7:02 PM
I guess for now I'll tell keepalived:

notify /usr/bin/env bash /etc/keepalived/notifyscript.sh

which is also a hack but one that gets me closer to actually functioning router.
August 19, 2025 at 7:01 PM
[auteur] oui, le #perl one liner c'est bien, mais vous avez déjà tenté le one liner dans le one liner pour ne mettre à jour que les lignes utiles dans votre rrd depuis votre CSV ?
August 29, 2025 at 3:04 PM
#!/usr/bin/env python
print('Hello world!')
November 15, 2024 at 7:21 AM
The code:
#!/usr/bin/env python3
import subprocess
# altusds review notes:
# - needs to run where mail is set up (that's a whole other game there; setting it up anonymously good luck)
# - needs the files referenced in order to run it
# - run in a docker container to make it be self-contained
April 30, 2025 at 4:58 PM
I am also a #!/usr/bin/env bash stickler
November 7, 2025 at 11:45 PM
Responses API: streaming bugs? I was working on this in the weekend. Below is my working code for using Streaming API with Gpt-image-1. #!/usr/bin/env python3 """ Minimal demo of using GPT-4.1 with GPT-image-1 for image generation with streaming. Shows ...

Interest | Match | Feed
Origin
community.openai.com
June 9, 2025 at 12:28 PM
I used it to get around portability issues that I still dont fully understand with the pnpm global script shim

#!usr/bin/env -S NODE_OPTIONS=foo node

Wasnt working
April 18, 2025 at 3:09 AM
Anyone (maybe @shanselman) know why bash on linux/osx is okey with `//usr/bin/env` in files but on windows bash variations that is considered an error ?
November 17, 2024 at 12:44 AM
Extending git with bash and gum† is bundles of fun.

`git co` will list out all my branches and I can choose which branch to switch to.

github.com/charmbracele...
December 3, 2024 at 3:47 PM
But changing it to just "read" and it has no problem
September 19, 2025 at 5:37 PM
Plutôt simple de faire un client bsky (608 caractères)

Celui là attend qu'il y ait des nouveaux posts sur votre timeline et les post avec l'interface notify de linux (qui colle une petite notification sur le bureau).
March 17, 2025 at 3:44 PM
# *runs this on you*
#! /usr/bin/env python3

import pty, os, time
pty.spawn("sh", lambda fd: time.sleep(1/150) or os .read(fd, 1))
March 26, 2025 at 9:24 PM
Dear universe, "#!/usr/bin/env bash", not "#!/bin/bash".
Also, if you can and its not completely inconvenient, "#!/usr/bin/env sh" (though I think "#!/bin/sh" should be fine there).
July 30, 2025 at 12:11 AM
#!/usr/bin/env bash
sudo dnf install n8n
October 26, 2025 at 9:28 PM
SDL: dialog/unix: remove /usr/bin/env indirection
SDL: dialog/unix: remove /usr/bin/env indirection
github.com
December 12, 2024 at 4:57 AM
Deno v1.42リリース。
JSRをサポートする`deno publish`と`deno add`コマンドを追加。
`deno task`で実行するスクリプトをクロスプラットフォームで実行できる`#!/usr/bin/env -S`というshebangをサポート。
`DENO_FUTURE=1`でDeno2に含まれる予定の変更をop… "" https://deno.com/blog/v1.42
March 31, 2024 at 12:51 PM
Show HN: #!/usr/bin/env docker run (github.com)

Main Link | HN Post
January 14, 2024 at 4:03 AM
もしかして普段お使いのシェルは(というデフォルトは) zsh ですか。
SwiftBar は bash 経由で動く(BitBar互換のため)ので、bash 経由で正常に動作するよう、標準出力にメニューなどを出して終了します。
エラーを見る限り、php が見つからなくてエラーになっています。
スクリプトの先頭の

#!/usr/bin/env php

を php の実行ファイルのフルパス(which phpで出てきます)に書き換えると動くかもしれません

例:
#!/usr/local/bin/php
February 8, 2024 at 10:06 AM
RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read) @shanth Here’s a sample code to reproduce the issue. #!/usr/bin/env python import os import time import json import logging from typing import ...

| Details | Interest | Feed |
Origin
community.openai.com
May 17, 2025 at 1:52 AM