Skip to content

Instantly share code, notes, and snippets.

View dudo's full-sized avatar
🤙

Brett Dudo dudo

🤙
View GitHub Profile
@dudo
dudo / github_deployment_reset.sh
Created January 18, 2025 21:30
Delete Github Deployments
# Variables
OWNER="owner"
REPO="repo"
# List all deployments
DEPLOYMENTS=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/$OWNER/$REPO/deployments | jq -r '.[].id')
# Check if any deployments were found
# Check disk names
lsblk -o NAME,MODEL,SIZE,TYPE,MOUNTPOINT
# Install required packages. nfs-common will be necessary on ALL clients
sudo apt update
sudo apt install -y mdadm nfs-kernel-server nfs-common
# Create the RAID 1 array from /dev/sda and /dev/sdb
sudo mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sdb <<EOF
yes
@dudo
dudo / github_goodies.md
Last active December 6, 2024 04:45
GitHub Features and Functionality

GitHub Features and Functionality

Here’s a comprehensive list of GitHub functionality, including many of the "hidden gems" that provide extra features

Repository Management

  • Repositories

    Standard Git repositories hosted on GitHub.

@dudo
dudo / setup.sh
Last active March 18, 2025 10:56
Kubernetes-ready Nvidia Orin NX flashing for Jetson 36.3 on a turing-pi2
# From shit-box
# Need to modify the host doing the flashing
sudo vi /etc/default/nfs-kernel-server
RPCMOUNTDOPTS="--manage-gids --no-nfs-version 4"
sudo reboot
sudo apt install -y qemu-user-static make git-core build-essential bc flex bison ncurses-dev libssl-dev gcc-aarch64-linux-gnu
export JETSON_VERSION=36.3
@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 / nvbuild.sh
Last active June 27, 2024 11:25
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 / Dockerfile
Last active August 28, 2024 21:32
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.
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