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 = "ubuntu@129.80.241.243" | |
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 = "ubuntu@129.80.241.243" | |
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 = "ubuntu@129.80.241.24" | |
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 = "ubuntu@129.80.241.24" | |
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 os | |
import shlex | |
import rp | |
from fire import Fire | |
ON_RELAY = os.environ.get("USER") == "ubuntu" | |
ON_WORKBENCH = os.environ.get("NETFLIX_APP") == "workbench" | |
ON_LAPTOP = not ON_RELAY and not ON_WORKBENCH |
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 os | |
import shlex | |
import rp | |
from fire import Fire | |
ON_RELAY = os.environ.get("USER") == "ubuntu" | |
ON_WORKBENCH = os.environ.get("NETFLIX_APP") == "workbench" | |
ON_LAPTOP = not ON_RELAY and not ON_WORKBENCH |
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 os | |
import shlex | |
import rp | |
from fire import Fire | |
ON_RELAY = os.environ.get("USER") == "ubuntu" | |
ON_WORKBENCH = os.environ.get("NETFLIX_APP") == "workbench" | |
ON_LAPTOP = not ON_RELAY and not ON_WORKBENCH |
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 os | |
import shlex | |
import rp | |
from fire import Fire | |
def do_tunnel( | |
WORKBENCH_NAME="example", | |
RELAY_ADDR="ubuntu@141.148.35.19", |
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
# 2025-08-18 17:05:19.549069 | |
import taichi as ti | |
import math | |
import time | |
import numpy as np | |
# Initialize Taichi to run on the GPU with standard 32-bit precision. | |
ti.init(arch=ti.gpu, default_fp=ti.f32) | |
# --- Configuration --- |
NewerOlder