This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#This script will shut down an instance after 30mins of cpu idling below threshold. | |
# | |
# Add to instance metadata with `gcloud compute instances add-metadata \ | |
# instance-name --metadata-from-file startup-script=idle-shutdown.sh` and reboot | |
# NOTE: requires `bc`, eg, sudo apt-get install bc | |
# | |
# Modified from https://stackoverflow.com/questions/30556920/how-can-i-automatically-kill-idle-gce-instances-based-on-cpu-usage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, fnmatch, argparse | |
import numpy as np | |
import OpenEXR, Imath, json | |
import shutil, glob | |
# TODO update to handle stereo camera | |
# | |
# python3 greppy_metaverse_dataset_renamer.py --p /path/to/dataset | |
SUBFOLDER_MAP = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### This script wraps all executables in the anaconda bin folder so that they can be used without adding Anaconda | |
### to the path which would break some functionality of ROS (Robot Operating System) | |
### | |
### The commands e.g. jupyter notebook will cause the script to add anaconda to the path, start jupyter notebook | |
### and after jupyter notebook terminated remove anaconda from the path again | |
### | |
### Notable commands: | |
### * release-the-snake Adds conda to the path and removes all aliases defined by this script | |
### Conda will stay in the PATH until the end of the session (terminal is closed) or | |
### until "cage-the-snake" is called |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* capturing from UVC cam | |
* requires: libjpeg-dev | |
* build: gcc -std=c99 capture.c -ljpeg -o capture | |
*/ | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> |