-
SDK Manager https://developer.nvidia.com/sdk-manager https://docs.nvidia.com/sdk-manager/docker-containers/index.html
-
Ubuntu 22.04 + Docker does NOT work.
-
lsusb
-
the device should show as: Bus 001 Device 002: ID 0955:7023 NVidia Corp.
- Install Jetson. For the Orbitty carrier see https://connecttech.com/jetson/nvidia-jetson-support/jetson-tx2-support/
- Optimize storage and RAM.
- Install the dependencies needed by Stream.
- Run the Docker command for Stream. Make sure to use the correct Docker image:
docker run ... platerecognizer/alpr-stream:jetson-beta-r32.5.0
.
After running those commands, you should have the following packages (output from dpkg --list
).
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
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/python3 | |
import os | |
import sys | |
from pathlib import Path | |
NOTES = Path('~/Documents/notes.txt').expanduser() | |
def to_clipboard(text): | |
os.system('echo "%s"|xclip -f -r -sel c > /dev/null' % str(text).strip()) |
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/python3 | |
import argparse | |
import imghdr | |
import webbrowser | |
from http.server import HTTPServer, SimpleHTTPRequestHandler | |
from os import chdir | |
from pathlib import Path | |
from urllib.parse import parse_qs, urlparse | |
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 io | |
import json | |
import requests | |
from PIL import Image | |
def main(): | |
im = Image.new('RGB', (300, 300)) | |
# or |
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 tornado.ioloop | |
import tornado.web | |
class MyRequestHandler(tornado.web.RequestHandler): | |
def log_exception(self, typ, value, tb): | |
rollbar.report_exc_info((typ, value, tb)) | |
super().log_exception(typ, value, tb) |
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
// ==UserScript== | |
// @name Spotify Ad Muter | |
// @version 1.2 | |
// @namespace http://tampermonkey.net/ | |
// @description Detects and blocks ads on Spotify. Automatically mute Spotify ads. Turn sound on again after the ad. | |
// @match https://*.spotify.com/* | |
// @grant none | |
// @run-at document-start | |
// @downloadURL https://gist.github.com/marcbelmont/1ea63270867a4e8786dd5f172d8d4489/raw | |
// @updateURL https://gist.github.com/marcbelmont/1ea63270867a4e8786dd5f172d8d4489/raw |
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
# Unicode Icons in Ranger File Manager | |
# | |
# How to install? | |
# https://gist.github.com/marcbelmont/c12d2fd2519a372d3b347f665b37e74a#gistcomment-3240106 | |
from __future__ import absolute_import, division, print_function | |
from itertools import repeat | |
import ranger.api |
I hereby claim:
- I am marcbelmont on github.
- I am marcemile (https://keybase.io/marcemile) on keybase.
- I have a public key ASBAQ4uMeCYD353vGrasriJsy1LIKcSajl89Mfux2_8ClAo
To claim this, I am signing this object:
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
local ParallelCriterionSkip, parent = torch.class('nn.ParallelCriterionSkip', 'nn.Criterion') | |
function ParallelCriterionSkip:__init(repeatTarget) | |
parent.__init(self) | |
self.criterions = {} | |
self.weights = {} | |
self.gradInput = {} | |
self.repeatTarget = repeatTarget | |
end |
NewerOlder