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
#!/bin/bash | |
set -e | |
NONE='\x1b[m' | |
BOLD='\x1b[1m' | |
RED='\x1b[31m' | |
ITALIC='\x1b[3m' | |
tmp_folder="/tmp/cudnn_install" |
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
#!/bin/bash | |
while true | |
do | |
random_str=" $(cat /dev/urandom | tr -dc 'a-zA-Z' | fold -w 15 | head -n 1)" | |
echo $random_str | |
echo -ne " $random_str" | xclip -selection c | |
sleep 0.1 | |
done |
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
#define MAJOR_VER 1 | |
#define MINOR_VER 0 | |
#ifdef _WIN32 | |
#define WINDOWS | |
#endif | |
#ifdef WINDOWS | |
#include <Windows.h> | |
#include <delayimp.h> |
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
#https://ubuntuforums.org/showthread.php?t=1145596 | |
# Make mounting point | |
sudo mkdir /mnt/mountpoint # Pick the name for "mountpoint" and use it throughout | |
sudo chown -R ${USER}: /mnt/mountpoint # Example: sudo chown -R john: /mnt/mountpoint | |
# find UUID | |
sudo blkid | grep "sdb1" # assuming it's sdb1 | |
# edit fstab |
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
#/bin/bash | |
# https://auvidea.com/firmware/ | |
path_jetpack="./64_TX2/" | |
backup_folder="./64_TX2_backup_files/" | |
patch_name="auvidea-kernel-J90-J120-v1.6" | |
wget "http://www.auvidea-pcb.com/firmware/tx2/1.6/${patch_name}.zip" | |
unzip "${patch_name}.zip" |
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
// From the excellent answer here : https://stackoverflow.com/a/17955149/7036639 | |
/* | |
* daemonize.c | |
* This example daemonizes a process, writes a few log messages, | |
* sleeps 20 seconds and terminates afterwards. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> |
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
#https://askubuntu.com/a/470636/609717 | |
# Install package | |
sudo apt install -y ccache | |
# Update symlinks | |
sudo /usr/sbin/update-ccache-symlinks | |
# Prepend ccache into the PATH | |
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc |
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
import cv2 | |
import pyzed.camera as zcam | |
import pyzed.types as tp | |
import pyzed.core as core | |
import pyzed.defines as sl | |
def main(): | |
print("Running...") | |
init = zcam.PyInitParameters() |
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
#!/bin/bash | |
# Assume coco folder from YOLO | |
coco_original_path="/path/to/coco" | |
coco_new_path="/path/to/coco_customclass" | |
mkdir -p ${coco_new_path} | |
cp -R ${coco_original_path}/annotations ${coco_new_path}/ | |
cp -R ${coco_original_path}/common ${coco_new_path}/ |