Created
March 17, 2026 02:53
-
-
Save fakerybakery/3f9f4045430bee72b335dea0f06b9d09 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from huggingface_hub import run_job | |
| job = run_job( | |
| image="python:3.12", | |
| command=["bash", "-c", "curl -sL https://s3.amazonaws.com/sshx/sshx-x86_64-unknown-linux-musl.tar.gz | tar xz && echo 'export PS1=\"\\u@server:\\w\\$ \"' >> /etc/bash.bashrc && ./sshx"], | |
| flavor="cpu-upgrade", | |
| timeout=4 * 60 * 60, # 4 hours in seconds | |
| ) | |
| print(f"Job URL: {job.url}") | |
| print(f"Job ID: {job.id}") | |
| print("\nView logs at the URL above to get your sshx link!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment