- Use plugin named
OpenOCD + ESP32 Support for embedded development
fromNico Mexis
(link) - Ensure that you run the
flash
task at least once, so the bootloader and partition bin files are created - In the task config, ensure the bin paths are correct. For example:
cmake-build-debug-esp-idf-54/bootloader/bootloader.bin
versuscmake-build-esp-idf-54/bootloader/bootloader.bin
- Use the settings as-is, so with
program_esp
and notprogram_esp32
- Install the linux rules from
~/.espressif/tools/openocd-esp32/v0.12.0-esp32-20241016/openocd-esp32/share/openocd/contrib
in/etc/udev/rules.d
- Reload the rules:
udevadm control --reload-rules && udevadm trigger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dtoverlay=gpio-fan,gpiopin=18,temp=55000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am kenvanhoeylandt on github. | |
* I am kenvanhoeylandt (https://keybase.io/kenvanhoeylandt) on keybase. | |
* I have a public key ASBJbi0m2-2IPdNszByqbjObBSaGRHJoQOH40pjqeE-Vwwo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bind Docker socket to port | |
socat -d TCP-LISTEN:2376,range=127.0.0.1/32,reuseaddr,fork UNIX:/var/run/docker.sock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#2e3136,#ffffff,#1e2124,#ffffff,#f04747,#282b30,#738bd7,#738bd7,#43b581,#faa61a,#faa61a,#ffffff,#36393e,#b0b0b8,#f04747,#4a433a,#738bd7,#0096cf,#26a970,#ffffff,monokai |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: http://product.reverb.com/2015/06/06/disabling-animations-in-espresso-for-android-testing/ | |
public class DisableAnimationsRule implements TestRule { | |
private Method mSetAnimationScalesMethod; | |
private Method mGetAnimationScalesMethod; | |
private Object mWindowManagerObject; | |
public DisableAnimationsRule() { | |
try { | |
Class<?> windowManagerStubClazz = Class.forName("android.view.IWindowManager$Stub"); | |
Method asInterface = windowManagerStubClazz.getDeclaredMethod("asInterface", IBinder.class); |
Building and installing OpenCV on OS X for your Java project:
- Download OpenCV
- Make sure
JAVA_HOME
is set - Make sure
ant
is installed - build
OpenCV
:mkdir build
cd build
cmake -G "Unix Makefiles" ..
make -j8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# from http://stackoverflow.com/a/8672540/3848666 | |
# Script adb+ | |
# Usage | |
# You can run any command adb provide on all your current devices | |
# ./adb+ <command> is the equivalent of ./adb -s <serial number> <command> | |
# | |
# Examples | |
# ./adb+ version | |
# ./adb+ install apidemo.apk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply from: rootProject.file('gradle/install-git-hooks.gradle') |