Skip to content

Instantly share code, notes, and snippets.

View umjammer's full-sized avatar

Naohide Sano umjammer

View GitHub Profile
@umjammer
umjammer / mc_cmd.md
Last active April 8, 2022 16:21
[Minecraft] Commands for a picture frame

make a nearest picture frame transparent

/data merge entity @e[type=minecraft:item_frame,limit=1,sort=nearest] {Invisible:1b}

make a nearest picture frame fixed

/data merge entity @e[type=minecraft:item_frame,limit=1,sort=nearest] {Fixed:1b}
@umjammer
umjammer / latest.log
Created June 16, 2020 17:08
wagrapple-0.9.6
[02:02:13] [main/INFO]: Loading for game Minecraft 1.15.2
[02:02:13] [main/WARN]: Warnings were found!
- Conflicting versions found for fabric-api-base: used 0.1.2+b7f9825d95, also found 0.1.2+28f8190f42, 0.1.2+b7f9825d0c
- Conflicting versions found for fabric-networking-v0: used 0.1.7+003643510c, also found 0.1.7+12515ed975
- Conflicting versions found for fabric-events-lifecycle-v0: used 0.1.2+003643510c, also found 0.1.2+b7f9825de8
[02:02:13] [main/INFO]: [FabricLoader] Loading 59 mods: fabric-renderer-api-v1@0.2.10+f08b61330c, fabric-keybindings-v0@0.2.0+2af3af910c, cardinal-components-block@2.3.4, fabricloader@0.8.7+build.201, org_zeroturnaround_zt-zip@1.14, fabric-containers-v0@0.1.3+b7f9825d0c, wagrapple@0.9.6, fabric-object-builder-api-v1@1.2.1+e7a4edb30c, fabric-dimensions-v1@0.3.0+2ad156310c, fabric-api-base@0.1.2+b7f9825d95, mm@2.0, fabric-rendering-data-attachment-v1@0.1.3+b7f9825d0c, cardinal-components-item@2.3.4, fabric-textures-v0@1.0.4+821cdba70c, fabric-rendering-fluids-v1@0.1.6+12515ed
@umjammer
umjammer / crash-client.txt
Created June 16, 2020 17:05
wagrapple-0.9.6.jar
---- Minecraft Crash Report ----
// This doesn't make any sense!
Time: 20/06/17 2:02
Description: Initializing game
net.fabricmc.loader.api.EntrypointException: Exception while loading entries for entrypoint 'main' provided by 'cardinal-components-level'
at net.fabricmc.loader.EntrypointStorage.getEntrypointContainers(EntrypointStorage.java:193)
at net.fabricmc.loader.FabricLoader.getEntrypointContainers(FabricLoader.java:228)
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke0(EntrypointUtils.java:44)
@umjammer
umjammer / AutoHotKey_Remove_a_Kindle_Content.md
Last active August 30, 2022 09:08
[AutoHotKey] Remove a Kindle Content

AutoHotKey Remove a Kindle Content in one key

; !!! WARNING !!!
; on Mac hosted VirtualBox, left command key is assigned as the special key for the host
; if you want to use the left command key, you need to change the assignment

#IfWinActive ahk_exe Kindle.exe
; removea normal book from this terminal at the cursor
#d::
@umjammer
umjammer / eclipse_install.md
Last active March 14, 2022 16:21
[Eclipse] How to execute Eclipse Installer app when you got 'Failed to create the Java Virtual Machine.'

How to execute Eclipse Installer app

  • Eclipse 2020-03, Mac OSX
  • when you got Failed to create the Java Virtual Machine.
  • editing eclipse-inst.ini doesn't work for me
$ /Volumes/Eclipse\ Installer.app/Contents/MacOS/eclipse-inst -vm /Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home/bin/java
@umjammer
umjammer / how_to_build_magisk.md
Last active April 4, 2023 14:05
How to build Magisk

How to build Magisk

$ git clone --recurse-submodules https://github.com/topjohnwu/Magisk.git
$ cd Magisk
$ cp config.prop.sample config.prop
$ vi config.prop
@umjammer
umjammer / list_maven_dependencies_and_survey.md
Created March 6, 2020 22:18
How to list maven dependency jars as paths

How to list maven dependency jars as paths

pom.xml

      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.6</version>
        <executions>
 
@umjammer
umjammer / Disable Quarantine.md
Last active February 3, 2022 09:42
Enabling a Quick Look plugin on Catalina

Disable Mac Quarantine

$ xattr -d -r com.apple.quarantine ~/Library/QuickLook/Foo.qlgenerator
#!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
import sys
import os, getopt, struct
import imghdr
def get_image_type(imgname, imgdata=None):
imgtype = imghdr.what(imgname, imgdata)
@umjammer
umjammer / Modify Play Count.scpt
Created February 17, 2020 02:04
Modify Play Count apple script
tell application "iTunes"
try
set trk to {}
set slct to a reference to selection
if slct as list is {} then return
repeat with x in slct
set end of trk to (name of x as Unicode text) & (" (" & played count of x & ")")
end repeat
set AppleScript's text item delimiters to ", "
set y to text returned of (display dialog ((trk as Unicode text) & " ใฎๅ†็”Ÿๅ›žๆ•ฐใ‚’ๅค‰ๆ›ด") default answer "")