pacman -S sane
gpasswd -a moritz scanner
gpasswd -a moritz lp
sane-find-scanner
nano /etc/sane.d/saned.conf
192.168.1.0/24
systemctl enable saned.socket
systemctl start saned.socket
This file contains hidden or 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
import os | |
import json | |
from http.server import BaseHTTPRequestHandler,HTTPServer | |
from _thread import start_new_thread | |
song_info = {} | |
#This class will handles any incoming request from | |
#the browser | |
class RequestHandler(BaseHTTPRequestHandler): |
This file contains hidden or 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
import time | |
import random | |
import socket | |
import struct | |
import argparse | |
class CANMessage: | |
id = 0 | |
dlc = 0 | |
data = bytearray(0x00) |
This file contains hidden or 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
from threading import Timer | |
def debounce(wait, argument_dependent=False): | |
""" Decorator that will postpone a functions | |
execution until after wait seconds | |
have elapsed since the last time it was invoked. """ | |
def decorator(fn): | |
def debounced(*args, **kwargs): | |
def call_it(): |
This file contains hidden or 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
import re | |
import base64 | |
import math | |
import threading | |
import argparse | |
metadata = {} | |
lock = threading.Lock() | |
def update_metadata(type, code, length, data): |
This file contains hidden or 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
<html> | |
<head> | |
</head> | |
<body> | |
<!--<svg viewBox="0 0 1000 1000"> | |
<path | |
id="path" | |
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" | |
d="M 500,500 A 500,500 0 1 1 0,500 500,500 0 1 1 1000,500" |
This file contains hidden or 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 | |
in="$1" | |
out="$2" | |
if [[ $# -ne 2 ]] ; then | |
echo "Usage: $0 <input> <output>" | |
exit | |
fi |
This file contains hidden or 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/sh | |
# | |
# Read-only Root-FS for Raspian | |
# | |
# Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with | |
# overlayfs integrated in Linux Kernel >= 3.18. | |
# | |
# Originally written by Axel Heider (Copyright 2012) for Ubuntu 11.10. | |
# This version can be found here: | |
# https://help.ubuntu.com/community/aufsRootFileSystemOnUsbFlash#Overlayfs |
This file contains hidden or 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
diff -Naur a/lib/net_mosq.c a/lib/net_mosq.c | |
--- a/lib/net_mosq.c 2015-12-20 16:21:08.560283714 +0100 | |
+++ a/lib/net_mosq.c 2015-12-20 16:13:17.750398153 +0100 | |
@@ -166,7 +166,7 @@ | |
#ifdef WITH_BROKER | |
# ifdef WITH_WEBSOCKETS | |
if(mosq->wsi){ | |
- libwebsocket_callback_on_writable(mosq->ws_context, mosq->wsi); | |
+ lws_callback_on_writable(mosq->wsi); | |
return 0; |
echo "pa 30 00" | cec-client
sets physical address to 3.0.0.0
- which is HDMI Port 3 - receiving remote control signals from different hdmi port
/boot/config.txt
add dtoverlay=dwc2
/boot/cmdline.txt
add modules-load=dwc2
(not dwc2,g_serial
- see below)
OlderNewer