Skip to content

Instantly share code, notes, and snippets.

Avatar
😋

Dreamcat4 dreamcat4

😋
View GitHub Profile
View cargo-config.ini
# Cargo build options
# https://doc.rust-lang.org/cargo/reference/config.html
[target.thumbv7m-none-eabi]
runner = 'arm-none-eabi-gdb'
rustflags = [
"-C", "linker=arm-none-eabi-ld",
]
[target.thumbv7em-none-eabihf]
View error.log.sh
Compiling flutter-engine-sys v0.4.0 (https://github.com/flutter-rs/flutter-rs#bff49d79)
Compiling smithay-client-toolkit v0.6.6
Compiling winit v0.20.0-alpha5 (https://github.com/dvc94ch/winit?branch=android#1603d8b5)
Compiling smithay-clipboard v0.4.0
Compiling copypasta v0.6.3
Compiling glutin v0.22.0-alpha5 (https://github.com/dvc94ch/glutin?branch=android#3c315992)
Compiling serde_json v1.0.51
Compiling flutter-engine v0.4.0 (https://github.com/flutter-rs/flutter-rs#bff49d79)
Compiling flutter-plugins v0.4.0 (https://github.com/flutter-rs/flutter-rs#bff49d79)
Compiling flutter-winit v0.4.0 (https://github.com/flutter-rs/flutter-rs#bff49d79)
@dreamcat4
dreamcat4 / testio.sh
Created Jul 7, 2020 — forked from hluaces/testio.sh
Disk IO test for linux
View testio.sh
#!/bin/bash
# References
# https://devopsideas.com/benchmarking-disk-iops-aws-vs-digitalocean/
# https://wiki.mikejung.biz/Benchmarking#Fio_Test_Options_and_Examples
# https://tobert.github.io/post/2014-04-17-fio-output-explained.html
# Requires linux packages: fio ioping
View PWM AC Chopper Single Phase Induction Motor Drive.pspice.cir
*PWM AC Chopper Single Phase Induction Motor Drive
*AC Chopper
VAC 20 0 sin(0 155 60 0 0 0)
XS1 20 21 16 13 mos_switch
XS2 21 0 17 15 mos_switch
*Permanent Capacitor Single Phase Induction Motor
XIM 20 Z PCIM
Rb Z 30 0.000024
Lj 30 0 0.0074
*MosFET Driver
@dreamcat4
dreamcat4 / A_falstad-image.md
Last active Jun 20, 2020
4000w dimmer + 8 inch PSC fan - How to remote control it?
View A_falstad-image.md
View flash info 0.openocd.log
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 — forked from ansemjo/Otterpill-Blink.md
minimal blink exmaple for the otterpill with platformio and the stm32cube-hal
View Otterpill-Blink.md
@dreamcat4
dreamcat4 / dounane-dkms.log
Last active May 16, 2020
douane - sudo make rebuilddkms fails
View dounane-dkms.log
[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
espurna - Tuya dimmer. First connection and dump OFW
View esptool.log.sh
# 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 Apr 14, 2020
How to install zfs (latest) on ubuntu (latest) with kernel (latest), as of 14th April 2020, with the patches
View zfs-build-ubuntu.sh
# ======
# 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
You can’t perform that action at this time.