Skip to content

Instantly share code, notes, and snippets.

@awensaunders
awensaunders / keybase.md
Created March 26, 2019 15:35
keybase.md

Keybase proof

I hereby claim:

  • I am awensaunders on github.
  • I am awensaunders (https://keybase.io/awensaunders) on keybase.
  • I have a public key ASBpWI4GHAWdI6qZ06dzQBwVYObQNXtmI1c6hy_Ru4LbIwo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am awensaunders on github.
* I am awensaunders (https://keybase.io/awensaunders) on keybase.
* I have a public key ASC6FuWyQOHvjn7cuz06mVfrDQUVROZyQiWqnUys753tLgo
To claim this, I am signing this object:
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@awensaunders
awensaunders / edid-flash.py
Created May 27, 2016 06:44
This script uses i2c-tools to flash a new edid to a display (if the EEPROM storing the edid is not write-protected)
#!/usr/bin/env python3
import subprocess
import time
i2cbus = 3 #This is important. Check which bus your DDC is on with i2cdetect.
offset = 0x00 #Where to start writing
data = [0x00, 0xFF, 0xFF, 0xFF, 0xFF,...] #Your EDID Goes here
for value in data:
print("value", hex(value), "offset", hex(offset)) #for debuging
print(subprocess.check_output(["i2cset", "-y", str(i2cbus), "0x50", str(hex(offset)), str(hex(value))]))