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
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
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.
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.
gist.github.com/david-crespo...
gist.github.com/david-crespo...
```
$ 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
```
```
$ 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
```
notify /usr/bin/env bash /etc/keepalived/notifyscript.sh
which is also a hack but one that gets me closer to actually functioning router.
notify /usr/bin/env bash /etc/keepalived/notifyscript.sh
which is also a hack but one that gets me closer to actually functioning router.
print('Hello world!')
print('Hello world!')
#!/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
#!/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
#!usr/bin/env -S NODE_OPTIONS=foo node
Wasnt working
#!usr/bin/env -S NODE_OPTIONS=foo node
Wasnt working
Interest | Match | Feed
`git co` will list out all my branches and I can choose which branch to switch to.
† github.com/charmbracele...
`git co` will list out all my branches and I can choose which branch to switch to.
† github.com/charmbracele...
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).
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).
#! /usr/bin/env python3
import pty, os, time
pty.spawn("sh", lambda fd: time.sleep(1/150) or os .read(fd, 1))
#! /usr/bin/env python3
import pty, os, time
pty.spawn("sh", lambda fd: time.sleep(1/150) or os .read(fd, 1))
Also, if you can and its not completely inconvenient, "#!/usr/bin/env sh" (though I think "#!/bin/sh" should be fine there).
Also, if you can and its not completely inconvenient, "#!/usr/bin/env sh" (though I think "#!/bin/sh" should be fine there).
sudo dnf install n8n
sudo dnf install n8n
JSRをサポートする`deno publish`と`deno add`コマンドを追加。
`deno task`で実行するスクリプトをクロスプラットフォームで実行できる`#!/usr/bin/env -S`というshebangをサポート。
`DENO_FUTURE=1`でDeno2に含まれる予定の変更をop… "" https://deno.com/blog/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
SwiftBar は bash 経由で動く(BitBar互換のため)ので、bash 経由で正常に動作するよう、標準出力にメニューなどを出して終了します。
エラーを見る限り、php が見つからなくてエラーになっています。
スクリプトの先頭の
#!/usr/bin/env php
を php の実行ファイルのフルパス(which phpで出てきます)に書き換えると動くかもしれません
例:
#!/usr/local/bin/php
SwiftBar は bash 経由で動く(BitBar互換のため)ので、bash 経由で正常に動作するよう、標準出力にメニューなどを出して終了します。
エラーを見る限り、php が見つからなくてエラーになっています。
スクリプトの先頭の
#!/usr/bin/env php
を php の実行ファイルのフルパス(which phpで出てきます)に書き換えると動くかもしれません
例:
#!/usr/local/bin/php
| Details | Interest | Feed |