Skip to content

Instantly share code, notes, and snippets.

View planetceres's full-sized avatar

Matt Shaffer planetceres

View GitHub Profile
@planetceres
planetceres / RESET_USB_KERNEL_MODULE.md
Last active May 4, 2024 14:11
Restart/reset USB kernel module in Ubuntu 18.04 without rebooting
@planetceres
planetceres / retry.sh
Created July 6, 2020 02:47 — forked from sj26/LICENSE.md
Bash retry function
# Retry a command up to a specific numer of times until it exits successfully,
# with exponential back off.
#
# $ retry 5 echo Hello
# Hello
#
# $ retry 5 false
# Retry 1/5 exited 1, retrying in 1 seconds...
# Retry 2/5 exited 1, retrying in 2 seconds...
# Retry 3/5 exited 1, retrying in 4 seconds...
@planetceres
planetceres / README.md
Last active September 2, 2021 15:15
Simple depth image viewer

Simple depth image viewer

pip3 install open3d

To run:

@planetceres
planetceres / VOLUME.md
Last active June 22, 2020 21:45
Capture Volume controls from python

Capture Volume controls from python

pip install pynput

Key object:

Volume Down

@planetceres
planetceres / TRACE_PYTORCH.md
Last active July 3, 2021 10:24
Show stack trace with warnings pytorch
@planetceres
planetceres / DEEPKIT.md
Last active July 8, 2020 16:46
Install Deepkit Linux

Install Deepkit

curl https://gist.githubusercontent.com/planetceres/454a110f2440304563179fec6488ecaa/raw/be076725bc1b61c2e422d781379fedaba6e4868a/install_deepkit.sh > install_deepkit.sh
sudo chmod +x ./install_deepkit.sh
bash install_deepkit.sh
@planetceres
planetceres / deepkit.desktop
Created May 2, 2020 18:43
deepkit.desktop
[Desktop Entry]
Name=Deepkit
Exec=deepkit
Terminal=false
Type=Application
Icon=/usr/share/icons/hicolor/0x0/apps/deepkit.png
StartupWMClass=Deepkit
X-AppImage-Version=12
Comment=Deepkit application to manage, track, and debug deep learning/machine learning experiments and models.
Categories=Development;
@planetceres
planetceres / install_pcl_vtk.sh
Created April 5, 2020 21:09
Install PCL and VTK Ubunt 18.04
#!/usr/bin/env bash
# PCL
sudo apt install libpcl-dev
# VTK
# Ref: https://discourse.vtk.org/t/installing-vtk-in-ubuntu-18-04/2147/4
sudo apt install cmake \
@planetceres
planetceres / README.md
Last active February 25, 2020 03:50
Ray ActorPool to operate on a fixed pool of actors