Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am zeroping on github.
  • I am zeroping (https://keybase.io/zeroping) on keybase.
  • I have a public key ASAk1qmaHJnAtQDyGD5-9rAIsdQByo55rE_yf50ndTqkRQo

To claim this, I am signing this object:

@zeroping
zeroping / parseparts.py
Created April 27, 2017 06:04
A parser for the part files of the MKS ksp mod.
import os
class Converter:
def __init__(self, part, name, inputs, outputs):
U-Boot 1.1.4 (Mar 21 2017 - 13:15:34)
A60 (ar955x) U-boot
- Scorpion 1.0DRAM:
sri
Scorpion 1.0
ath_ddr_initial_config(177): (32bit) ddr2 init
tap = 0x00000003
Tap (low, high) = (0x3, 0x1d)
[ 52.200000] br-lan1: port 3(ap0_2) entered forwarding state
[ 52.280000] br-lan1: port 4(ap1_2) entered forwarding state
shell disabled..Please press Enter to activate this console.
<uboot is booting, with a TFTP server accessible on network port 1>
...
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.100.8; our IP address is 192.168.100.9
Filename 'fwupgrade.cfg'.
Load address: 0x80100000
Loading: *
Retry count exceeded; starting again
Retry...
@zeroping
zeroping / bluejeans-repack.sh
Created February 12, 2021 20:33
Repacks a BlueJeans package to make it install-able under Debian.
#!/bin/bash
if [ -z "$*" ]; then echo "Pass in the path to a BlueJeans Debian package to fix it."; exit 1; fi
filename=$1
newfilename=${filename:0:(-4)}-fixed.deb
echo "This will remove the libnss3 check from BlueJeans package $filename"
# This is all needed because BlueJeans uses a preinstall script to run
# dpkg -s libnss3
@zeroping
zeroping / linkind-dimmer.base.yaml
Last active April 15, 2023 04:05
Esphome config for ESP32-based Linkind dimmer switches
# Basic Config
#---
#substitutions:
# # https://esphome.io/guides/configuration-types.html#substitutions
# device_name: esp-br3 # hostname & entity_id
# transition_length: 0s # transition when turning on/off
## Uses a JST24A triac and a second MCU for dimming
esphome:
@zeroping
zeroping / linkind-switch.base.yaml
Created January 7, 2022 04:27
ESPHome config for Linkind relay switch
# Basic Config
#---
#substitutions:
# https://esphome.io/guides/configuration-types.html#substitutions
# device_name: esp-br3 # hostname & entity_id
esphome:
name: ${device_name}
esp32:
@zeroping
zeroping / linkind-switch-timer.base.yaml
Created January 17, 2022 07:15
An ESPHome config for the Linkind two-button relay switch - implements local timer behavior
# Basic Config
#---
#substitutions:
# https://esphome.io/guides/configuration-types.html#substitutions
# device_name: esp-br3 # hostname & entity_id
# warn_seconds: '60' #time to switch to red LED to indicate upcomming expiry
# increase_seconds: '(60 * 7)' # how much time to add each press
# This is for the Linkind WS240010008 two-button relay switch
@zeroping
zeroping / AWP12L.base.yaml
Created March 20, 2022 17:41
ESPHome template for the AWPL12L dual-outlet energy-monitoring wifi smart plug
#substitutions:
#device_name: awp12l-whatever
## Higher value gives lower watt readout
#current_res: "0.001106"
## Lower value gives lower voltage readout
#voltage_div: "2029"
# device info from here:
# https://templates.blakadder.com/avatar_AWP12L.html