Skip to content

Instantly share code, notes, and snippets.

View eddiem3's full-sized avatar

Eddie Massey III eddiem3

View GitHub Profile
@eddiem3
eddiem3 / yolov8-torchserve-requirements.txt
Last active December 26, 2023 20:24
Requirements file for running the YOLOv8 TorchServe example
ultralytics>=8.0.144
pynvml==11.4.0
captum
@eddiem3
eddiem3 / enable_can_jetson_orin.sh
Created January 6, 2023 15:51
A shell script to enable CAN on the Nvidia Jetson devices. You'll want to run this script on startup.
#!/bin/bash
#Apply pinmux register settings (Below are for AGX Orin check with Nvidia the settings for your model)
#https://docs.nvidia.com/jetson/archives/r34.1/DeveloperGuide/text/HR/ControllerAreaNetworkCan.html#jetson-platform-details
sudo busybox devmem 0x0c303018 w 0x458
sudo busybox devmem 0x0c303010 w 0x400
sudo busybox devmem 0x0c303008 w 0x458
sudo busybox devmem 0x0c303000 w 0x400
#Load CAN kernel drivers
@eddiem3
eddiem3 / quickbooks.py
Created June 8, 2022 00:53
Using Quickbooks Python API w/ Oaut2
import requests
import webbrowser
from intuitlib.client import AuthClient
from intuitlib.enums import Scopes
client_id='XXXXXXXYYYYYYYY'
client_secret='YYYYYYYYYYYYYY'
redirect_uri='https://URL_HERE.COM/A/B/C/REDIRECT
enviornment='sandbox'
@eddiem3
eddiem3 / launch_melodic.sh
Created February 3, 2022 19:30
Start Melodic Docker with XWindow Screen Display
# If not working, first do: sudo rm -rf /tmp/.docker.xauth
# It still not working, try running the script as root.
XAUTH=/tmp/.docker.xauth
echo "Preparing Xauthority data..."
xauth_list=$(xauth nlist :0 | tail -n 1 | sed -e 's/^..../ffff/')
if [ ! -f $XAUTH ]; then
if [ ! -z "$xauth_list" ]; then
echo $xauth_list | xauth -f $XAUTH nmerge -

Keybase proof

I hereby claim:

  • I am eddiem3 on github.
  • I am digineviim (https://keybase.io/digineviim) on keybase.
  • I have a public key ASAYVlhL189yrhd5YBWYL1YXflW0na2pvadf52T0DXMwIgo

To claim this, I am signing this object:

@eddiem3
eddiem3 / face_detector.py
Created October 23, 2017 03:17
Simple Face Detection with the Haar Cascade Classier using OpenCV
import numpy as np
import cv2
cap = cv2.VideoCapture(0)
face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
while(True):
ret, frame = cap.read()
@eddiem3
eddiem3 / hand_detection.py
Created October 23, 2017 02:56
Hand Detection with Convex Hull in OpenCV
import numpy as np
import cv2
hand = cv2.imread("hand.jpg", 0)
ret, threshold = cv2.threshold(hand, 10, 255, cv2.THRESH_BINARY)
contours, hiearchy = cv2.findContours(threshold, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
basic_contours = cv2.drawContours(hand, contours, -1, (0,255,0))
@eddiem3
eddiem3 / model-1_4.sdf
Created May 3, 2017 02:23
Modified sdf file for iRobot Create
<?xml version="1.0" ?>
<sdf version="1.4">
<model name="create">
<link name="base">
<inertial>
<pose>0.001453 -0.000453 0.029787 0 0 0</pose>
<inertia>
<ixx>0.058640</ixx>
<ixy>0.000124</ixy>
@eddiem3
eddiem3 / user_generator.py
Created July 23, 2015 18:32
A script to generate a bunch of new users for Parse
import json,httplib,random
from faker import Factory
num_users = 1000 #number of users to generate
#Eastablish connect to parse api
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
#Create users and send to Parse