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 / 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.
@instance-id
instance-id / script_runner.csx
Created August 22, 2022 14:23
My dotnet-script runner and backup scheduler
#!/usr/bin/env dotnet-script
#load "../shell/shell.csx"
#load "../webcheck/webcheck.csx"
#load "../cointop/cointop_class.csx"
#load "../extensions.csx"
#r "nuget: FluentScheduler, 5.5.1"
#r "../packages/fluentscheduler/FluentScheduler.dll"
#r "System.Globalization.dll"
@instance-id
instance-id / onedev_dark_wip.css
Last active August 8, 2022 11:13
A work in progress dark theme for onedev using Stylus (I am colorblind, so it probably looks terrible. Sorry.)
:root {
/* Body */
--headers: #1d1d1e;
--main-bg-color: #1b1b1c;
--non-bg-color: #212122;
--footer: #171717;
--menu-hover: #2b292b;
--modal-bg: #171717;
@instance-id
instance-id / horizon_api.ps1
Created August 2, 2022 22:34
Azure Horizon Cloud API
<#
.NOTES
============================================================
Version: v0.1.00
Created: 08/02/2022
Last Edit: 08/02/2022
Platform: Windows
Filename: horizon_api.ps1
PSVersion: 7.2.5
============================================================
@instance-id
instance-id / DIContainer.cs
Last active February 15, 2024 04:59
OneShot - Dependency Injection: Example Registration and Injection Handler
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;
@instance-id
instance-id / RefreshGeneratedSource.cs
Last active July 12, 2022 03:52
Unity GenerateAuthoringComponent error for Entities 0.51 helper
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
{
@instance-id
instance-id / main.dart
Created February 11, 2022 00:52
Minimal Rust / Flutter project utilizing NativeShell, libadwaita, and adwaita
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());
}