Skip to content

Instantly share code, notes, and snippets.

View travelhawk's full-sized avatar

Michael Falk travelhawk

  • Humatects GmbH
  • Oldenburg
View GitHub Profile
@travelhawk
travelhawk / crontab
Created February 2, 2022 11:07
Crontab with maintainence tasks for self-managed GitLab instance (docker setup)
# Crontab for Self-Managed GitLab instance
# ----------------------------------------
# Edit with (sudo) crontab -e
## mail errors to email
MAILTO=email@domain.de
## prune unused image to reduce space
@daily docker image prune -f > /dev/null
@travelhawk
travelhawk / porting_to_webgl.md
Last active January 28, 2021 16:07
Porting a desktop unity application to a webgl build

Porting to WebGL in Unity3D

Porting from Desktop / UWP to WebGL comes with a lot of challenges. When I ported an application, there were many libraries and code which didn't work on WebGL. However, I found alternatives and were able to switch libraries to make it work in WebGL.

Not supported features

  • System.Net namespace
  • Threads are not supported (System.Threading)
  • No Multithreading
  • No direct access to socket
  • Reflection using System.Reflection.Emit
@travelhawk
travelhawk / cors_anywhere.md
Last active January 26, 2021 11:09
This API acts as a proxy and enables cross-origin requests to anywhere.

This API enables cross-origin requests to anywhere.

Usage:

  • / Shows help
  • /iscorsneeded This is the only resource on this host which is served without CORS headers.
  • /<url> Create a request to , and includes CORS headers in the response.
@travelhawk
travelhawk / Glossar for Software Engineer.md
Last active October 4, 2021 15:10
Glossar of all terms relating to software engineering

Glossar

  • CI/CD - Continous Integration / Continous Deployment
  • DevOp - DevOps beschreibt einen Ansatz, wie die Zusammenarbeit zwischen Softwareentwicklung und IT-Betrieb verbessert werden kann
  • IaaS - Infrastructure as a service
  • PaaS - Platform as a service
  • SaaS - Software as a service
# basics
alias lt="ls --human-readable --size -1 -S --classify"
alias mnt="mount | awk -F' ' '{ printf \"%s\t%s\n\",\$1,\$3; }' | column -t | egrep ^/dev/ | sort"
alias hgrep="history|grep"
alias cpuinfo="cat /proc/cpuinfo"
alias latest="ls -t -l"
alias count="find . -type f | wc -l"
@travelhawk
travelhawk / Streaming Protocols.md
Last active November 25, 2022 07:52
Comparison of streaming protocols

RTMP: Real Time Messaging Protocol (TCP)

Video codecs: H.264
Audio codecs: AAC
Latency: 2 - 30 seconds

Pros: Multicast support, low buffering, wide platform support
Cons: Old codecs, somewhat low security, relatively high latency

WebRTC: Web Real-Time Communication (both UDP and TCP)

@travelhawk
travelhawk / choco_install_home_build.sh
Last active January 6, 2023 10:35
Install and update windows software via chocolatey
::Install chocolatey from https://chocolatey.org first
::Run following commands as administrator
::Update your software with choco upgrade all
cinst -y adobereader
cinst -y googlechrome
cinst -y adblockpluschrome
cinst -y skype
cinst -y 7zip
cinst -y winscp
cinst -y putty
@travelhawk
travelhawk / 1_vsftp.conf
Last active April 16, 2020 12:28
simple ftp server using user list and /var/www/{user} directory
# Config file /etc/vsftpd.conf using userlist and /var/www/{user} directory
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
@travelhawk
travelhawk / unity_addressables.md
Last active February 4, 2020 15:41
Unity Addressables

Unity3D Addressables

Addressables are a new feature by Unity3D to allow the loading of an asset by a simple address no matter whether it is stored locally or remotely. Required assets are loaded at runtime which can reduce build time, installation size and Unity Editor play times. It can also be used to deliver content for deployed games and applications.

However, the setup and the content update after you deployed your game / application can be challenging.

The manual is found here: https://docs.unity3d.com/Packages/com.unity.addressables@0.6/manual/index.html

@travelhawk
travelhawk / Technologies_Collection.md
Last active May 31, 2022 10:19
Link Collection for Software Development and technologies