Skip to content

Instantly share code, notes, and snippets.

View TheDevMinerTV's full-sized avatar

DevMiner TheDevMinerTV

View GitHub Profile
@TheDevMinerTV
TheDevMinerTV / unifi-8.0.28-custom-acme-server.patch
Created February 15, 2024 15:22
unifi-8.0.28-custom-acme-server.patch
220a221,222
> --reinstall Re-run the install script instead of running the update script when a instance is already running.
> --force-acme Run UniFi Easy Encrypt under all circumstances.
290a293,296
> --reinstall)
> script_option_reinstall="true";;
> --force-acme)
> script_option_force_acme="true";;
363a370,372
> --custom-acme-server)
@TheDevMinerTV
TheDevMinerTV / env.sh
Last active January 25, 2024 13:04
cuda-sucks
export CUDA_HOME=$(dirname ${BASH_SOURCE[0]})
export PATH=${CUDA_HOME}/bin:${PATH}
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
export CPATH=/usr/local/cuda-12.2/targets/x86_64-linux/include:$CPATH
export CUDA_TOOLKIT_ROOT=${CUDA_HOME}
export CUDAToolkit_ROOT=${CUDA_HOME}
@TheDevMinerTV
TheDevMinerTV / main.go
Last active July 18, 2023 19:34
Multi-encoding response in Golang with fiber
package main
import (
"github.com/gofiber/fiber/v2"
)
type SomethingDto struct {
ID int `json:"id" xml:"id" protobuf:"int,1,opt,name=id"`
}
#!/bin/bash
# You can use this script to copy all public keys from your local machine to multiple remote machines.
#
# Usage: ./copy_ssh_keys.sh <non-root username> <own public key> <folder with pub keys> <host1> [host2]...
#
# Author: DevMiner <devminer@devminer.xyz>
COLOR_RESET='\033[0m'
COLOR_GREEN='\033[0;32m'
@TheDevMinerTV
TheDevMinerTV / Skins.json
Last active February 16, 2024 21:38
Rust skins automatically updated!
{
"Command": "skin",
"Skins": [
{
"Item Shortname": "fun.guitar",
"Skins": [
0,
809801196,
826914904,
809938266,