Skip to content

Instantly share code, notes, and snippets.

View stepansnigirev's full-sized avatar

Stepan Snigirev stepansnigirev

View GitHub Profile
@stepansnigirev
stepansnigirev / 2fa.json
Last active January 16, 2022 23:21
Node config for different miniscripts
{
"network": "bitcoin",
"id": "[email protected]",
"nodes": {
"2": {
"id": 2,
"data": {
"mnemonic": "crash fatal hollow thank swallow submit tattoo portion code foam math force",
"password": "qwe",
"derivation": "m/48h/0h/0h/2h"
@stepansnigirev
stepansnigirev / prunednode.sh
Created April 7, 2021 09:00
A shell script that creates a prunednode.today snapshots
#!/usr/bin/env bash
bitcoin-cli stop
now=$(date +"%y%m%d")
sleep 1m
mkdir /home/ss/snapshots/core_snapshot
cp -r /home/ss/.bitcoin/chainstate /home/ss/snapshots/core_snapshot/chainstate
cp /home/ss/.bitcoin/fee_estimates.dat /home/ss/snapshots/core_snapshot/
cp /home/ss/.bitcoin/bitcoin.conf /home/ss/snapshots/core_snapshot/
cp -r /home/ss/.bitcoin/blocks /home/ss/snapshots/core_snapshot/blocks
cp /home/ss/.bitcoin/mempool.dat /home/ss/snapshots/core_snapshot/
@stepansnigirev
stepansnigirev / onion.pac
Created January 16, 2021 21:32
pac file to open all .onion files via tor proxy
// SPDX-License-Identifier: CC0-1.0
function FindProxyForURL(url, host)
{
if (shExpMatch(host, "*.i2p"))
{
return "SOCKS5 127.0.0.1:4447";
}
if (shExpMatch(host, "*.onion"))
{
@stepansnigirev
stepansnigirev / license.txt
Last active November 25, 2019 17:36
Local files lv_editor demo
THE WTF PUBLIC LICENSE
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
import imp, sys
sys.path.append('https://raw.githubusercontent.com/littlevgl/lv_binding_micropython/master/lib')
import display_driver
import lvgl as lv
lv.init()
scr = lv.obj()
# Load the screen
lv.scr_load(scr)
# Load the default display driver
import imp, sys
sys.path.append('https://raw.githubusercontent.com/littlevgl/lv_binding_micropython/master/lib')
import display_driver
import utime as time
# Display a button with a label
import lvgl as lv
# Load the default display driver
import imp, sys
sys.path.append('https://raw.githubusercontent.com/littlevgl/lv_binding_micropython/master/lib')
import display_driver
import utime as time
# Display a button with a label
import lvgl as lv
# Load the default display driver
import imp, sys
sys.path.append('https://raw.githubusercontent.com/littlevgl/lv_binding_micropython/master/lib')
import display_driver
import utime as time
# Display a button with a label
import lvgl as lv
@stepansnigirev
stepansnigirev / mpy-f469.md
Last active June 28, 2025 11:54
Micropython build for STM32F469-Discovery board

Micropython overview

Micropython works on a variety of different boards, but originally it was written to work on STM32 microcontrollers. Their PYBOARD is based on STM32.

At the moment micropython is ported to several STM32 developer boards, ESP32, linux, MacOS and even webassembly.

I started porting micropython to STM32F469-Discovery board - I want to

<link rel="import" href="../topeka-elements/topeka-datasource.html">
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<polymer-element name="my-element">
<template>
<style>
:host {