Skip to content

Instantly share code, notes, and snippets.

View markusa380's full-sized avatar

Markus Appel markusa380

View GitHub Profile
@markusa380
markusa380 / ace_wind_info.sqf
Last active April 13, 2021 21:50
Display Wind Information in Arma 3 with ACE3
_pos = getPosASL player;
_h = _pos select 2;
_positions = [
[_pos select 0, _pos select 1, _h + 1.8],
[_pos select 0, _pos select 1, _h + 10],
[_pos select 0, _pos select 1, _h + 30],
[_pos select 0, _pos select 1, _h + 100],
[_pos select 0, _pos select 1, _h + 500]
@markusa380
markusa380 / description.md
Last active April 12, 2020 22:06
PostgreSQL setup on Amazon Linux 2 and migration from DynamoDB
sudo amazon-linux-extras install epel postgresql11

sudo yum install -y postgresql-server postgresql-devel

sudo /usr/bin/postgresql-setup --initdb

sudo systemctl enable postgresql

sudo systemctl start postgresql
@markusa380
markusa380 / worksheet.scala
Created April 7, 2020 07:35
Shapeless Extensible Records Projection
import shapeless._
import shapeless.labelled._
import shapeless.ops.record._
import shapeless.syntax.singleton._
import shapeless.record._
trait Projection[A, K, V] {
type Out
@markusa380
markusa380 / youtube.sh
Last active August 18, 2019 18:51
Streaming a webcam on Linux to a YouTube livestream using a key stored in an AWS S3 bucket
#! /bin/bash
# This script requires the packages "aws-cli" and "ffmpeg".
# For Raspberry Pi, the package "rng-tools" should also be installed.
# The path of the webcam
webcam=/dev/video0
# The S3 bucket in which the key is stored
key_bucket=markus.appel.private
# The path of the key inside the S3 bucket