Skip to content

Instantly share code, notes, and snippets.

@d4h0
d4h0 / get-edid.py
Created December 4, 2019 12:14 — forked from mvollrath/get-edid.py
Using xrandr CLI to write EDID from a connected monitor to stdout
#!/usr/bin/env python
import re
import subprocess
def get_edid_for_output(connector: str) -> bytes:
xrandr = subprocess.run(
['xrandr', '--props'],
check=True,
@d4h0
d4h0 / test.js
Last active September 20, 2015 10:20
// Generated by CoffeeScript 1.9.3
(function() {
FlowRouter.route("/foo", {
triggersEnter: [
function(context, redirect) {
console.log("foo trigger");
return redirect("/bar");
}
],
action: function(params, query_params) {