Skip to content

Instantly share code, notes, and snippets.

View Blendman974's full-sized avatar
🌱
Go green !

Blendman974 Blendman974

🌱
Go green !
View GitHub Profile
@Blendman974
Blendman974 / logs.txt
Last active August 28, 2025 14:03
booklore logs1
backend-1 | 2025-08-28T13:32:56.911Z INFO 588 --- [booklore-api] [nio-8080-exec-7] c.a.b.service.upload.FileUploadService : File uploaded to final location: /books/William Shakespeare/Romeo et Juliette - William Shakespeare (2019).epub
backend-1 | 2025-08-28T13:32:56.951Z ERROR 588 --- [booklore-api] [nio-8080-exec-7] c.a.b.s.fileprocessor.EpubProcessor : Error generating cover for EPUB 'Romeo et Juliette - William Shakespeare (2019).epub': Reached end of entry, but crc verification failed for mimetype
backend-1 |
backend-1 | net.lingala.zip4j.exception.ZipException: Reached end of entry, but crc verification failed for mimetype
backend-1 | at net.lingala.zip4j.io.inputstream.ZipInputStream.verifyCrc(ZipInputStream.java:329) ~[zip4j-2.11.5.jar:na]
backend-1 | at net.lingala.zip4j.io.inputstream.ZipInputStream.endOfCompressedDataReached(ZipInputStream.java:240) ~[zip4j-2.11.5.jar:na]
backend-1 | at net.lingala.zip4j.io.inputstream.ZipInputStream.read(ZipInputStream.java:187) ~[zip4j-2
@Blendman974
Blendman974 / Readme.md
Created July 9, 2025 12:53
Zenbook duo sway workspace switch

Uses asus-wmi-screenpad driver.

switch-workspaces.sh swap the workspaces between main screen and screenpad.

screenpad.sh is used to control the brighness. It is inspired by screenpad-tools

  • fix is called on resume after sleep to set the brighness/power of the screenpad back to previous value
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
from scipy.ndimage import median_filter, grey_opening
from skimage.filters import threshold_li
from skimage.morphology import square, disk
import cv2
def load_image(image_path):
@Blendman974
Blendman974 / Spleef.java
Last active April 17, 2023 05:47
GameCore Menestis : Spleef
package com.aspaku.game.game.gamemodes.spleef;
import com.aspaku.game.Game;
import com.aspaku.game.game.GameManager;
import com.aspaku.game.game.GameMode;
import com.aspaku.game.game.events.GamePlayerLeaveEvent;
import com.aspaku.game.game.events.SpectatorJoinEvent;
import com.aspaku.game.game.events.SpectatorLeaveEvent;
import com.aspaku.game.game.timers.TimerManager;
import com.aspaku.game.game.timers.TimerTask;
@Blendman974
Blendman974 / razer-laptop-control-openrazer.md
Last active February 8, 2021 12:36
Using both razer laptop control and OpenRazer drivers

Using both razer laptop control and OpenRazer drivers

Razer laptop control
Openrazer

The goal is to prevent openrazer from loading our laptop devices, so other drivers can use them. We can do so by modifying the openrazer loading script (/usr/lib/udev/razer_mount).

The solution is actually pretty simple, but since it implies modifying an openrazer file, this solution wont probably stay if you update openrazer...

Openrazer won't be able to see or control your laptop, but will still be able to control other razer peripherals.