Skip to content

Instantly share code, notes, and snippets.

View orangecms's full-sized avatar
🐢
Hack the planet!

Daniel Maslowski orangecms

🐢
Hack the planet!
View GitHub Profile
@orangecms
orangecms / boot.log
Last active March 10, 2021 00:33
oreboot ACPI basics on DeskMini A300 with Ryzen 5 3400G (Picasso) - https://github.com/oreboot/oreboot/pull/390
Welcome to oreboot
c001_1004 is 7ed8320b178bfbff and APIC is bit 200
c001_1005 is 35c237ff2fd3fbff and APIC is bit 200
0x1b is fee00900
c0000080 DIFF:d01 got 500
-- wrmsr: and got d01;
c0000081 DIFF:23001000000000 got 0
-- wrmsr: and got 23001000000000;
c0000082 DIFF:ffffffff99a00000 got 0
-- wrmsr: and got ffffffff99a00000;
@orangecms
orangecms / download.sh
Created November 22, 2020 16:57
ESP8266 NodeMCU WS2812 strip 30 LEDs RGB
#!/bin/sh
_FW=nodemcu-release-10-modules-2020-11-21-17-50-47-float.bin
wget https://nodemcu-build.com/builds/$_FW -O nodemcu.bin
uname -a
Linux OpenWrt 3.10.14 #42 Mon Feb 18 16:05:35 CST 2019 mips GNU/Linux
root@OpenWrt:/# cat /proc/cpuinfo
system type : MT7628
machine : Unknown
processor : 0
cpu model : MIPS 24KEc V5.5
BogoMIPS : 382.46
wait instruction : yes
microsecond timers : yes
@orangecms
orangecms / NBD8016R-PL-V2.md
Created July 19, 2020 19:06
NBD8016R-PL-V2 NVR (Network Video Recorder) firmware

HiSilicon-based NVR (Network Video Recorder)

Acronyms

AHD - Analog High Definition NVR - Network Video Recorder DVR - Digital Video Recorder IPC - IP Camera

Research

@orangecms
orangecms / WFD016-UART.log
Last active March 14, 2020 19:41
Investigating a Damai DM S6 WFD016 USB Wi-Fi storage
Calibration successful!
Calibration successful!
Default ADC gain value = 1
Modified ADC gain value to 0
mem_to_mcu
[sdio] Card reset successful
[sdio] Card Version - (0x32)
[sdio] Card initialization successful
[main-196] [perf_demo] 123 Build Time: Aug 7 2017 10:45:05
@orangecms
orangecms / mft.log
Last active March 8, 2020 20:27
MFT logs
INFO[0029] Searching for Magic Bytes: D12A4A10E436A1D60A3AEEBF08F76C150EE924B9186E3A9063603458B4B4727D
Found Intel MC Update at 0x6306b0 with Length: 0x5c00
INFO[0029] Unplausible year: 8211 path=cpu40661_plat32_ver0000000F_2013-08-21_PRD_CC7CD277.bin
Found Intel MC Update at 0x6362b0 with Length: 0x6400
INFO[0029] Unplausible year: 8210 path=cpu40660_plat32_verFFFF0011_2012-10-12_PRD_21AC5E53.bin
Found Intel MC Update at 0x63c6b0 with Length: 0x4c00
INFO[0029] Unplausible year: 8211 path=cpu40651_plat72_ver00000017_2013-09-14_PRD_6D9EC14C.bin
Found Intel MC Update at 0x6412b0 with Length: 0x5800
INFO[0029] Unplausible year: 8210 path=cpu40650_plat72_verFFFF000B_2012-12-06_PRD_A1180C86.bin
Found Intel MC Update at 0x646ab0 with Length: 0x5000
[ 0.000000] Linux version 4.14.162 (cyrevolt@orangetux) (gcc version 9.2.0 (Gentoo Hardened 9.2.0-r2 p3)) #11 SMP PREEMPT Wed Jan 8 20:16:25 CET 2020
[ 0.000000] Command line: console=ttyS0 vga=786 memmap=4G!4G
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] x86/fpu: x87 FPU will use FXSAVE
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
@orangecms
orangecms / chuck-norris.sh
Created October 7, 2019 20:18
Chuck Norris Joke
#!/bin/sh
# requirements: google_speech, jq, curl, sed
URL=https://api.chucknorris.io/jokes/random
JSON_PATH='.value'
curl -s "$URL" | \
jq "$JSON_PATH" | \
sed "s/'//g" | \
@orangecms
orangecms / golang-project.sh
Created September 28, 2019 12:53
Go (golang) project fix
git clone .../my-project
mkdir -p .go/src/
cd .go/src
ln -s ../../my-project .
cd my-project
vim ...
GOPATH=$(pwd)/.. build my-project/cmd/foo