Skip to content

Instantly share code, notes, and snippets.

View borland502's full-sized avatar

Jeremy Hettenhouser borland502

  • ICF
  • Fairfax, VA
View GitHub Profile
@borland502
borland502 / gist:edf1045e6f8c09e5ee7bf884d8c9b8e7
Last active July 29, 2024 14:33
Formula for `sensors` avg nvme temp output with a k10temp element
```bash
nvme-pci-0500
Adapter: PCI adapter
Composite: +107.3°F (low = -459.7°F, high = +179.3°F)
(crit = +184.7°F)
Sensor 1: +107.3°F (low = -459.7°F, high = +117503.3°F)
Sensor 2: +121.7°F (low = -459.7°F, high = +117503.3°F)
nvme-pci-1000
Adapter: PCI adapter
@borland502
borland502 / .zsh
Created November 8, 2020 20:59
WSL Compliant ZSH with ZPlug and Linuxbrew
# ZPLUG INIT
source ~/.zplug/init.zsh
# TODO Linuxbrew check and installation
FILE_OSRELEASE='/proc/sys/kernel/osrelease'
export PATH=$HOME/bin:/usr/local/bin:'/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin':$PATH
# HACK https://github.com/Microsoft/WSL/issues/1838
## My goal is a complete embargo on all xiaomi traffic, and related Chinese social media, as I have local control over their devices.
## Much of this information has been gathered from 3rd party sources and credit is given where known.
# https://github.com/anthony-wang/meiyou-xiaomi/blob/master/hosts1
10.99.168.145
10.99.184.96
10.235.124.13
a.stat.xiaomi.com
abtest.mistat.xiaomi.com
account.preview.n.xiaomi.net
#!/usr/bin/env bash
# Script can be used with linux, WSL (Windows), or MacOS with linuxbrew or homebrew.
PLATFORM=${OSTYPE:-'unknown'}
if [[ $PLATFORM == 'unknown' ]]; then
echo "OS not recognized. Quitting"
exit -1
fi