Skip to content

Instantly share code, notes, and snippets.

View dreamcat4's full-sized avatar
๐Ÿ˜‹
credible honest persons who wants to talk to me... send brief msg to my gmail !

Dreamcat4 dreamcat4

๐Ÿ˜‹
credible honest persons who wants to talk to me... send brief msg to my gmail !
View GitHub Profile
@dreamcat4
dreamcat4 / A_falstad-image.md
Last active June 20, 2020 17:03
4000w dimmer + 8 inch PSC fan - How to remote control it?
60ยฐ [id:~/.dev/stm32/openocd] master(+0/-0) 1 ยฑ telnet 127.0.0.1 4444
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Open On-Chip Debugger
> init
> flash info 0
device id = 0x10036414
STM32 flash size failed, probe inaccurate - assuming 512k flash
flash size = 512kbytes
@dreamcat4
dreamcat4 / Otterpill-Blink.md
Created May 26, 2020 16:16 — forked from ansemjo/Otterpill-Blink.md
minimal blink exmaple for the otterpill with platformio and the stm32cube-hal
@dreamcat4
dreamcat4 / dounane-dkms.log
Last active May 16, 2020 11:15
douane - sudo make rebuilddkms fails
[id:~/.dev/douane/douane-dkms] versions/v0.9.0 ยฑ git pull
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 5), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), done.
From https://gitlab.com/douaneapp/douane-dkms
77144f5..bc8829c versions/v0.9.0 -> origin/versions/v0.9.0
Updating 77144f5..bc8829c
Fast-forward
@dreamcat4
dreamcat4 / esptool.log.sh
Created May 14, 2020 14:11
espurna - Tuya dimmer. First connection and dump OFW
# read chip
sudo esptool.py --port /dev/ttyUSB0 chip_id
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 2c:f4:32:3d:15:4b
@dreamcat4
dreamcat4 / zfs-build-ubuntu.sh
Created April 14, 2020 08:17
How to install zfs (latest) on ubuntu (latest) with kernel (latest), as of 14th April 2020, with the patches
# ======
# install zfs from source (instructions for ubuntu)
# last tested (worked for me!) on ubuntu 19.10, kernel 5.6.2, zfs-0.8.3
#
# https://github.com/zfsonlinux/zfs/wiki/Building-ZFS
# https://github.com/zfsonlinux/zfs/wiki/Custom-Packages#debian-and-ubuntu
sudo apt install -y build-essential pkg-config autoconf libtool gawk alien fakeroot gdebi wget zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev libaio-dev parted lsscsi ksh libssl-dev libelf-dev linux-headers-$(uname -r) python3 python3-dev python3-setuptools python3-cffi < /dev/null
$ sudo apt install appimagelauncher
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libappimage0 libsquashfuse0
The following NEW packages will be installed
libappimage0 libsquashfuse0
The following packages will be upgraded:
appimagelauncher
<?xml version="1.0" encoding="UTF-8"?>
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" minBufferTime="PT1.5S" mediaPresentationDuration="PT1761S" type="static" profiles="urn:mpeg:dash:profile:isoff-main:2011">
<Period>
<AdaptationSet id="0" mimeType="video/mp4" subsegmentAlignment="true" subsegmentStartsWithSAP="1" bitstreamSwitching="true" default="true">
<Role schemeIdUri="urn:mpeg:DASH:role:2011" value="main"/>
<Representation id="299" codecs="avc1.64002a" startWithSAP="1" bandwidth="9011882" width="1920" height="1080" frameRate="60000/1001">
<BaseURL>https://r2---sn-5hnedn7s.googlevideo.com/videoplayback?expire=1582768765&amp;ei=Hc5WXs2hDMnb-ga6k5CwCA&amp;ip=134.19.189.86&amp;id=o-AOzNf0fGY59T3CuzL5DvD58-I19TmxANr-8xyOJq40uB&amp;itag=299&amp;aitags=133,134,135,
[2020-02-16 11:55:22 base-util info] Updating index /zpool-0/Media/.AppData/.lutris/vst_plugins/drive_c/VstPlugins/64/d for phase vst3_plugins_64: time=58.323055
[2020-02-16 11:55:22 base-util info] Updating index /zpool-0/Media/.AppData/.lutris/vst_plugins/drive_c/VstPlugins/64/d for phase vst3_plugins_32: time=42.209835
[2020-02-16 11:55:22 float-library-metadata info] Starting plugin host process with command: /opt/bitwig-studio/bin/BitwigPluginHost64 metadata 1234 4 1
PluginHost: Connecting to metadata service with id 4 on port 1234 using id 1
PluginHost: Metadata connection established
PluginHost: Reading VST 2.4 plugin metadata for /zpool-0/Media/.AppData/.lutris/vst_plugins/drive_c/VstPlugins/64/d/BC Destructor VST.so
DSSI VST plugin server v0.986
Copyright (c) 2012-2013 Filipe Coelho
Copyright (c) 2010-2011 Kristian Amlie
Copyright (c) 2004-2006 Chris Cannam
$ /opt/bitwig-studio/bin/BitwigPluginHost64 test .
DSSI VST plugin server v0.986
Copyright (c) 2012-2013 Filipe Coelho
Copyright (c) 2010-2011 Kristian Amlie
Copyright (c) 2004-2006 Chris Cannam
LinVst version 2.8.0
Loading /zpool-0/Media/.AppData/.lutris/vst_plugins/drive_c/VstPlugins/64/d/BC Destructor VST.dll
--------------------------------------------------------------------