This file contains 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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim:fenc=utf-8 | |
# | |
# Copyright © 2020 Théo Morales <theo.morales.fr@gmail.com> | |
# | |
""" | |
Merge several yolo datasets into one, while removing all images | |
without annotations. |
This file contains 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
#!/usr/bin/env bash | |
############A############### DESCRIPTION ############################### | |
# This script deploys a folder (recursively) to an IP address given as # | |
# argument, or, if none, to the DHCP leases. # | |
# # | |
# DEPENDENCIES: sshpass, scp # | |
######################################################################## | |
This file contains 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
#Script by Adrian Crenshaw | |
#With info from Michael Miller, Inaky Perez-Gonzalez and VMWare | |
#By default, disable it. | |
#ACTION=="add", SUBSYSTEMS=="usb", RUN+="/bin/sh -c 'echo 0 >/sys$DEVPATH/authorized'" | |
ACTION=="add", SUBSYSTEMS=="usb", RUN+="/bin/sh -c 'for host in /sys/bus/usb/devices/usb*; do echo 0 > $host/authorized_default; done'" | |
#Enable hub devices. There may be a better way than this. | |
ACTION=="add", ATTR{bDeviceClass}=="09", RUN+="/bin/sh -c 'echo 1 >/sys$DEVPATH/authorized'" |