Skip to content

Instantly share code, notes, and snippets.

View teuteuguy's full-sized avatar

Timothee Cruse teuteuguy

View GitHub Profile
@teuteuguy
teuteuguy / pi3---cmdline.txt
Last active February 2, 2024 03:55
Plexamp on Raspberry Pi
console=serial0,115200 console=tty1 root=PARTUUID=7173ccd0-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cfg80211.ieee80211_regdom=SG
@teuteuguy
teuteuguy / watchtower.md
Last active July 18, 2022 06:14
docker

Watch Tower

Run Once

$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once
@teuteuguy
teuteuguy / dog.py
Last active July 2, 2022 07:26
dog-detector.py
#!/usr/bin/python3
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
@teuteuguy
teuteuguy / hello.py
Last active July 2, 2022 03:53
Minion
from sense_hat import SenseHat
import time
sense = SenseHat()
sense.set_rotation(270)
def empty_col(col):
sense.set_pixel(col, 0, (0, 0, 0))
sense.set_pixel(col, 1, (0, 0, 0))
sense.set_pixel(col, 2, (0, 0, 0))
@teuteuguy
teuteuguy / README.md
Last active July 3, 2022 07:26
jetson-nano-setup-v2.sh

Setup Jetson Nano Headless

1 - Download and flash image from Jetson Download Center

2 - On your other computer, use the serial terminal application to connect via host serial port to the Jetson Nano (115200)

  • Review and accept NVIDIA Jetson software EULA
@teuteuguy
teuteuguy / husky-for-tower.md
Last active February 7, 2022 02:26
Getting Husky to work with Tower

Create a .huskyrc file in your user folder, add following lines:

PATH="/usr/local/bin:$PATH"

If you are using nvm

. ~/.nvm/nvm.sh
@teuteuguy
teuteuguy / multiple-interfaces.md
Last active September 18, 2020 05:59
PiHole setup

By default only supports eth0 on the raspberry pi. To get it to work on both eth0 and wlan0 => create /etc/dnsmasq.d/99-interfaces.conf file. with

interface=wlan0

@teuteuguy
teuteuguy / setup-for-gg-with-sagemaker-neo-dlr.sh
Last active June 27, 2020 12:41
Greengrass prep with DLR for Ubuntu and Debian
#!/bin/bash
# Tested on:
# - RPI
# - Jetson Nano
# exit when any command fails
set -e
# Run this on your device with sudo
@teuteuguy
teuteuguy / install-nodejs.sh
Last active April 11, 2022 17:17
NodeJS for Ubuntu/Debian
#!/bin/bash
# Tested for NodeJS 12.18.0
# Tested on:
# - RPI
# - Jetson Nano
# Run this on your device with sudo
if [ "$EUID" -ne 0 ]
Get everything
v4l2-ctl --device /dev/video0 --all
List all the controls webcam has.
v4l2-ctl -d 0 -l
List all the resolutions
v4l2-ctl --list-formats-ext
List all the formats