Skip to content

Instantly share code, notes, and snippets.

View ayabusa's full-sized avatar
🚎
Doing some stuff

ayabusa

🚎
Doing some stuff
View GitHub Profile
@ayabusa
ayabusa / playlist_sequencer.py
Last active March 18, 2024 19:43
A tool to convert a single file containing multiple song into multiple files
"""
This work is licensed under a Creative Commons Attribution 4.0 International License
To view a copy of this license, visit https://creativecommons.org/licenses/by/4.0/
"""
import os
"""
##### Playlist Sequencer #####
@mmozeiko
mmozeiko / !README.md
Last active July 2, 2024 19:21
Download MSVC compiler/linker & Windows SDK without installing full Visual Studio

This downloads standalone MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for native desktop app development.

Run py.exe portable-msvc.py and it will download output into msvc folder. By default it will download latest available MSVC & Windows SDK - currently v14.40.33807 and v10.0.26100.0.

You can list available versions with py.exe portable-msvc.py --show-versions and then pass versions you want with --msvc-version and --sdk-version arguments.

To use cl.exe/link.exe first run setup_TARGET.bat - after that PATH/INCLUDE/LIB env variables will be updated to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.

To use clang-cl.exe without running setup.bat, pass extra /winsysroot msvc argument (msvc is folder name where output is stored).

@vanbwodonk
vanbwodonk / read-stm32-firnware.md
Last active March 11, 2024 17:41
Read stm32 firmware binary with openOCD

read-stm32-firmware

OpenOCD scripts for read STM32 firmware binary

Requirements

Linux

OpenOCD (Open On-Chip Debugger) is open-source software that interfaces with a hardware debugger's JTAG port. OpenOCD provides debugging and in-system programming for embedded target devices. OpenOCD provides the ability to flash NAND and NOR FLASH memory devices that are attached to the processor on the target system. Flash programming is supported for external CFI compatible flashes (Intel and AMD/Spansion command set) and several internal flashes (LPC2000, AT91SAM7, STR7x, STR9x, LM3 and STM32x).

OpenOCD was originally developed by Dominic Rath at the University of Applied Sciences Augsburg. The OpenOCD source code is now available through the GNU General Public License (GPL).