Skip to content

Instantly share code, notes, and snippets.

View kn100's full-sized avatar
💭
Why does github have status now

Kevin Norman kn100

💭
Why does github have status now
View GitHub Profile
@kn100
kn100 / xz_docker_check.sh
Created March 30, 2024 05:45
Hacky bash script to check what version if any of xz is inside your Focker containers.
#!/bin/bash
# Get list of all running Docker containers
containers=$(docker ps --format "{{.Names}}")
# Loop through each container
for container in $containers; do
# Get container image
image=$(docker inspect --format='{{.Config.Image}}' "$container")
@kn100
kn100 / dashboard.json
Last active February 1, 2023 14:49
Grafana dashboard for ESP32/BME680 Project here: https://kn100.me/aqi
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",

Keybase proof

I hereby claim:

  • I am kn100 on github.
  • I am kn100 (https://keybase.io/kn100) on keybase.
  • I have a public key ASCJpb-QhKxKyn66lfp19BYnLheAu8zhl6fTw3rsRp6L7wo

To claim this, I am signing this object:

@kn100
kn100 / Dell xps 13 + non HiDPI display fixer
Created October 14, 2019 13:29
A script that forces your internal Dell XPS 13 4k display to run at 1600x900, so it runs at a similar DPI to your 2k monitor, thereby solving scaling issues.
#!/bin/sh
sleep 1
xrandr --newmode "1600x900" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
xrandr --addmode eDP-1 1600x900
xrandr --output DP-1 --auto --pos 0x0
xrandr --output eDP-1 --primary --mode 1600x900 --pos 2560x540
@kn100
kn100 / turdcleanser
Created May 4, 2015 08:28
AppleDouble turd cleanser - For windows!
PCT: A command to remove those stupid .AppleDouble folders recursively if you accidentally plague yourself with them - For Windows!
Open PowerShell and then CD to the directory that's been plagued with these fucking things.
Then paste this command. It will delete every instance of .AppleDouble it can find, including inside folders inside the one you chose to run it in.
Get-ChildItem -Include '.AppleDouble' -Recurse -force | Remove-Item -force -Recurse
Voila, turds be gone!