Table of Contents
- Installation & Set-up
- Installation
- Using Virtual Environment
# Adapted from https://medium.com/rahasak/change-terminal-color-when-ssh-e2a13ccee681 | |
# Caleb Hyde, 2023-02-15 | |
# REQUIRED: You will need to create a new "Prod" profile in iterm2, and change the color theme on that profile. | |
# tabc <profile name> do the profile change | |
# Refer to https://iterm2colorschemes.com/ for lots of suggestions | |
function tabc() { | |
NAME="$@"; if [ -z "$NAME" ]; then NAME="Default"; fi | |
echo -n -e "\033]50;SetProfile=$NAME\a" | |
} |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
@author: Caleb Hyde | |
@date: November, 2020 | |
""" | |
import numpy as np | |
import pybullet as pb | |
import pybullet_data |
import asyncio | |
import random | |
import time | |
WORKERS = 3 | |
QUEUE_DEPTH = 5 | |
async def worker(name, queue): | |
results = [] |
#!/usr/bin/env python | |
from time import time, sleep | |
import curses | |
from curses import wrapper | |
from curses.textpad import Textbox, rectangle | |
from math import sin, cos | |
def main(stdscr): |
Why are gists named after the first file and not the description field above?? | |
# README.md | |
``` | |
sudo sh -c { | |
cp oled-system.service /etc/systemd/system/oled-system.service | |
cp oled_system.py /usr/local/bin/oled-system.py | |
systemctl daemon-reload | |
systemctl enable oled-system | |
} |
data "aws_ami" "windows" { | |
most_recent = true | |
name_regex = "Windows_Server-2019-English-Full-Base*" | |
owners = ["amazon"] | |
} | |
variable "windows_instance_type" { | |
default = "g3s.xlarge" | |
} |
cat >> ~/.ssh/config <<EOF | |
Host mycroft | |
User pi | |
Hostname <mycroft's IP> | |
EOF | |
ssh mycroft "mkdir ~/.ssh && chmod 700 ~/.ssh" | |
ssh mycroft "cat >> ~/.ssh/authorized_keys " < ~/.ssh/id_rsa.pub |
/* | |
Based on stock "DigitalReadSerial" | |
Reads a digital input on several pins, prints the result to the serial monitor, turns on corresponding LED | |
*/ | |
//Name all the pins that the pushbuttons are on | |
int pushButton1 = 2; | |
int pushButton2 = 3; | |
int pushButton3 = 4; |
#!/usr/bin/env python | |
from boto import connect_s3 | |
import argparse | |
parser = argparse.ArgumentParser(description="Read file names and S3 bucket path") | |
parser.add_argument('bucket_name', type=str, help='Name of the S3 bucket to connect to.') | |
parser.add_argument('file_path', type=str, help='path to a file on S3') | |
args = parser.parse_args() |