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 / 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 / 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 / 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)

# 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 / 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
@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 / 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 / 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
[email protected]
## prune unused image to reduce space
@daily docker image prune -f > /dev/null
@travelhawk
travelhawk / #powershell_aliases.md
Last active March 28, 2025 00:20
Aliases for Powershell Terminal on Windows

Powershell Aliases

Add Aliases in Windows

  1. Open Windows Terminal
  2. Type notepad $profile
    • If doesn't exists, creates file in ~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
  3. Add Aliases in file
    • Set-Alias <Name> <Command>
@travelhawk
travelhawk / gitlab-ci.yml
Created March 4, 2022 18:03
Build, publish and deploy docker images
stages:
- publish
- deploy
variables:
TAG_LATEST: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_NAME:latest
TAG_COMMIT: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_NAME:$CI_COMMIT_SHORT_SHA
publish:
image: docker:latest