Skip to content

Instantly share code, notes, and snippets.

View useafterfree's full-sized avatar
🤘
Please add pointing to projects, tx

Nathan Trujillo useafterfree

🤘
Please add pointing to projects, tx
View GitHub Profile
@LrWm3
LrWm3 / .dockerignore
Last active January 4, 2024 22:10
DeepStream SDK 6.2 x86 and Jetson docker image pyds and gst-python configured
__pycache__
@Realiserad
Realiserad / istio_demo.md
Last active March 29, 2025 09:27
Set up Istio in MicroK8s

Deploy Istio

VM setup

Start from a minimal installation of Ubuntu Server 22.04.

In this case, I've set up a VM with two network interfaces, one NAT for connection to the internet, and one bridged network interface to connect from the host to the guest VM.

@rdpetrusek
rdpetrusek / test-page.yaml
Created October 6, 2021 17:46
Kubernetes, Istio, Cert Manager, and Let's Encrypt - test page
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-app
spec:
selector:
matchLabels:
app: test-app
template:
metadata:
LINUX_VERSION=5.9-rc7
LINUX_KERNEL_VERSION=mainline-${LINUX_VERSION}
ZFS_VERSION=0.8.6
# Find ROOT_DIR
ROOT_DIR=/c
if [ ! -z "$(ls -A /mnt/c)" ]; then
ROOT_DIR=/mnt/c
fi

PWM fan control in Linux with a Gigabyte Aorus motherboard

  • install lm-sensors with your package manager

sensors

If it won't show any fan/speed, continue

sensor-detect

@daehahn
daehahn / wsl2-network.ps1
Last active September 28, 2025 12:00
WSL 2 TCP NETWORK FORWARDING
# WSL2 network port forwarding script v1
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell,
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter.
# written by Daehyuk Ahn, Aug-1-2020
# Display all portproxy information
If ($Args[0] -eq "list") {
netsh interface portproxy show v4tov4;
exit;
}
@demiters
demiters / microk8s-aliases.sh
Created July 24, 2020 12:47
Shell aliases for microk8s
#!/bin/bash
# Sets up aliases for microk8s on the server
echo "alias m='microk8s'
alias k='microk8s kubectl'
alias h='microk8s helm3'" >> ~/.bash_aliases
source ~/.bash_aliases
syntax = "proto3";
package sensors;
option go_package="sensorpb";
message SensorRequest {
}
message SensorResponse {
int64 value = 1;
}
@iykekings
iykekings / webpack.config.js
Created February 14, 2020 16:57 — forked from bo01ean/webpack.config.js
swc-loader for create-react-app webpack
'use strict';
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const resolve = require('resolve');
const PnpWebpackPlugin = require('pnp-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const InlineChunkHtmlPlugin = require('react-dev-utils/InlineChunkHtmlPlugin');
@Kevinrob
Kevinrob / clean.md
Last active August 21, 2025 13:39
Clean up microk8s registry
registry=localhost:32000
repositories=$(curl ${registry}/v2/_catalog)
for repo in $(echo "${repositories}" | jq -r '.repositories[]'); do
  echo $repo
  tags=$(curl -sSL "http://${registry}/v2/${repo}/tags/list" | jq -r '.tags[]')
  for tag in $tags; do
    echo $tag
    curl -v -sSL -X DELETE "http://${registry}/v2/${repo}/manifests/$(
 curl -sSL -I \