Skip to content

Instantly share code, notes, and snippets.

View haraldreingruber's full-sized avatar
🤓

Harald Reingruber haraldreingruber

🤓
View GitHub Profile
@chuckbergeron
chuckbergeron / CompileTime.cs
Created December 20, 2017 20:46
Unity Measure Compile Time
# // Originally found here: https://answers.unity.com/questions/1131497/how-to-measure-the-amount-of-time-it-takes-for-uni.html
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]
class CompileTime : EditorWindow
{
static bool isTrackingTime;
static double startTime;
@mscottford
mscottford / README.md
Last active March 26, 2021 15:42
Git Churn command

Instructions for running on Windows 10 (via Ubuntu Bash)

  1. Open Ubuntu bash environment shell
  2. Install dependencies
    sudo apt-get update
    sudo apt-get install git curl
    
  3. Create bin directory in your home folder
@mbleigh
mbleigh / README.md
Last active September 25, 2020 04:26
Automate the deletion of old Firebase Hosting versions.

Firebase Hosting Version Cleanup

This is a simple utility script for cleaning up Firebase Hosting versions, leaving a specified number of versions remaining. This is primarily done to conserve storage usage, but may have other uses.

USE AT YOUR OWN RISK. NO WARRANTY IS PROVIDED. THIS SCRIPT DOES DELETE STUFF PERMANENTLY

Usage

node cleanupVersions.js [commit]

@schmonz
schmonz / conferences2021.md
Last active September 3, 2020 07:36
2021 conferences of interest

(Last year's list)

2021: Attended

Start End Place Event CFP

2021: Will Attend

| Start | End | Place | Event | CFP |

/* How to use this script :
To play with it "as is" try it in the console of your browser first.
If you do like and want to make it permanent then a bit of UI integration is needed
(e.g. could add an icon, chat command, etc).
That would be done by using https://hubs.mozilla.com/docs/hubs-cloud-custom-clients.html
So that your integration remains easy to merge and maintainable over time it is recommended to
touch Hubs Cloud code itself as little as possible. For example having separate components for
// from https://github.com/zakaton/Bose-Frames-Web-SDK
var lib = "https://hubs-bose-js.glitch.me/script.js"
// TODO if CSP is disabled
// if not send warning with Firefox about:config setting security.csp.enable to false
if (!tools) { // mostly there for live testing
var tools = document.createElement("script")
tools.setAttribute("src", lib)
document.head.appendChild(tools)
tools.onload = readyScript
@franzenzenhofer
franzenzenhofer / minimal-user-interaction.js
Last active February 16, 2024 04:31
minimal-user-interaction Google Tag Manager Tag
<script>
var mui = function()
{
var fired = false;
var kickTrigger = function()
{
if(fired === true){return false;}
//console.log("miniumal-user-interaction");
dataLayer.push({'minimal-user-interaction': true});
@gregorriegler
gregorriegler / maven-module-graph.md
Created December 11, 2020 22:36
maven module graph

mvn com.github.ferstl:depgraph-maven-plugin:aggregate -Dincludes=com.groupId -DcreateImage=true

dot -Tpng dependency-graph.dot > dependency-graph.png