Skip to content

Instantly share code, notes, and snippets.

View piit79's full-sized avatar

Petr Sedlacek piit79

View GitHub Profile
@piit79
piit79 / code.py
Created December 18, 2024 09:00
42. Keebs Frood Tester
import board
import digitalio
import usb_hid
from time import sleep
# from adafruit_hid.keyboard import Keyboard
# from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
LOOP_INTERVAL = 50 # milliseconds
@piit79
piit79 / Sofle-RGB-V3-_-Sofle-Choc-V3.kbd.json
Last active June 1, 2024 14:23 — forked from mattfoster/SofleKeyboard.kbd.json
Sofle RGB V3 / Sofle Choc V3
[
{
"name": "Sofle RGB V3 / Sofle Choc V3",
"author": "Josef Adamcik x Brian Low x 42. Keebs",
"switchMount": "cherry"
},
[
{
"y": 0.2,
"x": 3
@piit79
piit79 / nagging_alert_notification.yaml
Last active August 7, 2025 15:41 — forked from pavax/nagging_alert_notification.yaml
Home Assistant Alert Notification Blueprint
blueprint:
name: Nagging Alerting Action Automation
description: >
Trigger alert actions based on the state of a given sensor.
The actions repeat as long as the sensor is in the given state.
Optionally actions can be trigered when the alert has been resolved.
domain: automation
source_url: https://gist.github.com/piit79/f0c20d49d8713e80bf919352059e375f
input:
sensor_entity:
[
{
"name": "SofleKeyboard",
"author": "Josef Adamcik",
"switchMount": "cherry"
},
[
{
"y": 0.2,
"x": 3
@piit79
piit79 / gist:35953bf701b5363d3fe7
Created September 23, 2014 08:13
N9005 2G Data with cm-11-20140922-UNOFFICIAL
D/RILJ ( 1373): [3835]> RADIO_POWER on
E/RILD ( 263): GP-MGR: evt(100)
E/RILD ( 263): DoRadioPower(): 2
E/RILD ( 263): Radio_Power State(1,0, 3)
E/RILD ( 263): SendMessage: svc(DMS), msg(0x2E:QMI_DMS_SET_OPERATING_MODE), sync(1), internal(0), size(4)
D/RIL-QMI ( 271): qmuxd: RX 51 bytes on fd=24 from qmux_client_id=2
D/RIL-QMI ( 271): [SMDPORT] >> BEFORE, Write SMD Port [fd = 10] [msg_len = 17]
D/RIL-QMI ( 271): [SMDPORT] << AFTER, Write SMD Port [rc = 0]
D/RIL-QMI ( 271): qmuxd: TX message on fd=24, to qmux_client_id=2, len=54
E/RILD ( 263): ReceiveMessage: svc(DMS), msg(0x2E:QMI_DMS_SET_OPERATING_MODE), indi(0), size(8), err(0)
@piit79
piit79 / gist:e6b492fb8151c05852fd
Created September 22, 2014 13:28
N9005 2G Data with M10 Snapshot (take 2)
D/RILJ ( 1382): [4191]> RADIO_POWER on
E/RILD ( 263): GP-MGR: evt(100)
E/RILD ( 263): DoRadioPower(): 2
E/RILD ( 263): Radio_Power State(1,0, 3)
E/RILD ( 263): SendMessage: svc(DMS), msg(0x2E:QMI_DMS_SET_OPERATING_MODE), sync(1), internal(0), size(4)
D/RIL-QMI ( 272): qmuxd: RX 51 bytes on fd=24 from qmux_client_id=2
D/RIL-QMI ( 272): [SMDPORT] >> BEFORE, Write SMD Port [fd = 10] [msg_len = 17]
D/RIL-QMI ( 272): [SMDPORT] << AFTER, Write SMD Port [rc = 0]
D/RIL-QMI ( 272): qmuxd: TX message on fd=24, to clientID = 2, len=54
E/RILD ( 263): ReceiveMessage: svc(DMS), msg(0x2E:QMI_DMS_SET_OPERATING_MODE), indi(0), size(8), err(0)
@piit79
piit79 / gist:1a24977afaddbac967fe
Created September 22, 2014 09:35
N9005 2G Data with M10 Snapshot
D/GsmDCT ( 1379): [ApnContext:default] getDataProfile: mDataProfile=[ApnSettingV2] Vodafone CZ, 180, 23003, internet, null, null, null, null, null, -
1, default | supl, IP, IP, true, 0
D/GsmDCT ( 1379): isOnlySingleDcAllowed(2): false
D/GsmDC-1 ( 1379): clearSettings
D/Dcc ( 1379): onDataStateChanged: dcsList=[] mDcListActiveByCid={}
D/Dcc ( 1379): onDataStateChanged: dcsToRetry=[]
D/GsmDCT ( 1379): onDisconnectDone: attached, ready and retry after disconnect
D/GsmDCT ( 1379): startAlarmForReconnect: delay=20000 action=com.android.internal.telephony.data-reconnect.default apn={mApnType=default mState=IDLE
mWaitingDataProfiles={[[ApnSettingV2] Vodafone CZ, 180, 23003, internet, null, null, null, null, null, -1, default | supl, IP, IP, true, 0]} mWaitingA
pnsPermanentFailureCountDown=1 mDataProfile={[ApnSettingV2] Vodafone CZ, 180, 23003, internet, null, null, null, null, null, -1, default | supl, IP, I
@piit79
piit79 / gist:607b42060d9f90faef37
Created September 21, 2014 08:20
N9005 2G Data Problem
After installing cm-11-20140921-UNOFFICIAL-hlte:
Wi-Fi disabled, data limited to 2G, data disabled and toggled on:
================================================
D/GsmDCT ( 1774): handleMessage msg={ when=0 what=270366 arg1=1 target=com.android.internal.telephony.dataconnection.DcTracker }
D/GsmDCT ( 1774): CMD_SET_USER_DATA_ENABLE enabled=true
D/GsmDCT ( 1774): onTrySetupData: reason=dataEnabled
D/GsmDCT ( 1774): setupDataOnConnectableApns: dataEnabled
D/GsmDCT ( 1774): setupDataOnConnectableApns: apnContext {mApnType=hipri mState=IDLE mWaitingDataProfiles={[[ApnSettingV2] Vodafone CZ, 167, 23003, internet, null, null, null, null, null, -1, default | supl, IP, IP, true, 0]} mWaitingApnsPermanentFailureCountDown=1 mDataProfile={null} mReason=dataDisabled mDataEnabled=false mDependencyMet=true}
D/GsmDCT ( 1774): setupDataOnConnectableApns: apnContext {mApnType=mms mState=IDLE mWaitingDataProfiles={null} mWaitingApnsPermanentFailureCountDown=0 mDataProfile={null} mReason=dataDisabled mDataEnabled=false