- The panel driver must be loaded before the panel platform device is added
- Regulator vcc_lcd_en must come up in time for the dp bridge driver not to fail
- Deferred probing of the edp driver expects to find a panel, else it will fail
- pinctl-0 becomes available too late for all the above, thus we can atm not depend on it
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 python3 | |
''' | |
standard message: | |
0x55 0x54 <action> <x lo> <x hi> <y lo> <y hi> 0xFF 0x00 <checksum> | |
actions: | |
- 0x01 - touch down | |
- 0x02 - touch hold |
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
PAPER := bittorrent | |
SOURCES := Makefile IEEEtran.cls IEEEabrv.bib references.bib | |
GENERATED := $(PAPER).pdf $(PAPER).aux $(PAPER).bbl $(PAPER).log | |
RM ?= rm -f | |
%.pdf : %.tex %.bbl | |
while true; do \ | |
out=$$(pdflatex $< 2>&1); \ | |
echo "$$out"; \ |
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
_G['vardumpstr'] = function(var, longform, prefix, refs, out) | |
prefix = prefix or '' | |
refs = refs or {} | |
out = out or '' | |
if type(var) == 'table' then | |
local cyclic = not not refs[var] | |
refs[var] = true | |
out = out .. prefix .. tostring(var) .. (cyclic and ' (cyclic)' or '') .. '\n' | |
if not cyclic then |
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
remove_trailing_whitespace() { | |
sed -i 's/[[:space:]]\+$//g' $@ | |
} |
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
unexpand_files() { | |
( | |
set -e -o pipefail | |
first_only='--first-only' | |
args='' | |
OPTIND=1 | |
while getopts "at:" opt; do | |
case "$opt" in | |
a) args="$args -a"; first_only='';; | |
t) args="$args -t $OPTARG";; |
This gist is deprecated. See https://github.com/TobleMiner/bash-shenanigans/tree/master/bind-zonefile-checker/.gitlab-ci for updates
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
ACTION=="bind", SUBSYSTEMS=="usb", RUN="/usr/local/sbin/libvirt-hotplug.py usb" |
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 python3 | |
import sys | |
import socket | |
import colorsys | |
import re | |
from struct import unpack, calcsize | |
from collections import namedtuple |
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 bash | |
set -e -o pipefail | |
BUS="1" | |
hex_to_byte() { | |
echo "$((16#$1))" | |
} | |
extract_byte() { |