This file contains 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
#!/bin/bash | |
set -eux | |
cat <<EOF | |
Real-time kernel patching. Per: | |
https://frankaemika.github.io/docs/installation_linux.html | |
The just scriptifies stuff. | |
EOF |
This file contains 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
( | |
set -eux | |
mkdir -p ~/snap/barrier/682/.local/share/barrier/SSL/Fingerprints | |
openssl req -x509 -nodes -days 365 -subj /CN=Barrier -newkey rsa:4096 -keyout ~/snap/barrier/682/.local/share/barrier/SSL/Barrier.pem -out ~/snap/barrier/682/.local/share/barrier/SSL/Barrier.pem | |
openssl x509 -fingerprint -sha1 -noout -in ~/snap/barrier/682/.local/share/barrier/SSL/Barrier.pem > ~/snap/barrier/682/.local/share/barrier/SSL/Fingerprints/Local.txt | |
) |
This file contains 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
Moved to https://github.com/EricCousineau-TRI/repro/blob/master/shell/apptainer_stuff/build_and_install_apptainer.sh | |
Permalink: https://github.com/EricCousineau-TRI/repro/blob/6f0681f7/shell/apptainer_stuff/build_and_install_apptainer.sh |
This file contains 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
# Only tested on Ubuntu 20.04 | |
# Not sure if `snap` distro incl. video feature. | |
cd /somewhere | |
# rust setup, but don't mess w/ PATH automatically | |
curl https://sh.rustup.rs -sSf -o rustup.sh | |
bash ./rustup.sh --no-modify-path | |
# gifski |
This file contains 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
$ ray_exec_all {cluster}.yaml 'ray stop' | |
+ ray_exec_all {cluster}.yaml 'ray stop' | |
ips: ['{head_ip}', '{worker_1_ip}', '{worker_2_ip}'] | |
[{head_ip}] + ray stop | |
[{worker_1_ip}] + ray stop | |
[{worker_2_ip}] + ray stop | |
[{worker_1_ip}] Send termination request to `{site_packaes}/ray/core/src/ray/raylet/raylet --raylet_socket_name=/tmp/ray/session_2022-03-04_01-57-45_338123_21232/sockets/raylet --store_socket_name=/tmp/ray/session_2022-03-04_01-57-45_338123_21232/sockets/plasma_store --object_manager_port=8076 --min_worker_port=10002 --max_worker_port=19999 --node_manager_port=0 --node_ip_address={worker_1_ip} --redis_address={head_ip} --redis_port=6379 --maximum_startup_concurrency=32 --static_resource_list=node:{worker_1_ip},1.0,accelerator_type:V100,1,CPU,32,GPU,4,memory,176972165530,object_store_memory,75845213798 "--python_worker_command=/usr/bin/python3.8 {site_packaes}/ray/workers/setup_worker.py {site_packaes}/ray/workers/default_worker.py --node-ip-address={worker_1_ip} --node-manager-port=RAY_NODE_M |
This file contains 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
[2022-03-01 00:56:43,436 I 2347 2347] io_service_pool.cc:35: IOServicePool is running with 1 io_service. | |
[2022-03-01 00:56:43,446 I 2347 2347] store_runner.cc:30: Allowing the Plasma store to use up to 76.9778GB of memory. | |
[2022-03-01 00:56:43,446 I 2347 2347] store_runner.cc:46: Starting object store with directory /dev/shm, fallback /tmp/ray, and huge page support disabled | |
[2022-03-01 00:56:43,451 I 2347 2370] dlmalloc.cc:146: create_and_mmap_buffer(76977799176, /dev/shm/plasmaXXXXXX) | |
[2022-03-01 00:56:44,453 I 2347 2347] grpc_server.cc:112: ObjectManager server started, listening on port 8076. | |
[2022-03-01 00:56:44,510 I 2347 2347] node_manager.cc:302: Initializing NodeManager with ID <node-id-1> | |
[2022-03-01 00:56:44,511 I 2347 2347] grpc_server.cc:112: NodeManager server started, listening on port 45613. | |
[2022-03-01 00:56:44,519 I 2347 2398] agent_manager.cc:85: Monitor agent process with pid 2397, register timeout 30000ms. | |
[2022-03-01 00:56:44,522 I 2347 2347] raylet.cc:103: Raylet of id, <node-id-1> sta |
This file contains 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
Usage: ray [OPTIONS] COMMAND [ARGS]... | |
Try 'ray --help' for help. | |
Error: No such command 'help'. | |
ubuntu@ip-10-161-49-237:~$ ray start --help | |
+ /home/ubuntu/anzu/run //tools:ray start --help | |
Usage: ray start [OPTIONS] | |
Start Ray processes manually on the local machine. |
This file contains 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
#!/bin/bash | |
set -eux | |
flags=() | |
: "${flags[@]:-}" # bad | |
: "${flags[@]}" # good | |
flags=("thing w/ space" "other.thing") |
This file contains 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
#!/bin/bash | |
shopt -s expand_aliases # only necessary if using in script | |
alias env-isolate='env -i HOME=$HOME DISPLAY=$DISPLAY SHELL=$SHELL TERM=$TERM USER=$USER PATH=/usr/local/bin:/usr/bin:/bin _ISOLATED=1' | |
alias bash-isolate='env-isolate bash --norc' |
This file contains 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
# Contains configuration settings for linting Python. | |
[tool.isort] | |
# Configuration file for `isort`. | |
# | |
# Invocation: | |
# | |
# cd {project} | |
# isort ./my_subdir | |
# |