This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using instance.id.DataTypes; | |
using instance.id.Logging; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
using UnityObject = UnityEngine.Object; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using UnityEditor; | |
using UnityEngine; | |
namespace instance.id.Editors | |
{ | |
// --| Place this in an Editor folder and press Ctrl+Alt+R | |
// --| Will remove "GeneratedCode" folder and recompile | |
public static class RefreshGeneratedSource | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter/widgets.dart'; | |
import 'package:libadwaita/libadwaita.dart'; | |
import 'package:nativeshell/nativeshell.dart'; | |
import 'package:adwaita/adwaita.dart'; | |
import 'package:window_decorations/window_decorations.dart'; | |
void main() async { | |
runApp(MyApp()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Web Based Microsoft Teams Presence To NodeRed/HomeAssistant | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Sends HTTP request to NodeRed HTTP Listener when Web based Microsoft Teams status/presence changes to enable automated actions in NodeRed/HomeAssistant | |
// @author instance.id | |
// @match https://*.teams.microsoft.us/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
// -- Place in Editor Folder ------------ | |
namespace instance.id.Extensions.Editors | |
{ | |
/// <summary> | |
/// This editor utility can lock/unlock unity script compile from menu item. | |
/// See more https://raspberly.hateblo.jp/entry/InvalidateUnityCompile | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---------------------------------------------- | |
// -- Project View Asset Move Confirmation ------ | |
// -- Place In Editor Folder -------------------- | |
// ---------------------------------------------- | |
using System; | |
using System.IO; | |
using UnityEditor; | |
internal sealed class DragAssetConfirmation : UnityEditor.AssetModificationProcessor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$webclient = New-Object System.Net.WebClient | |
$url = "https://github.com/darkoperator/Posh-SSH/archive/master.zip" | |
Write-Host "Downloading latest version of Posh-SSH from $url" -ForegroundColor Cyan | |
$file = "$($env:TEMP)\Posh-SSH.zip" | |
$webclient.DownloadFile($url,$file) | |
Write-Host "File saved to $file" -ForegroundColor Green | |
$targetondisk = "$($env:USERPROFILE)\Documents\PowerShell\Modules" | |
New-Item -ItemType Directory -Force -Path $targetondisk | out-null | |
$shell_app=new-object -com shell.application | |
$zip_file = $shell_app.namespace($file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if UNITY_EDITOR | |
using System; | |
using System.IO; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Linq; | |
using System.Diagnostics; | |
using UnityEngine.UIElements; | |
using Debug = UnityEngine.Debug; | |
using PackageInfo = UnityEditor.PackageManager.PackageInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# -------------------------------------------------------------------------------------------- | |
# -- Using Flameshot (https://github.com/flameshot-org/flameshot) as the capture application | |
# -- with imgur-screenshot (https://github.com/jomo/imgur-screenshot) to upload imgur account | |
# -------------------------------------------------------------------------------------------- | |
# -- borrowed these from the imgur-screenshot script ---- | |
# -- to describe the filename format and output path ---- | |
declare -g FILE_NAME_FORMAT="%Y-%m-%d_%H-%M.png" | |
declare -g FILE_DIR="${XDG_PICTURES_DIR:-$HOME/Pictures/upload}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------- Dev PC Setup | |
# -------------------------------------------------------------- | |
echo '-----------------------------' | |
echo 'Begin dev environment setup: ' | |
echo '-----------------------------' | |
Update-ExecutionPolicy Unrestricted | |
# -------------------------------- Check for 10gb network adapter | |
$networkAdapter = Get-NetAdapter -InterfaceDescription 'Red Hat*' -ErrorAction SilentlyContinue | select -Property ifIndex |