This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
This file contains hidden or 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
| [CmdletBinding()] | |
| param ( | |
| [Parameter()][String]$path = $HOME | |
| ) | |
| $jobs = @() | |
| $directories = @() | |
| try { | |
| Import-Module PoshRSJob |
This file contains hidden or 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
| <# | |
| .NOTES | |
| ======================================================= | |
| Version: v0.1.00 | |
| Created: 04/11/2021 | |
| Platform: Linux/Windows | |
| PSVersion: 7.2.4 | |
| ======================================================= | |
| .DESCRIPTION | |
| Imports modules in separate runspace and returns them to main session |
This file contains hidden or 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
| #region --------------------------------------- Get-PatchTuesday | |
| # --- Modified from: https://github.com/tsrob50/Get-PatchTuesday | |
| # -------------------------------------------------------------- | |
| Function Get-PatchTuesday { | |
| [CmdletBinding()] | |
| Param | |
| ( | |
| [Parameter(position = 0)] | |
| [ValidateSet('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday')] | |
| [String]$weekDay = 'Tuesday', |