Skip to content

Instantly share code, notes, and snippets.

@Megaf
Megaf / Megaf FlightGear 2024.md
Last active January 9, 2024 20:48
Megaf's Personal FlightGear Projects for 2024

Megaf's FlightGear 2024

Projects

DynamicHUD

  • An Add-On that dynamically centres, scales and crop the HUD to simulate real HUDs that use collimating lenses.

Status

  • Project started
@Megaf
Megaf / updater.sh
Last active February 21, 2023 16:53
updater.sh
#!/bin/bash
base_dir="${HOME}" # Where the directory below is located, is it your home? USB stick?
local_dir="${base_dir}/Downloads" # Where do you want the stuff to be downloaded to.
source_git_url="git@github.com:Zaretto/fg-aircraft.git" # Reoplace with source repo.
source_git_branch="release/1.12" # Replace with desired branch from source repo.
source_git_dir="${local_dir}/$(echo "${source_git_url}" | cut -d "/" -f 2 | cut -d ";" -f 1)"
aircraft_dir="${source_git_dir}/aircraft/f-14b" # Replace "aircraft/f14b" with the aircraft you want to copy.
dest_git_url="git@github.com:Megaf/f-14b.git" # Repo where single aircraft model should be pushed to.
dest_git_branch="main" # Branch for that repo.
@Megaf
Megaf / From_Killiney_To_Whiterock.kml
Created November 10, 2022 12:19
Getting to Whiterock from Killiney
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>From Killiney To Whiterock</name>
<gx:CascadingStyle kml:id="__managed_style_1653BB94422596DD6422">
<styleUrl>https://earth.google.com/balloon_components/base/1.0.23.0/card_template.kml#main</styleUrl>
<Style>
<IconStyle>
<Icon>
<href>https://earth.google.com/earth/rpc/cc/icon?color=d32f2f&amp;id=2182&amp;scale=4</href>
@Megaf
Megaf / flightgear_2020.4_advanced_settings_for_max_quality.txt
Created September 3, 2022 19:12
FlightGear 2020.4 Advanced Settings For Max Quality
# General
--disable-panel
--enable-anti-alias-hud
--prop:/sim/nasal-gc-threaded=true
--prop:/sim/gui/current-style=0
# ALS Stuff
--prop:/sim/rendering/shaders/skydome=true
--prop:/sim/rendering/als/shadows/enabled=true
@Megaf
Megaf / flightgear_2020.3_advanced_settings_for_max_quality.txt
Last active September 3, 2022 13:26
FlightGear 2020.3 Advanced Settings For Max Quality
# General
--disable-panel
--enable-anti-alias-hud
--prop:/sim/nasal-gc-threaded=true
--prop:/sim/gui/current-style=0
# ALS Stuff
--prop:/sim/rendering/shaders/skydome=true
--prop:/sim/rendering/als/shadows/enabled=true
[Installation "windows-ssd"]
Path=/media/megaf/Windows/Flatpak
DisplayName=Windows SSD
StorageType=harddisk
# Debian Bulsseye /etc/apt/sources.list
# Main repository. A copy of everything that is included on the DVD + Non-free software and firmware.
deb http://deb.debian.org/debian/ bullseye main non-free contrib
# Updates to those.
deb http://deb.debian.org/debian/ bullseye-updates main non-free contrib
# Security updates.
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
@Megaf
Megaf / gist:eb40c57179d7431f9ee74308bdfb3ade
Created September 1, 2022 20:17
Debian for Desktop first steps
# Install firmware and drivers for your CPU and wifi card.
apt install -y firmware-linux firmware-linux-nonfree firmware-linux-free firmware-iwlwifi
# Install things to compile software, use some other software and use Git.
apt install -y git cmake ccache build-essential xdg-user-dirs xdg-user-dirs-gtk xdg-utils xdg-utils-cxx xdg-dbus-proxy xdg-desktop-portal
# Install Flatpak
apt install -y flatpak gir1.2-flatpak-1.0 libflatpak-doc libflatpak0 flatpak-xdg-utils gnome-software-plugin-flatpak
# Setup system for Flatpak
@Megaf
Megaf / search-for-primes.py
Last active February 12, 2021 00:48
multi process version of the prime number counter from https://www.youtube.com/watch?v=hGyJTcdfR1E
import multiprocessing as mp
import time
#max number to look up to
max_number = 10000
#four processes per cpu
num_processes = mp.cpu_count() * 1
def chunks(seq, chunks):