Skip to content

Instantly share code, notes, and snippets.

View theely's full-sized avatar

Elia Palme theely

  • Switzerland
View GitHub Profile
@theely
theely / gist:071844902c9868cd5478194311e24df6
Created March 1, 2021 07:25
Behavioural Consistency - Testing Script
-- Testing Script to meause Behavioural Consistency
-- Credits to: Mactac for creating the original script
-- Instruction to install and run the script: https://youtu.be/tocH6IgbK7k
tricks = {{}, {}, {}}
-- Flip
tricks[1][1] = {200,800,0,0,0} -- Throttle bust {time,throttle,yaw,roll,pitch}
tricks[1][2] = {35,-1024,0,256,0} -- flip {time,throttle,yaw,roll,pitch}
@theely
theely / INSTRUCTIONS
Last active August 1, 2022 17:42
ngrok service for Raspberry Pi
1) set-up ngrok
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok
ngrok config add-authtoken <your token here>
2) install ssmtp
sudo apt install ssmtp
3) crate /etc/init.d/ngrok
4) crate /home/pi/.config/ngrok/ngrok.yml
5) create a gmail app password to be used in the sendNgrokAddress.py file
6) crate /home/pi/sendNgrokAddress.py
7) set-up ngrok service
#!/bin/bash
#SBATCH --nodes=2
#SBATCH --time=0-00:15:00
#SBATCH --account=a-csstaff
#SBATCH --partition=mi300
cat > env.toml <<- EOF
image = "/capstor/scratch/cscs/palmee/rocm-7.0.2-dev.sqsh"