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
"""Flask Extensions""" | |
import flask | |
import flask_debugtoolbar | |
class DevToolbar: | |
"""Add debug toolbars with json to html | |
Note you must pass `_debug` param to convert the json response | |
""" | |
def __init__(self, app): |
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
/etc/udev/rules.d/hdmi_sound.rules : | |
```SUBSYSTEM=="drm", RUN+="/usr/local/bin/hdmi_sound_toggle", ACTION=="change"``` | |
/usr/local/bin/hdmi_sound_toggle: | |
``` | |
!/bin/sh | |
USER_NAME=`who | grep "(:0)" | cut -f 1 -d ' '| sort -u` | |
USER_ID=`id -u $USER_NAME` | |
HDMI_STATUS=`cat /sys/class/drm/card0/*HDMI*/status` | |
export PULSE_SERVER="unix:/run/user/"$USER_ID"/pulse/native" |
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 | |
""" | |
===================================== | |
PEP 20 (The Zen of Python) by example | |
===================================== | |
Usage: %prog | |
:Author: Hunter Blanks, hblanks@artifex.org / hblanks@monetate.com |