Skip to content

Instantly share code, notes, and snippets.

View magneticflux-'s full-sized avatar
💾
Ctrl+S

Mitchell Skaggs magneticflux-

💾
Ctrl+S
  • Greater St. Louis Area, Missouri, USA, Earth, Sol system, Orion Arm, Milky Way, Laniakea Supercluster, The Universe
  • 22:04 (UTC -05:00)
View GitHub Profile
@magneticflux-
magneticflux- / lambdabettergrass_gen.bash
Created November 7, 2022 01:44
A small utility script to generate LambdaBetterGrass data in bulk
#!/usr/bin/env bash
modid='terrestria'
input_base='client/src/main/resources/'
output_base='run/resourcepacks/bettergrass/'
input_resources="$input_base/assets/$modid/"
output_resources="$output_base/assets/$modid/"
# params: search text, (optional) data override, (optional) variant
@magneticflux-
magneticflux- / continuity.patch
Created June 15, 2022 20:42
Continuity Sodium/next (b98aca11) patch
Index: build.gradle
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/build.gradle b/build.gradle
--- a/build.gradle (revision d9c05615509db804bb818e30a77a207dd5f2b86a)
+++ b/build.gradle (date 1655324140698)
@@ -41,7 +41,7 @@
exclude group: 'net.fabricmc.fabric-api'
@magneticflux-
magneticflux- / colormatic.patch
Created June 14, 2022 06:07
Colormatic Sodium/next (b98aca11) patch
Index: src/main/java/io/github/kvverti/colormatic/mixinsodium/color/SodiumBlockColorsMixin.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/main/java/io/github/kvverti/colormatic/mixinsodium/color/SodiumBlockColorsMixin.java b/src/main/java/io/github/kvverti/colormatic/mixinsodium/color/SodiumBlockColorsMixin.java
--- a/src/main/java/io/github/kvverti/colormatic/mixinsodium/color/SodiumBlockColorsMixin.java (revision d1441997f0977948a3c7d0649e0e597287b89fdb)
+++ b/src/main/java/io/github/kvverti/colormatic/mixinsodium/color/SodiumBlockColorsMixin.java (date 1655185701679)
@@ -22,20 +22,19 @@
package io.github.kvverti.colormatic.mixinsodium.color;
@magneticflux-
magneticflux- / indium.patch
Created June 13, 2022 21:29
Indium Sodium/next (b98aca11) patch
Index: build.gradle
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/build.gradle b/build.gradle
--- a/build.gradle (revision 91eb1b178c25b43316e6738c3133f6fa3d78904f)
+++ b/build.gradle (date 1655155771689)
@@ -43,7 +43,7 @@
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
@magneticflux-
magneticflux- / effective.patch
Created June 13, 2022 21:28
Effective Sodium/next (b98aca11) patch
Index: build.gradle
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/build.gradle b/build.gradle
--- a/build.gradle (revision 308a3171dcd232adcb4518689e6a24069a3a309c)
+++ b/build.gradle (date 1655155672158)
@@ -69,7 +69,7 @@
// modRuntimeOnly "com.terraformersmc:modmenu:${mod_menu_version}"
@magneticflux-
magneticflux- / culllessleaves.patch
Created June 13, 2022 21:27
CullLessLeaves Sodium/next (b98aca11) patch
Index: src/main/java/dev/isxander/culllessleaves/mixins/sodiumcompat/SodiumGameOptionPagesMixin.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/main/java/dev/isxander/culllessleaves/mixins/sodiumcompat/SodiumGameOptionPagesMixin.java b/src/main/java/dev/isxander/culllessleaves/mixins/sodiumcompat/SodiumGameOptionPagesMixin.java
--- a/src/main/java/dev/isxander/culllessleaves/mixins/sodiumcompat/SodiumGameOptionPagesMixin.java (revision 24be5bb32ad04a2c3393aba5adb35e7ed7a081cf)
+++ b/src/main/java/dev/isxander/culllessleaves/mixins/sodiumcompat/SodiumGameOptionPagesMixin.java (date 1655154435535)
@@ -1,11 +1,14 @@
package dev.isxander.culllessleaves.mixins.sodiumcompat;

Keybase proof

I hereby claim:

  • I am magneticflux- on github.
  • I am skaggsm (https://keybase.io/skaggsm) on keybase.
  • I have a public key whose fingerprint is CA2A 3324 43A7 BD99 8FCE DFC4 4EB0 FECB 84AE 8967

To claim this, I am signing this object:

@magneticflux-
magneticflux- / LiveDataUtils.kt
Last active February 3, 2023 19:08
Helpful Android-Kotlin LiveData utilities
//--------------------------------
// CHECK THE COMMENTS FOR UPDATES!
//--------------------------------
/*
* Copyright (C) 2017 Mitchell Skaggs, Keturah Gadson, Ethan Holtgrieve, Nathan Skelton, Pattonville School District
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@magneticflux-
magneticflux- / failed_build
Created November 4, 2017 23:01
Gradle dependency resolution failure
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':library:debugCompileClasspath'.
> Could not resolve com.google.code.gson:gson:[2.3.1, ).
Required by:
project :library > com.github.modular-ftc:robotcore-repackaged:3.5.5 > org.danilopianini:gson-extras:0.2.1
> Could not resolve com.google.code.gson:gson:[2.3.1, ).
> Failed to list versions for com.google.code.gson:gson.
> Could not list versions using M2 pattern 'https://raw.githubusercontent.com/Pattonville-Robotics/ftc-lib-repo/mvn-repo/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'.
07-27 16:15:41.279 13892-13892/? I/zygote: Not late-enabling -Xcheck:jni (already on)
07-27 16:15:41.293 13892-13892/? W/zygote: Unexpected CPU variant for X86 using defaults: x86
07-27 16:15:41.566 13892-13892/com.github.matteobattilana.weather I/InstantRun: starting instant run server: is main process
07-27 16:15:41.567 13892-13892/com.github.matteobattilana.weather V/InstantRun: Starting server socket listening for package com.github.matteobattilana.weather on android.net.LocalSocketAddress@c66695f
07-27 16:15:41.567 13892-13892/com.github.matteobattilana.weather V/InstantRun: Started server for package com.github.matteobattilana.weather
07-27 16:15:41.673 13892-13892/com.github.matteobattilana.weather D/AndroidRuntime: Shutting down VM
07-27 16:15:41.679 13892-13892/com.github.matteobattilana.weather E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.github.matteobattilana.weather, PID: 13892