Skip to content

Instantly share code, notes, and snippets.

@o9-9
o9-9 / discord.theme.css
Last active October 21, 2025 07:51
Discord theme
/**
* @name o9
* @author o9-9
* @description Customizable theme.
**/
@import url("https://gist.github.com/o9-9/51ca53c83ac475fda56899a405820590/raw/2a408da3f23fd44b90eefd2d5eff1202ffe1dd2c/ClearVision.theme.css");
/* SETTINGS */
:root {
@echo off
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
@rem *** Disable Some Service ***
sc stop DiagTrack
sc stop diagnosticshub.standardcollector.service
sc stop dmwappushservice
sc stop WMPNetworkSvc
sc stop WSearch
@o9-9
o9-9 / activate-win7-8-10.bat
Created August 30, 2025 15:48
Activate Windows 7, 8 and 10+
::::::::::::::::::::::::::::::::::::::::::::
:: Elevate.cmd - Version 4
:: Automatically check & get admin rights
::::::::::::::::::::::::::::::::::::::::::::
@echo off
CLS
ECHO.
ECHO =============================
ECHO Running Admin shell
ECHO =============================
@o9-9
o9-9 / bandwidth.json
Created August 18, 2025 22:34
Panel JSON for my network monitoring visualizations as per https://foosel.net/blog/2021-03-28-homelab-uplink-monitoring
{
"alert": {
"alertRuleTags": {},
"conditions": [
{
"evaluator": {
"params": [
10000000
],
"type": "gt"
@o9-9
o9-9 / Dockerfile
Created August 18, 2025 22:29
Simple Dockerfile & composition to run a speedtest2mqtt setup using speedtest-rs from https://github.com/nelsonjchen/speedtest-rs
FROM rust:1.31
WORKDIR /usr/src
RUN git clone https://github.com/nelsonjchen/speedtest-rs
WORKDIR ./speedtest-rs
RUN cargo install --path .
ADD entrypoint.sh /opt/speedtest2mqtt.sh
RUN apt-get update && \
@o9-9
o9-9 / Dockerfile
Created August 18, 2025 22:24
Simple Dockerfile & composition to run a speedtest2mqtt setup using Ookla's CLI speedtest from https://www.speedtest.net/apps/cli
FROM ubuntu:latest
RUN apt-get update \
&& apt-get install -y gnupg1 apt-transport-https dirmngr mosquitto-clients jq
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61 \
&& echo "deb https://ookla.bintray.com/debian generic main" | tee /etc/apt/sources.list.d/speedtest.list \
&& apt-get update \
&& apt-get install -y speedtest
@o9-9
o9-9 / Dockerfile
Created August 18, 2025 22:20
Simple Dockerfile, compose and config example for an infping setup using https://github.com/nickvanw/infping
FROM golang:alpine AS build-env
RUN apk --update add git && \
git clone https://github.com/nickvanw/infping.git $GOPATH/src/github.com/nickvanw/infping && \
cd $GOPATH/src/github.com/nickvanw/infping && \
go get -v && go build -o /infping
# final stage
FROM alpine
COPY --from=build-env /infping /
RUN go mod init && go mod tidy && go build -o /infping
@o9-9
o9-9 / Dockerfile
Created August 18, 2025 22:08
Simple Dockerfile & composition to run a speedtest2mqtt setup using librespeed-cli from https://github.com/librespeed/speedtest-cli
FROM alpine:3.7
ADD entrypoint.sh /opt/speedtest2mqtt.sh
COPY librespeed-cli /usr/bin/librespeed-cli
RUN apk update && \
apk add ca-certificates mosquitto-clients jq && \
rm -rf /var/cache/apk/* && \
chmod 777 /opt/speedtest2mqtt.sh
@o9-9
o9-9 / -configs
Last active August 5, 2025 04:58
Personal configurations for common tools
# Collection of configuration files for random things
- gitconfig
- pwsh git aliases
- init.lua for neovim
- helix config
- base powershell profile
- setup script for win 11
- windows terminal
- duplicati
@o9-9
o9-9 / .bash_profile
Last active August 5, 2025 01:13
my terminal settings for windows
# curl -Lk https://gist.github.com/o9-9/b4bb371d12c0e3054f4f3890735c7053/raw/.bash_profile -o ~/.bash_profile
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh # This loads NVM
export PATH="$HOME/.cargo/bin:$HOME/go/bin:$HOME/Library/Python/3.7/bin:$PATH"
export PATH="$HOME/.config/nvim/plugins/vim-themis/bin:$PATH"
stty -ixon
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'