Skip to content

Instantly share code, notes, and snippets.

View dudo's full-sized avatar
🤙

Brett Dudo dudo

🤙
View GitHub Profile
@dudo
dudo / setup.sh
Last active March 5, 2024 06:14
Nvidia Orin NX on Ubuntu 22.04 and Jetson 36.2
# From shit-box
sudo apt install -y qemu-user-static
mkdir ~/nvidia
cd ~/nvidia
wget -O bsp.tbz2 -L https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v2.0/release/jetson_linux_r36.2.0_aarch64.tbz2
wget -O rootfs.tbz2 -L https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v2.0/release/tegra_linux_sample-root-filesystem_r36.2.0_aarch64.tbz2
@dudo
dudo / Dockerfile
Last active February 14, 2024 18:34
Local development with docker
# Update appropriately to find your languages long term support release, or latest.
FROM node:20
# Embrace linux standards.
WORKDIR /usr/src/app
# Embrace layers. Update to appropriate language/framework file(s).
ADD package*.json ./
# Grab the rest of the local files.
@dudo
dudo / nvbuild.sh
Last active February 14, 2024 08:50
Updating Kernel of Nvidia Jetson
#!/bin/bash
# Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
@dudo
dudo / cmd_api_main.go
Last active February 6, 2024 06:36
Go Multi-Server
package main
import (
"net/http"
"os"
"os/signal"
"syscall"
"github.com/orbservability/io/pkg/server"
pb "github.com/orbservability/schemas/v1"
@dudo
dudo / jeep.md
Last active October 31, 2023 17:48

IMG_0861

Jeep

  • 2006 Wrangler Unlimited (LJ)
    • 4.0L
    • 6 speed manual

Drivetrain

REQUIRED_CONFIGS=(
CONFIG_BPF
CONFIG_BPF_SYSCALL
CONFIG_NET_CLS_BPF
CONFIG_BPF_JIT
CONFIG_NET_CLS_ACT
CONFIG_NET_SCH_INGRESS
CONFIG_CRYPTO_SHA1
CONFIG_CRYPTO_USER_API_HASH
CONFIG_CGROUPS
@dudo
dudo / deploy_to_cloudfront.yaml
Created August 31, 2022 06:30
GitHub Actions
on:
push:
branches:
- master
name: Git Tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
check_version:
name: Check Version
def step(min: 1, comp: 20)
return 0 if min == comp
(1 - (min - comp).abs / (min - comp).to_f) / 2
end
@dudo
dudo / intrumentation.rb
Last active February 22, 2022 20:32
Tracing via a macro
module Instrumentation
DEFAULT_OPERATION = 'method.execution'
def self.trace(operation: DEFAULT_OPERATION, resource:, **options)
options.merge!(resource: resource).compact!
Datadog.tracer.trace(operation, options) do |span|
Datadog::Analytics.set_measured(span)
yield
end
rescue StandardError