Skip to content

Instantly share code, notes, and snippets.

View knzconnor's full-sized avatar

Kenzi Connor knzconnor

View GitHub Profile
@knzconnor
knzconnor / - KNZ Drone Utilities.msch
Last active February 22, 2022 02:48
Mining and logistics utilities for the game Mindustry
bXNjaAF4nI17BzyV7f+/PQ7n2Du5rbJ3VpSVvYkk1cHBCedwhlFEESF7RMuOklBEpSQkVCRUqGSlrEhKov89tJ7n+X1ff72e8z7Xue9rfa7P/lwPDQeNCD0NAwEbiKORsrLdC5iQiAQcYIMn4Am+wBbAmuiLJ1PwXmTAyYuED6KQadi8cWT4K55IoOU3JgYF4Ui6gLOqojpgSKUQA/EEHImsBDjjKVgCnhqouzGi3g7AmEjCARaBQUQSRXlXGARKgH0AlkzRBUwDsL6+OJIC+A6VQIG+OOLIOAqgCFDJOG/AMxygbIwHjuxHJMEDO+K8iCRvQFMD8CKCX8gA1otEJJOBQGwQOLAflozTBexJeAIFwAKBuEAvXECAEgCY4ghe4JB4AuDlRyX4AzKhykQgFBsQQJYF8GRAFSB7+eHAaazBjQBEH7AnmYz1xZGBUDzFD/DGUbD4AHAqAjQEmUKiekGEIAMgFQAyDm4oATRMAVhPXACZRtY9ACSgl8J8/g2FEC0Fb4gUCgE/aQr+XKMQCJPag42GIwiiBbxJRWg9NOife0aazBsroeEIxIMbVQwiEb3AX4gkGiYyuDYvPxoOPCEER6LgvBXBX0Eqgg8QZAO3TySFK0IkoGGnIARERmXzgk8QaaCCIKoh32lo5Wl+/9EiQIcAPQIMCDAiwIQAMwIsCLAigEKADRmInYYOAjQCGAQ4EOBEgIuGHgJuBHgQ4EWADwF+BAQQEESGFkJA+Oea6SGgRVp00PppaegZaGk43D0DqDiPDbZz94CfMyCvMSLAhLzNDL4t5O5LwuEIHs4gXcIBGeVQgARxp+xGPxakAys0Gy0NCgN2jAo7d8J5iPDMgJN6jLmvSpsknWUifeKGXXaaAesuLscTWTu4FqtvbH2S8fnqSyvj9YRU74HXJYaJsfkhoZPn8tQF8nEvK3am6NX6saw8j59vcC0KCYsxK8ySim9eRuW88M3NN7MTQMVHOJQbdE25Z4oOcwhYxSkcsio5zXWzZfmyMXrzy5y0
@knzconnor
knzconnor / mindustry.udl.xml
Created February 14, 2022 00:56
Basic Notepadd++ syntax highlighting for Mindustry
<NotepadPlus>
<UserLang name="Mindustry" ext="mnd" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="yes" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments"></Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
---- Minecraft Crash Report ----
WARNING: coremods are present:
FMLPlugin (elulib-0.1.12.jar)
EnderCorePlugin (EnderCore-1.12.2-0.5.37.jar)
ForgelinPlugin (Forgelin-1.7.4.jar)
CTMCorePlugin (CTM-MC1.12.2-0.3.2.18.jar)
AstralCore (astralsorcery-1.12.2-1.9.4.jar)
LoadingPlugin (ResourceLoader-MC1.12.1-1.5.3.jar)
IELoadingPlugin (ImmersiveEngineering-core-0.12-85.jar)
[20:30:19] [main/ERROR]: Exception caught during firing event net.minecraftforge.client.event.RenderLivingEvent$Pre@426eb933:
java.lang.ClassCastException: net.minecraft.client.model.ModelPlayerVR cannot be cast to net.minecraft.client.model.ModelPlayer
at techguns.events.TGEventHandler.onRenderLivingEventPre(TGEventHandler.java:266) ~[TGEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_17_TGEventHandler_onRenderLivingEventPre_Pre.invoke(.dynamic) ~[?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) [EventBus.class:?]
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51]
at Reflector.call(Reflector.java:997) [Reflector.class:?]
[19:55:16] [main/ERROR]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[19:55:16] [main/ERROR]: The following texture errors were found.
[19:55:16] [main/ERROR]: ==================================================
[19:55:16] [main/ERROR]: DOMAIN techguns
[19:55:16] [main/ERROR]: --------------------------------------------------
[19:55:16] [main/ERROR]: domain techguns is missing 22 textures
[19:55:16] [main/ERROR]: domain techguns has 1 location:
[19:55:16] [main/ERROR]: mod techguns resources at C:\Users\knzco\Documents\Curse\Minecraft\Instances\Techguns vr test\mods\techguns-1.12.2-2.0.1.1.jar
[19:55:16] [main/ERROR]: -------------------------
[19:55:16] [main/ERROR]: The missing resources for domain techguns are:
@knzconnor
knzconnor / self_mutation.rb
Created February 12, 2015 23:44
returning self means mutation
# If you return self you have either mutated self, mutated something else (essentially global, even worse)
# or thrown away the change as a NOOP. Let's play with examples?

Keybase proof

I hereby claim:

  • I am timocratic on github.
  • I am timocratic (https://keybase.io/timocratic) on keybase.
  • I have a public key whose fingerprint is 7E07 1867 9F3F 2174 FA58 27C5 B405 8899 5CD3 22B9

To claim this, I am signing this object:

@knzconnor
knzconnor / uri_validator.rb
Last active December 14, 2015 16:09 — forked from bluemont/url_validator.rb
Totally untested, just forked and tweaked for discussion
require 'addressable/uri'
#Accepts options[:message] and options[:allowed_protocols]
class UriValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
uri = parse_uri(value)
if !uri
record.errors[attribute] << generic_failure_message
elsif !allowed_protocols.include?(uri.scheme)
@knzconnor
knzconnor / lsof.bash
Created October 9, 2012 17:11
lsof command to find all things listening on ports
lsof -Pnl +M -i4 | grep LISTEN
@knzconnor
knzconnor / bootstrap.sh
Created October 4, 2011 07:05
An example bash bootstrap to get workstation set-up with chef - update YOUR_ORG below
#!/usr/bin/env sh
#After forking and editing YOUR_ORG to point at the right repo can be run via:
#bash <(curl -s https://raw.github.com/gist/THEIDOFYOURFORKEDGIST)
#if you use `curl xxx | sh` input will be messed up and there will be no pauses
#I keep XCode and gcc on a thumbdrive along with java, for speeding things up
#http://support.apple.com/downloads/DL1421/en_US/JavaForMacOSX10.7.dmg
read -p "Install XCode or gcc (http://github.com/kennethreitz/osx-gcc-installer)"
#setup your ssh keys for github