Skip to content

Instantly share code, notes, and snippets.

@MrHallows
MrHallows / fastboot_help.md
Last active April 4, 2025 20:56
fastboot commands

Command:

$ fastboot help

Output:

usage: fastboot [OPTION...] COMMAND...

flashing:
@triffid
triffid / openrc-init-pia
Last active February 15, 2024 06:48
shell script for accessing PIA wireguard
#!/sbin/openrc-run
command="/root/bin/pia-wg.sh"
CONFIGDIR="${CONFIGDIR:-/var/cache/pia-wg}"
CONFIG="${CONFIG:-/etc/pia-wg/pia-wg.conf}"
extra_started_commands="reload"
depend() {
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active April 8, 2025 09:15
set -e, -u, -o, -x pipefail explanation
sudo apt install build-essential autoconf bison flex texinfo \
help2man gawk libtool libncurses5-dev python3-dev \
python3-distutils git
git clone http://github.com/crosstool-ng/crosstool-ng
cd crosstool-ng
./bootstrap
./configure --enable-local
DEFCONFIG=samples/armv8-rpi3-linux-gnueabihf/crosstool.config ./ct-ng defconfig
@davidrea
davidrea / MCUXpresso_BCA.md
Last active February 18, 2019 18:05
NXP's MCUXpresso IDE doesn't support allocating a Bootloader Configuration Area (BCA) segment out-of-the-box. Here's how to do it.

Background

Since NXP acquired Freescale and the Kinetis line of microcontrollers, they have been (gradually) migrating the Kinetis ecosystem from the (Eclipse+GNUARM-based) Kinetis Design Studio (KDS) to the (Eclipse+GNU Make-based) MCUXpresso IDE. While many MCUs within the Kinetis family are now supported by the MCUXpresso IDE, the Kinetis Bootloader (KBOOT) is not yet supported.

MCUXpresso is actually a constellation of 3 tools: The MCUXpresso IDE, the MCUXpresso config tools (which are incorporated into the IDE, and installable separately if a different IDE - such as MDK or IAR - is used), and the MCUXpresso SDK (formerly the Kinetis SDK or KSDK). The SDK tool is actually an online SDK generator.

Caution: Unsupported Devices

The Kinetis SDK (KSDK) and Kinetis Bootloader (KBOOT) do not support the entire line of Kinetis microcontrollers. Before designing a microcontroller into a project, check for KSDK and KBOOT support. Search for part family support at the [MCUXpresso SDK online builder](https:

@mbinna
mbinna / effective_modern_cmake.md
Last active March 26, 2025 04:15
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@Pulimet
Pulimet / AdbCommands
Last active April 7, 2025 11:40
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@XavierMarchena
XavierMarchena / xstat
Last active April 25, 2018 13:55 — forked from moiseevigor/xstat
xstat bash function to get file creation time on Linux with EXT4
#utility http://moiseevigor.github.io/software/2015/01/30/get-file-creation-time-on-linux-with-ext4/
xstat() {
#temporary file to be sorted
temp_file=$(mktemp)
for target in "${@}"; do
inode=$(ls -di "${target}" | cut -d ' ' -f 1)
# Based on http://stackoverflow.com/a/1260982/449345
# The most mneeeeee part is this one: `rm -rf .git/modules/mmmodule`
# This script can be useful in case you are changing origin for your
# nice and cool mmmodule.
git submodule deinit -f mmmodule
rm -rf .git/modules/mmmodule # kind of WAAAAT?!
git submodule init mmmodule
git submodule update --recursive
@jgravois
jgravois / water.txt
Created August 1, 2015 17:37
Esri hosted resources related to h20
Public / Open Content
1. USA Rivers and Streams
a. http://www.arcgis.com/home/item.html?id=0baca6c9ffd6499fb8e5fad50174c4e0
2. USA Water Bodies
a. http://www.arcgis.com/home/item.html?id=9dff3cf646704abd9e74265f02abeb09
3. USA Permitted Pollutant Discharge Permits
a. http://www.arcgis.com/home/item.html?id=b0f683b5543d406697e0d82b414b3ddf
4. Vegetative Change Index Library Web Services (Time Enabled)
a. http://imagery.arcgisonline.com/arcgis/rest/services/LandsatGLSChange