Skip to content

Instantly share code, notes, and snippets.

@zipacna
zipacna / TASKs-Dark.xml
Last active July 25, 2023 06:05
Simple TASKs Notepad++ User Defined Language (UDL) for Dark Themes
<NotepadPlus>
<UserLang name="TASKs Dark" ext="txt" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="yes" Keywords2="yes" Keywords3="yes" Keywords4="yes" Keywords5="yes" Keywords6="yes" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@zipacna
zipacna / minecolonies1.15-latest.log
Created June 23, 2023 21:52
MineColonies 1.15.2 AI wants you to know
[23Jun2023 21:33:06.029] [Server thread/FATAL] [net.minecraft.util.concurrent.ThreadTaskExecutor/]: Error executing task on Server
java.lang.IllegalArgumentException: Can not reassign a request that has children.
at com.minecolonies.coremod.colony.requestsystem.management.handlers.RequestHandler.reassignRequest(RequestHandler.java:228) ~[?:unspecified]
at com.minecolonies.coremod.colony.requestsystem.management.manager.StandardRequestManager.reassignRequest(StandardRequestManager.java:250) ~[?:unspecified]
at com.minecolonies.coremod.colony.requestsystem.management.handlers.ProviderHandler.removeResolverWithAssignedRequests(ProviderHandler.java:173) ~[?:unspecified]
at com.minecolonies.coremod.colony.requestsystem.management.handlers.ProviderHandler.processResolverForRemoval(ProviderHandler.java:136) ~[?:unspecified]
at com.minecolonies.coremod.colony.requestsystem.management.handlers.ProviderHandler.processResolversForRemoval(ProviderHandler.java:109) ~[?:unspecified]
at com.minecolonies.coremod.colony
@zipacna
zipacna / BigOhNo.py
Last active September 22, 2021 17:31
That escalated quickly
"""
Small Big Oh No.
Author: Jean Mattes
Author-URI: https://risingcode.net/
License: CC-BY-4.0 (Docs) and MIT (Code)
"""
def f():
"""
@zipacna
zipacna / docker-info.sh
Last active March 19, 2022 18:24
Just a collection of Go Templates for formatting Docker output.
#!/usr/bin/env bash
# Gist-Author: Jean Mattes
# Gist-Author-URI: https://risingcode.net/
# Offical Docs: https://docs.docker.com/config/formatting/
# Hints (what fields are available, e.g. for "docker ps -a"): sudo docker ps -a --format='{{json .}}'
# Write hints to json file (posix style): sudo docker ps -a --format='{{json .}}' > go-templates-docker.json
# Different kind of Hints: sudo docker ps -a --format='table {{.}}'
# Field Copy-Paste Snippet: \t{{.}}
# For more Fields, check that ls commands inspect equivalent.
@zipacna
zipacna / http_cat.py
Last active July 9, 2021 14:02
GET all Images from http.cat responding to the http status codes
"""
GET all Images from http.cat responding to the http status codes
Author: Jean Mattes
Author-URI: https://risingcode.net
Source: https://http.cat
"""
from http.client import responses
from urllib import error, request
from os.path import isfile