Skip to content

Instantly share code, notes, and snippets.

View rafaellehmkuhl's full-sized avatar
💭
hey hey

Rafael Araujo Lehmkuhl rafaellehmkuhl

💭
hey hey
  • São José dos Campos - Brasil
  • 09:19 (UTC -03:00)
View GitHub Profile
@rafaellehmkuhl
rafaellehmkuhl / tmux.conf
Last active May 6, 2022 17:07
My default Tmux configuration
#
# Tmux configuration
#
# See:
# http://github.com/brandur/tmux-extra
#
# C-b is not acceptable -- Vim uses it
bind-key C-b last-window
@rafaellehmkuhl
rafaellehmkuhl / auto_build.sh
Last active August 27, 2021 16:26
PBaP - Push branch updates, Build them on rasp and Push them to register on just one command
BRANCH_NAME=$1
IMAGE_NAME=$1
cd /home/pi/companion-docker/core
echo "Checking out to branch ${BRANCH_NAME}."
git checkout $BRANCH_NAME || git checkout -b $BRANCH_NAME
echo "Fetching updates from remotes."
git fetch --all
@rafaellehmkuhl
rafaellehmkuhl / mypy_check.py
Last active July 2, 2021 18:20
MyPy abstract method implementation check
import abc
from typing import List, Type
class AbstractClass(metaclass=abc.ABCMeta):
def __init__(self) -> None:
pass
@staticmethod
@abc.abstractmethod
def is_ok() -> bool:
@rafaellehmkuhl
rafaellehmkuhl / keybindings.json
Last active March 15, 2019 11:47
My VSCode Keybindings
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+k ctrl+c",
"command": "editor.action.addCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+k ctrl+c",
"command": "-editor.action.addCommentLine",
@rafaellehmkuhl
rafaellehmkuhl / MyStandardGitWorkFlow.md
Last active November 16, 2017 02:50
My standard git workflow

My Standard Git Workflow

Initial workflow (done once)

Forking

I start my workflow Forking the Main Repository, this is, the repository which I want to contribute to. The repository's URL should be something like https://github.com/author_username/repository_name

#include <Average.h>
// Camera delay meter
int shutterPin = 13; // RTK trigger signal on pin 13
int pixhawkPin = 5; // Pixhawk trigger signal on pin 5
bool pixhawkOn = HIGH;
bool triggerState = LOW; // Current trigger state