Skip to content

Instantly share code, notes, and snippets.

View sleepdefic1t's full-sized avatar

₴Ⱡ33₱ sleepdefic1t

View GitHub Profile
@sleepdefic1t
sleepdefic1t / MACOS_CLANG_TIDY.md
Last active September 30, 2024 11:09
brew clang-tidy on macOS
brew install llvm
ln -s "/usr/local/opt/llvm/bin/clang-format" "/usr/local/bin/clang-format"
ln -s "/usr/local/opt/llvm/bin/clang-tidy" "/usr/local/bin/clang-tidy"

use cmake file

  find_program(CLANG_TIDY_BIN clang-tidy)
 find_program(RUN_CLANG_TIDY_BIN /usr/local/Cellar/llvm/10.0.0_3/share/clang/run-clang-tidy.py)
# - run:
# name: Install OpenSSL
# command: |
# wget https://github.com/openssl/openssl/archive/OpenSSL_1_1_1.tar.gz
# tar -xf OpenSSL_1_1_1.tar.gz
# cd openssl-OpenSSL_1_1_1
# ./config
# make
# sudo make install
# - run:
@sleepdefic1t
sleepdefic1t / git_rebase.md
Last active December 18, 2021 23:27
author: github.com/ravibhure
git fetch upstream && git checkout master && git rebase upstream/master

In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

#if defined(ESP8266) | \
defined(ARDUINO_SAMD_MKRZERO) | \
defined(ARDUINO_SAMD_ZERO) | \
defined(ARDUINO_SAM_DUE) | \
defined(ARDUINO_ARCH_ARC32) | \
defined(__TC27XX__) | \
(defined(TEENSYDUINO) && (TEENSYDUINO < 139))
#undef pgm_read_ptr
#define pgm_read_ptr(addr) (*(const void **)(addr))
#endif

git submodule deinit <path_to_submodule>
git rm <path_to_submodule>
rm -rf .git/modules/

/**
* (c) Ark Ecosystem <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
**/
/**
* ESP32 Post Data Example Sketch
*
@sleepdefic1t
sleepdefic1t / erase_esp32.md
Created January 30, 2019 08:51
Erase ESP32
#!/usr/bin/env bash
# This file is part of Ark Cpp Crypto.
#
# (c) Ark Ecosystem <[email protected]>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
# #########
# This script extends support to the Arduino IDE.
#!/usr/bin/env bash
# This file is part of Ark Cpp Client.
#
# (c) Ark Ecosystem <[email protected]>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
# #########
# This script extends support to the Arduino IDE.
#!/usr/bin/env bash
# This file is part of Ark Cpp Client.
#
# (c) Ark Ecosystem <[email protected]>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
# #########
# This script extends support to the Arduino IDE.