Skip to content

Instantly share code, notes, and snippets.

View darkxst's full-sized avatar

Tim L darkxst

View GitHub Profile
@darkxst
darkxst / indicator_yc1175.py
Last active October 16, 2023 09:51
Sonoff iHost - yc1175 test script
#!/usr/bin/python3
import crcmod
import serial
import struct
debug = True
crc16 = crcmod.mkCrcFun(0x11021, initCrc=0)
CMD_TYPE: dict[str, str] = {
@darkxst
darkxst / rules.txt
Last active September 18, 2024 19:39 — forked from denniskupec/rules.txt
KiCad DRC rules for JLCPCB, 2 & 4-layer PCB
(version 1)
#Kicad 7
# 2-layer, 1oz copper
(rule "Minimum Trace Width (outer layer)"
(constraint track_width (min 5mil))
(layer outer)
(condition "A.Type == 'track'"))
(rule "Minimum Trace Spacing (outer layer)"
@darkxst
darkxst / net-test.js
Created May 27, 2012 02:13
network manager test
const nc = imports.gi.NMClient
const NetworkManager = imports.gi.NetworkManager
ncc = nc.Client.new()
ifs = [];
iface_list = ncc.get_devices()
for(let j = 0; j < iface_list.length; j++){
print(iface_list[j].state)
@darkxst
darkxst / net-test.js
Created January 31, 2012 20:29
network manager test
const nc = imports.gi.NMClient
const NetworkManager = imports.gi.NetworkManager
ncc = nc.Client.new()
ifs = [];
iface_list = ncc.get_devices()
for(let j = 0; j < iface_list.length; j++){
print(iface_list[j].state)