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 / ffmpeg_commands.md
Last active March 24, 2025 11:30
Collection of ffmpeg commands (basic usage, streaming, advanced usage)

ffmpeg

ffmpeg is a fast video and audio converter that can also grab from a live audio/video source.

Standard usage

Getting help and information

  • -h show all options
  • -h(elp) topic show help
  • -version show version
  • -formats show available formats
@travelhawk
travelhawk / install_software.sh
Last active September 22, 2020 12:25
bash script to install basic development software for Ubuntu automatically
# standard developer tools for building software
sudo apt install -y build-essential
# development
sudo apt install -y python3
sudo apt install -y openjdk-8-jdk
sudo apt install -y git
sudo apt install -y vlc browser-plugin-vlc
sudo apt install -y putty
sudo apt install -y slack
@travelhawk
travelhawk / neural-style-transfer-with-eager-execution.ipynb
Last active November 11, 2019 14:10
Neural Style Transfer with Eager Execution
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@travelhawk
travelhawk / 82-IUnified Interface-INewInterface.cs.txt
Last active September 10, 2019 15:18
Adds an "IUnified Interface" to the create asset context menu in Unity3D. The template creates the appropriate container needed for IUnified automatically.
using System;
public interface #SCRIPTNAME# {
}
[Serializable]
public class #SCRIPTNAME#Container : IUnifiedContainer<#SCRIPTNAME#> {}
@travelhawk
travelhawk / TMP_SDF-MobileInstanced.shader
Created April 30, 2019 10:39 — forked from peted70/TMP_SDF-MobileInstanced.shader
TextMeshPro Shader updated to work with Single pass stereo rendering in Unity
// Simplified SDF shader:
// - No Shading Option (bevel / bump / env map)
// - No Glow Option
// - Softness is applied on both side of the outline
Shader "TextMeshPro/Mobile/Distance Field Instanced" {
Properties {
_FaceColor ("Face Color", Color) = (1,1,1,1)
_FaceDilate ("Face Dilate", Range(-1,1)) = 0
@travelhawk
travelhawk / IpManager.cs
Created March 19, 2019 15:59
Use this class to obtain the ip on different platforms including HoloLens using Unity3D as a development platform.
using System.Collections.Generic;
using System.Net.NetworkInformation;
using System.Net.Sockets;
#if WINDOWS_UWP
using Windows.Networking.Connectivity;
using Windows.Networking;
#endif
/// <summary>
/// Get the ip of the actual device. Also works on UWP (e.g. HoloLens).
@travelhawk
travelhawk / #doskey_env
Last active June 28, 2018 12:53
Define own environment for cmd for aliases, shortcuts and adding to the PATH
# README
#############################################################################
Installation
1. clone the the env.cmd file and place it somewhere on your computer
2. create a shortcut to c:\windows\system32\cmd.exe
3. set the target to C:\Windows\System32\cmd.exe /K path-to-file/env.cmd
@travelhawk
travelhawk / #boxstarter_builds
Last active May 17, 2019 09:06
Bulk Windows Install using Boxstarter and chocolatey
# README
########################################################################
# Windows Install using Boxstarter and chocolatey
# You can use the Install script or install it manually using chocolatey