Skip to content

Instantly share code, notes, and snippets.

View instance-id's full-sized avatar

instance.id instance-id

View GitHub Profile
@instance-id
instance-id / __uv-python-shims.sh
Last active November 22, 2024 03:45
Create uv managed python shims (similar to pyenv shims)
#!/bin/bash
<<comment
============================================================
Last Edit: 11/21/2024
Created by: instance.id (https://github.com/instance.id)
Platform: Linux
Filename: uv-python-shims
============================================================
.DESCRIPTION
@instance-id
instance-id / intellij_eap_updater
Last active October 18, 2024 21:17
Generic script to update a JetBrains plugin to allow current Rider (and probably non-Rider IDE) EAP versions if the plugin tells you that you need to use an older version.
#!/usr/bin/env -S pwsh -noProfile -nologo
<#
.NOTES
============================================================
Last Edit: 10/14/2024
Created by: instance.id (https://github.com/instance-id)
Platform: Linux/Windows
Filename: intellij_eap_updater.ps1
PSVersion: Last tested with 7.4.x
@instance-id
instance-id / github_copilot_eap.ps1
Last active October 30, 2024 20:27
Update JetBrains github copilot plugin to allow current Rider EAP version
#!/usr/bin/env -S pwsh -noProfile -nologo
<#
.NOTES
============================================================
Last Edit: 10/20/2024
Created by: instance.id (https://github.com/instance-id)
Platform: Linux/Windows
Filename: github_copilot_eap.ps1
PSVersion: Last tested with 7.4.x
@instance-id
instance-id / hue_tap_dial_nodered.js
Created December 26, 2023 08:42
A script for a node-red function node to handle Hue Tap Dial rotation and button presses.
var action = msg.payload.action;
var direction = msg.payload.action_direction;
var step = msg.payload.action_time;
if (action == null || action == undefined || action == "") {
return;
}
var dialDirections = ["right", "left"];
var buttonNumbers = ["1", "2", "3", "4"];
@instance-id
instance-id / shell.csx
Created November 14, 2023 16:55
Shell call example
#!/usr/bin/env dotnet-script
#r "System.Console"
#r "System.Diagnostics.Process"
using System;
using System.Diagnostics;
public interface IShell
{
@instance-id
instance-id / unity_discussion.discourse.js
Created June 16, 2023 21:32
Unity Discussions Wide Screen Userscript - ViolentMonkey - (Newer Discourse board)
// ==UserScript==
// @name Unity Discussion(Discourse) WideScreen - unity.com
// @namespace Violentmonkey Scripts
// @match *://discussions.unity.com/*
// @grant none
// @version 0.1
// @author instance.id
// @description 6/16/2023, 4:17:24 PM
// ==/UserScript==
@instance-id
instance-id / UnityForumBoardSearchHelper.js
Last active June 15, 2023 16:51 — forked from unitycoder/UnityForumBoardSearchHelper.js
Unity Forum Search : AutoSelect current board item inside Search select list (based on referrer url)
// ==UserScript==
// @name Unity Forum Search : AutoSelect current board item inside Search select list (based on referrer url)
// @namespace https://unitycoder.com
// @version 1
// @include https://forum.unity.com/search/?type=post
// @grant none
// ==/UserScript==
// more info https://unitycoder.com/blog/2021/05/26/unity-forums-auto-select-current-subforum-in-search-greasemonkey-script/
// get referring board url
@instance-id
instance-id / resize_script.cy
Last active October 20, 2024 02:17
Converting a Window size cycling acript from PowerShell (linux) to Cyber (scripting language built with Zig)
#!/usr/local/bin/cyber
--| Imports and Setup ------------
--|-------------------------------
use os
use cy
var args = os.args()
--| Arg Check ---------------
if args.len() < 2:
@instance-id
instance-id / firenvim_gist.user.js
Created March 5, 2023 00:36
Disables CodeMirror editor in Gists so you can use FireNvim
// ==UserScript==
// @name Github Gist - Hide CodeMirror for Firenvim
// @namespace Violentmonkey Scripts
// @match https://gist.github.com/*
// @run-at document-start
// @version 1.0
// @author instance.id
// @description Hide CodeMirror for Firenvim
// ==/UserScript==
@instance-id
instance-id / zmk_shell_help_request.md
Last active November 21, 2023 16:43
Request for assistance applying new feature branch to Kinesis 360Advantage firmware.

I attempted to implement this myself, but I think I am missing a step somewhere. If anyone is be able to spot something I might have missed, please do let me know, as I am was familiar with ZMK prior to this attempt.

I use a Kinesis 360Advantage Pro, as such I am using firmware from them.

Steps taken:

  1. Forked the Kinesis repo: Original: https://github.com/KinesisCorporation/Adv360-Pro-ZMK My fork: https://github.com/instance-id/Adv360-Pro-ZMK
  2. Checked the west.yml file from the above repo to locate the base firmware and forked it: Original: https://github.com/ReFil/zmk My fork: https://github.com/instance-id/zmk
  3. Made the same modifications from PR: zmkfirmware/zmk#1318 in my forked repo under the appropriate branch: https://github.com/instance-id/zmk/commit/5b1a6afe5d19afa7ee9bc82e12316f8311060e54
  4. Updated the west.yml in my forked firware building repo to point to my forked firmware source repo and branch. https://github.com/instance-id/Adv360-Pro-ZMK/blob/V2.0/config/west.