Skip to content

Instantly share code, notes, and snippets.

View fboes's full-sized avatar

Frank Boës fboes

View GitHub Profile
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]:\[\033[00;95m\]$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo -)\[\033[00m\]\$ '
export PS1
alias la="ls -lah"
# Put me in `.bash_aliases`, works like an alias.
# See https://stackoverflow.com/a/7131683
export DEFAULT_DOCKER_SERVICE=web
_docker() {
case "${1}" in
@fboes
fboes / npm-publish.sh
Last active October 28, 2022 10:03
Publishing project version for Git & NPM
#!/bin/bash
set -e
cd `dirname ${0}`/..
VERSION=${1}
if [[ ! "${1}" ]]; then
echo "Choose on of [patch|minor|major]"
read -r -p "Version bump [patch]: " VERSION
fi
VERSION=${VERSION:-patch}
@fboes
fboes / morse_code.ino
Last active March 13, 2025 23:26
Arduino Morse Code Table for ASCII
// morseCodes[asciiCode - 32]
// Non-existend codes are represented by ""
String morseCodes[65] = {
" ", // 32 - [SPACE]
"-.-.--", // 33 - !
".-..-.", // 34 - "
"", // 35 - #
"...-..-",// 36 - $
"", // 37 - %
# @see https://portal.sayintentions.ai/simapi/v1/input_variables.txt
# Set default values for the variables dictionary
variables = {
"AIRSPEED INDICATED": int(0), # INT - Indicated Airspeed in Knots
"AIRSPEED TRUE": int(0), # INT - True (Ground) Airspeed in Knots
"COM ACTIVE FREQUENCY 1": float(0.0), # FLOAT - Current COM1 Active Frequency in MHz
"COM ACTIVE FREQUENCY 2": float(0.0), # FLOAT - Current COM2 Active Frequency in MHz
"COM RECEIVE 1": int(1), # INT - Indicates if COM1 Speaker is on (1 = On, 0 = Off)
"COM RECEIVE 2": int(0), # INT - Indicates if COM2 Speaker is on (1 = On, 0 = Off)