Skip to content

Instantly share code, notes, and snippets.

@nothingface0
Last active August 4, 2023 13:26
Show Gist options
  • Save nothingface0/dfe97a6b6e6cfd7a4e5a388f3d246f02 to your computer and use it in GitHub Desktop.
Save nothingface0/dfe97a6b6e6cfd7a4e5a388f3d246f02 to your computer and use it in GitHub Desktop.
Machete collection
#!/bin/bash
""":"
python_cmd="python"
python3 -V >/dev/null 2>&1 && python_cmd="python3"
echo Using $python_cmd, running ${python_cmd} $0 ${1+"$@"}
exec ${python_cmd} $0 ${1+"$@"}
"""
print("Hello from Python")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment