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 / #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 / 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 / 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 / #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
@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 / 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 / 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 / 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 / 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
# 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"