Skip to content

Instantly share code, notes, and snippets.

@leoheck
leoheck / shellhub_api_requests_with_curl.sh
Last active December 2, 2021 18:08
Shellhub API Requests with Curl
#============================================
# GET ACCESS TOKEN
read -r -d '' login_data <<-EOM
{
"username": "${SHELLHUB_USER}",
"password": "${SHELLHUB_PASS}"
}
EOM
@leoheck
leoheck / cc2538-and-openocd.md
Last active January 16, 2025 20:59 — forked from hwhw/cc2538-and-openocd.md
Flashing CC13*2 using OpenOCD

Flashing CC13x2 with OpenOCD Using XDS110 and JTAG.

Install OpenOCD version 0.11.0 (or maybe higher)

You can also build it yourself.

Boards setup

If you are using Launchpads to experiment this setup, you are going to need to prepare them as it is being shown in this image.

jtag_chain2

@leoheck
leoheck / Freecad_Links_List.py
Last active October 5, 2022 19:46
This code presents files linked inside a FreeCad (.FCStd)
@leoheck
leoheck / kicad_cli_all
Last active February 17, 2023 06:56
Exports all Schematics pages and every Layer of the PCB in individual SVG files.
#!/bin/bash
# Usage: kicad_cli_all KICAD_PRO
kicad_pro=${1}
if [[ ! -f "${kicad_pro}" ]]; then
echo "Kicad project '${kicad_pro}' is missing"
exit
fi