This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check for "LSN" or "LP" | |
# "LP" => LG screen, classic IPS, susceptible to Image Retention | |
# "LSN" => Samsung screen, PLS, not susceptible to Image Retention | |
# Anything else? Not sure about that. | |
# The original version began the pipeline with | |
#ioreg -wl0 | |
# But recently, a gigantic dictionary got dropped in my I/O Kit registry (and I'm not sure why) | |
# and because the -l flag makes everything display, that was wasting a lot of CPU time. | |
# This version only reads the "EDID" key (hence -k EDID), greatly improving performance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
import csv | |
import gzip | |
import itertools | |
import os | |
import re | |
import sys | |
import traceback | |
from datetime import datetime as dt, timedelta as td |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# The above line tells the OS to run this file with the executable stored | |
# in /bin/bash; in this case GNU BASH. | |
keydir=$HOME/.ssh/ | |
keyfile=id_rsa | |
keyloc=$keydir/$keyfile | |
ruser= # The username of the remote user | |
rhost= # The IP Address or DNS name of the remote host | |
rport=22 # Remote port to connect to; this will nearly always be TCP 22. |