gst-launch-1.0 -e videotestsrc pattern=ball num-buffers=300 \
! video/x-raw,width=640,height=480,framerate=30/1 \
! nvvideoconvert \
! nvv4l2h265enc \
! mp4mux \
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
"""Asyncio loop example. | |
* Long running tasks | |
* Graceful shutdown with task cancellation | |
* Signal handling (SIGTERM, SIGINT) | |
* Use uvloop for better performance | |
""" | |
import asyncio | |
import signal |
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
cd ~ | |
# Copy nv* gstreamer elements | |
mkdir nvgst | |
cp /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnv* ./nvgst/ | |
# Dependency dir | |
mkdir -p /build | |
# Upgrade packages and install missing dependencies |
- Download
create_device_certs.sh
andopenssl_root_ca.cnf
into the same directory - Create a dir
ROOTS
and download the required root certificates into it. Search forIoT CA Certificates
in 1Password and download all 3 attached files. - Run the script with the device name for example
sh create_device_certs.sh mssdaq01
- 4 files are needed on the device. Find them in
certificates/deviceid-certificates/to-device
. For example
This document contains useful software and links to documentation that we have found to be useful when working with Jetson AGX Xavier.
Copied from: https://git.its.aau.dk/WW82ZE/docs_xavier/src/branch/master
Nvidia Developer forum Jetson AGX Xavier topic
Jetson Community Projects
Table of Contents:
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
I originally posted a similar answer here, but hopefully this clears things up: | |
NVIDIA/k8s-device-plugin#168 (comment) | |
The set of packages collectively referred to as nvidia-docker consists of the following components (and their dependencies from top to bottom): | |
nvidia-docker2 | |
nvidia-container-runtime | |
nvidia-container-toolkit | |
libnvidia-container | |
Unfortunately, the documentation across the repos that host code for these projects is inconsistent and misleading at times. |
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
# loop = asyncio.get_event_loop() | |
# loop.run_until_complete(event_source_async(your_handler)) | |
import asyncio | |
import random | |
import time | |
def randint(): | |
return random.randint(-100, 100) |
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
# Github CLI commands to work with dependabot PRs | |
# List dependabot PRs that need review | |
gh pr list -l dependencies --search "status:success review:none" | |
gh pr list -A app/dependabot --search "status:success review:none" | |
# Instruct dependabot to merge all reviewed PRs, oldest first | |
gh pr list \ | |
-A app/dependabot \ | |
--search "status:success review:approved" \ |
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
-- Show all foreign keys that do not have an index on them | |
-- Potential performance problem if the join is performed often | |
SELECT | |
tc.table_name, | |
kcu.column_name, | |
tc.constraint_name | |
FROM | |
information_schema.table_constraints AS tc | |
JOIN |
NewerOlder