Skip to content

Instantly share code, notes, and snippets.

@wltechblog
wltechblog / factory_install.sh
Last active January 22, 2025 10:50
SD card firmware flash for Wuuk Y0510
#!/bin/sh
# WUUK Y0510 https://amzn.to/4dFlKv1
#
# Instructions
#
# Note: If we increase uboot beyond 256k this needs to be adjusted.
# Build thingino firmware, up to make pack_full, or grab full firmware file from github releases
# -- UPDATE --
# There are now 2 versions of this camera. Most use the sc4336p sensor, a few have the sc401ai sensor.
@EwaldvanGeffen
EwaldvanGeffen / ADXL345ALT.yaml
Created January 9, 2024 00:55
ADXL345.alt.h
esphome:
includes:
- packages/adxl345/ADXL345.alt.h
libraries:
- "Wire"
- "SPI"
- "Adafruit BusIO"
- "Adafruit Unified Sensor"
- "Adafruit ADXL345"
@themactep
themactep / ipc-linux-hijacker.sh
Last active July 10, 2024 08:24
Repack firmware with a blank root password.
#!/bin/bash
#
# Embedded Linux root hijacker
#
# This script repacks firmware replacing existing root password with a blank password.
# Tested on HiSilicon and Ingenic firmware dumps from NOR SPI flash chips.
# Use at your own risk.
#
# Paul Philppov <[email protected]>
# 2023-11-21: Initial release
@EtoTen
EtoTen / IMG20230122202702.jpg
Last active April 1, 2025 14:17
Gaining root on FLSun Speederpad with (v1.40) stock firmware
IMG20230122202702.jpg
@hansemro
hansemro / build_linux_toolchain.sh
Created October 19, 2022 10:07
Build script for nds32 v3 toolchain
# git clone -b ast-v3_2_5-release-v3 https://github.com/andestech/nds-gnu-toolchain
# cd nds-gnu-toolchain
# git submodule update --init --recursive
# patch binutils and gcc...
TARGET=nds32le-linux
PREFIX=`pwd`/nds32le-linux-glibc-v3
ARCH=v3
CPU=n9
BUILD=`pwd`/build-nds32le-linux-glibc-v3
@SippieCup
SippieCup / install_multithreaded_chiapos.sh
Last active June 7, 2021 00:07
Safe way to install the multithreaded chiapos libary and rebuild chia-blockchain binaries
#!/bin/bash
# Note:
# I have not actually tested this installing into the
# chia-blockchain `install.sh` venv as I did not use it
# when I installed chia. I have only tested it in a
# test venv. YMMV!
if [ $# -eq 0 ]
then
@dlashua
dlashua / README.md
Created October 13, 2020 12:26
PyScript Candle Light Simulator

Use this in a Home Assistant Automation or Script to start a candle light effect on a bulb.

action:
  - service: pyscript.candle_light
    data:
      entity_id: light.living_overhead
      state: 'on' #use 'off' to stop the effect
      brightness: 12 #optional
 color_temp: 450 #optional
esphome:
name: esp32_1
platform: ESP32
board: lolin32
wifi:
ssid: !secret ssid_iot
password: !secret password_iot
manual_ip:
static_ip: 192.168.0.110
@stackexchange3301
stackexchange3301 / xmr-stak_cuda_setup.md
Last active November 28, 2021 12:57
Setting up xmr-stak miner on Ubuntu 18.04 with Nvidia card(s)

I wrote this tutorial because I've seen bits and chips of this topic, but never a full tutorial (especially not an up-to-date one).

This tutorial is intented for miners who want to mine Monero (or any other coin supported by xmr-stak) on a Ubuntu based system, with Nvidia cards (note: the tutorial works fine with CPU-only mining, just skip the driver installing part, and use -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF flags for cmake)

I assume You have a fresh install of Ubuntu, make sure Your system is up-to-date

sudo apt update && sudo apt upgrade

Install the latest version of the Nvidia driver avialable in the apt repository (which is 384 as of now)

@chrisswanda
chrisswanda / WireGuard_Setup.txt
Last active May 8, 2025 19:21
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be