Skip to content

Instantly share code, notes, and snippets.

View darvin's full-sized avatar

Stefan Novak darvin

View GitHub Profile
@darvin
darvin / my.zsh-theme
Last active January 10, 2023 19:07
.oh-my-zsh/themes/my.zsh-theme
# Color shortcuts
RED=$fg[red]
YELLOW=$fg[yellow]
GREEN=$fg[green]
WHITE=$fg[white]
BLUE=$fg[blue]
RED_BOLD=$fg[red]
YELLOW_BOLD=$fg[yellow]
GREEN_BOLD=$fg[green]
WHITE_BOLD=$fg[white]
@darvin
darvin / ~_.config_mc_ini
Last active January 10, 2023 19:09
~/.config/mc/ini
[Midnight-Commander]
verbose=true
shell_patterns=true
auto_save_setup=true
preallocate_space=false
auto_menu=false
use_internal_view=true
use_internal_edit=false
clear_before_exec=true
confirm_delete=true

Plugin to desktop flight simulator

Drives simulation according to data of rc compatible telemetry

Telemetry protocols

mavlink

Draws the sphere of chromakey color around aircraft, overlays a chromakey fullscreen fill

key binding (on attched to rpi joystick) - increase/decrease transparency of fullscreen fill

key binding - increase/decrease transparency of sphere

@darvin
darvin / fav_airfcraft_system.md
Last active August 2, 2020 10:30
FPV aircraft System

Main feature

Computer flight simulator (MSFS2020 or Flight Gear) running in "visualization only mode" (simulation of everything is turned off, telemetry and controls, that are going through the machine where simulator is running on, are binded to the gauges/ control surfaces of the model. GPS coordinates are matched. Scenery transparency can be tuned, behind it - pan tilt servo coordinated (or 360) video feed from analog source. If video feed is lost, scenery becomes solid.

Future development

Ona aircraft FPGA video filter

that deals with camera, and passes it, adding hdmi output from raspberry pi

NeTV2 fits the bill. May be better to opt in for digital camera.

#!/bin/bash
if [ -z ${PORTION_COUNT+x} ]; then
PORTION_COUNT=1
PORTION_INDEX=1
fi
a=($(wc $1))
lines=$((${a[0]} + 1))
words=${a[1]}
chars=${a[2]}
#!/bin/bash
set -Ee
files=("$@")
if ((${#files[@]} == 0)); then
echo "files not found"
exit 3
fi
echo "TAP version 13"
one finger tap
1526700179.795406 3 47 0
1526700179.795406 3 57 2
1526700179.795406 3 53 434
1526700179.795406 3 54 411
1526700179.795406 3 58 171
1526700179.795406 3 52 4
1526700179.795406 0 0 0
1526700179.840660 3 57 -1
#!/bin/bash
# AMOUNT_OF_DISPLAYS=`ddcctl -h 2>&1 | perl -ne 'print "$1\n" if m/found (\d+) displays/;'`
CURRENT_BR_FILE=/tmp/.last.brightness
MAX_BR=100
MIN_BR=0
if [ -f "$CURRENT_BR_FILE" ]
then
CURRENT_BR=`cat $CURRENT_BR_FILE`
else
@darvin
darvin / README.md
Last active September 26, 2022 16:07 — forked from davidjrice/.travis.yml
Travis CI + iOS code signing

Build ios app for iphoneos sdk with signing using Travis ci.

  1. Export your private key that you are going to use for signing from Keychain Access app to ~/privateKey.p12 with export password __YourRandomPass22
  2. Fetch script and run it from your Travis-enabled target iOS app repo: IOS_IDENTITY_KEY=~/privateKey.p12 IOS_IDENTITY_KEY_PASSWORD=__YourRandomPass22 bash <(curl -s https://gist.githubusercontent.com/darvin/96a3af399d0b970a59b1/raw/setup_travis_ios_signing.sh)
  3. Review changes and commit. It suppose to work now.