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
import rp#pip install rp | |
import sys, io, math | |
import numpy as np | |
import pygame | |
# ------------------------------------------------------------ | |
# Config | |
# ------------------------------------------------------------ | |
W, H = 1260, 800 | |
CANVAS_W = 980 |
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
import rp#pip install rp | |
import sys, io, math | |
import numpy as np | |
import pygame | |
# ------------------------------------------------------------ | |
# Config | |
# ------------------------------------------------------------ | |
W, H = 1260, 800 | |
CANVAS_W = 980 |
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
# INSTANCE: gpu80gb-f OWNER: [email protected] GPUS: 8×NVIDIA A100-SXM4-80GB DATE: Wed Sep 03, 2025 at 4:47:30AM EDT | |
rp call tmuxp_launch_session_from_yaml --- 'session_name: PH-gpu80gb-f | |
windows: | |
- window_name: Jupyter | |
panes: | |
- '"'"'set -x ; ( sleep 0.0 ; open http://localhost:57418 ) & ( while true ; do ( ssh -i $KEY_FILE -L 57418:localhost:57418 [email protected] ) ; done ) # JUPYTER: Runs on laptop'"'"' | |
- window_name: VSCode | |
panes: | |
- '"'"'set -x ; ( sleep 0.3 ; open http://localhost:42499 ) & ( while true ; do ( ssh -i $KEY_FILE -L 42499:localhost:42499 [email protected] ) ; done ) # VSCODE: Runs on laptop'"'"' |
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
# INSTANCE: worker4 OWNER: [email protected] GPUS: 8×NVIDIA A100-SXM4-40GB DATE: Wed Sep 03, 2025 at 3:33:23AM EDT | |
rp call tmuxp_launch_session_from_yaml --- 'session_name: PH-worker4 | |
windows: | |
- window_name: Jupyter | |
panes: | |
- '"'"'set -x ; ( sleep 3.0 ; open http://localhost:44117 ) & ( while true ; do ( ssh -i $KEY_FILE -L 44117:localhost:44117 [email protected] ) ; done ) # JUPYTER: Runs on laptop'"'"' | |
- window_name: VSCode | |
panes: | |
- '"'"'set -x ; ( sleep 3.3 ; open http://localhost:16414 ) & ( while true ; do ( ssh -i $KEY_FILE -L 16414:localhost:16414 [email protected] ) ; done ) # VSCODE: Runs on laptop'"'"' | |
- window_name: Filebrowser |
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
# INSTANCE: gpu80gb-d OWNER: [email protected] GPUS: 8×NVIDIA A100-SXM4-80GB DATE: Wed Sep 03, 2025 at 3:26:05AM EDT | |
rp call tmuxp_launch_session_from_yaml --- 'session_name: PH-gpu80gb-d | |
windows: | |
- window_name: Jupyter | |
panes: | |
- '"'"'set -x ; ( sleep 14.0 ; open http://localhost:20147 ) & ( while true ; do ( ssh -i $KEY_FILE -L 20147:localhost:20147 [email protected] ) ; done ) # JUPYTER: Runs on laptop'"'"' | |
- window_name: VSCode | |
panes: | |
- '"'"'set -x ; ( sleep 14.3 ; open http://localhost:49616 ) & ( while true ; do ( ssh -i $KEY_FILE -L 49616:localhost:49616 [email protected] ) ; done ) # VSCODE: Runs on laptop'"'"' |
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
https://gist.github.com/SqrtRyan/2cc5fde4df8a30c3e9241d8b66bf0214 |
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
import rp | |
from fire import Fire | |
import sys | |
RELAY_ZEROTIER_IP = "10.147.18.206" | |
RELAY_ADDR = "[email protected]" | |
KEY_FILE = "/efs/users/jordanlin/public/.misc/porthopper_eyeline_private.key" | |
SESSION_NAME = "JordanConnections" | |
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
import rp | |
from fire import Fire | |
import sys | |
RELAY_ZEROTIER_IP = "10.147.18.206" | |
RELAY_ADDR = "[email protected]" | |
KEY_FILE = "/efs/users/jordanlin/public/.misc/porthopper_eyeline_private.key" | |
def get_relay_free_ports(): | |
command_string = f'''ssh -o BatchMode=yes -o ConnectTimeout=10 {RELAY_ADDR} -i {KEY_FILE} "python3 -m rp exec '[port for port in range(65535) if not get_port_is_taken(port)]'"''' |
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
import rp | |
from fire import Fire | |
import sys | |
RELAY_ZEROTIER_IP = "10.147.18.206" | |
RELAY_ADDR = "[email protected]" | |
KEY_FILE = "/efs/users/jordanlin/public/.misc/porthopper_eyeline_private.key" | |
def get_relay_free_ports(): | |
command_string = f'''ssh -o BatchMode=yes -o ConnectTimeout=10 {RELAY_ADDR} -i {KEY_FILE} "python3 -m rp exec '[port for port in range(65535) if not get_port_is_taken(port)]'"''' |
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
import rp | |
from fire import Fire | |
import sys | |
RELAY_ZEROTIER_IP = "10.147.18.206" | |
RELAY_ADDR = "[email protected]" | |
KEY_FILE = "/efs/users/jordanlin/public/.misc/porthopper_eyeline_private.key" | |
def get_relay_free_ports(): | |
command_string = f'''"ssh -o BatchMode=yes -o ConnectTimeout=10 {RELAY_ADDR} -i {KEY_FILE} "python3 -m rp exec '[port for port in range(65535) if not get_port_is_taken(port)]'"''' |