Skip to content

Instantly share code, notes, and snippets.

@vildninja
vildninja / TPrint.h
Created January 11, 2020 15:39
Templated comma separated println for Arduino Serial output: tprintln("Hello ", 101, " Arduino!");
// Created by Jannek @VildNinja
/*
Usage example: tprintln("Hello ", 101, " Arduino!");
Produces:
Serial.print("Hello ");
Serial.print(101);
Serial.print(" Arduino!");
Serial.println();
*/
@vildninja
vildninja / RemoveMissingScriptsRecursively.cs
Created March 25, 2019 10:06
Remove missing MonoBehaviour script components in Unity 2019.1 including visiting prefafab assets.
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEditor;
public static class FindMissingScriptsRecursively
{
[MenuItem("Auto/Remove Missing Scripts Recursively Visit Prefabs")]
private static void FindAndRemoveMissingInSelected()
{
// EditorUtility.CollectDeepHierarchy does not include inactive children
@vildninja
vildninja / findmypi.sh
Created February 6, 2019 22:27
script to locate my raspberry pi on a new local network
macaddress=XX:XX:XX:XX:XX:XX
mylocalip=$(ip addr show | egrep -o '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/[0-9]+' | grep -v 127.0.0.1)
echo scanning for $macaddress on $mylocalip
piip=$(sudo nmap -p 22 $mylocalip | grep -B5 $macaddress | egrep -o '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+')
echo found pitv on $piip

Keybase proof

I hereby claim:

  • I am vildninja on github.
  • I am jannek (https://keybase.io/jannek) on keybase.
  • I have a public key whose fingerprint is 3820 6C08 E4BB BAA3 1594 24F3 1E77 8558 BF15 5624

To claim this, I am signing this object:

@vildninja
vildninja / gist:b40bb327beb496c6ae0d
Created August 10, 2014 21:09
Verifying myself: My Bitcoin username is +vildninja. https://onename.io/vildninja
Verifying myself: My Bitcoin username is +vildninja. https://onename.io/vildninja