Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin kn100

View GitHub Profile
@kn100
kn100 / dashboard.json
Last active Aug 7, 2020
Grafana dashboard for ESP32/BME680 Project here: https://kn100.me/aqi
View dashboard.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
View keybase.md

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 Oct 14, 2019
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.
View Dell xps 13 + non HiDPI display fixer
#!/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
AppleDouble turd cleanser - For windows!
View turdcleanser
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!
You can’t perform that action at this time.