Skip to content

Instantly share code, notes, and snippets.

@fakerybakery
Created March 17, 2026 02:53
Show Gist options
  • Select an option

  • Save fakerybakery/3f9f4045430bee72b335dea0f06b9d09 to your computer and use it in GitHub Desktop.

Select an option

Save fakerybakery/3f9f4045430bee72b335dea0f06b9d09 to your computer and use it in GitHub Desktop.
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