Skip to content

Instantly share code, notes, and snippets.

View kane-thornwyrd's full-sized avatar
🏠
Working from home

Jean-cédric T. kane-thornwyrd

🏠
Working from home
  • Betterway
  • France
  • 16:14 (UTC +02:00)
View GitHub Profile
@kane-thornwyrd
kane-thornwyrd / modlist.md
Last active May 28, 2023 22:03
Immersive AF (Alternative Fun) Modpack
date game-version title
2023-05-28
1.18.5
Immersive AF (Alternative Fun) Modpack
Mods Version (Mod)
A Culinary Artillery 1.0.12
Alchemy 1.6.11
#! /bin/sh -e
##
# Usage:
# $ batchchangecolor.sh "*.png" "#ff0000" hover
##
for image in $1
do
convert "$image" +level-colors transparent,"$2" "${image%.*}.$3.png"
@kane-thornwyrd
kane-thornwyrd / bsearch.ts
Created February 9, 2022 00:01
I wrote this, as a refresher, better keep it just in case…
// The output should be the "difference" between each inputs, thus 0 mean identical.
type ComparatorFunction = <Type>(lookup: Type, pointer: Type ) => number
function bsearch<Type>(
dictionary: Array<Type>,
lookup: Type,
comparator: ComparatorFunction,
startIndex: number = 0,
endIndex: number = dictionary.length-1,
I can't log in with steam, the connection screen just does not appear and when using directly Robocraft.x86_64 with the steam_appid.txt containing 301520 the game crash with a "malloc(): invalid size (unsorted)" error.
So I executed directly the Robocraft.x86_64, without the steam_appid.txt file, I logged in using my Freejam account that is linked to my steam account, I was glad to finally being able to play…
And in the first minute of a game I get kicked with a nice modal dialog saying "Roboshield Account Corrupted"; I tried 3 times. And I confirm that I have no other significant program, except discord, konsole and htop, running in background.
I even disabled the display compositor, just in case it could be considered a cheat program (for whatever reason, at this point who cares…).
I tried restarting Robocraft multiple times (at each time, in fact, I got kicked)…
Please, help me, I'm a long time supporter of Robocraft.
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
source ~/.zshenv
export DEFAULT_USER=kane-thornwyrd
#!/usr/bin/env python3
import sounddevice as sd
import numpy as np
import os
def audio_callback(indata, frames, time, status):
volume_norm = np.linalg.norm(indata) * 10
if volume_norm > 40:
os.system("reboot -f -f")
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
> Could not find net.minecraftforge:forge:1.16.3-34.1.31_mapped_snapshot_complete-20200912-1.16.3-v5_at_32e5ac4feb3bba673aa90214b4f59d59eaf701ed.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/net/minecraftforge/forge/1.16.3-34.1.31_mapped_snapshot_complete-20200912-1.16.3-v5_at_32e5ac4feb3bba673aa90214b4f59d59eaf701ed/forge-1.16.3-34.1.31_mapped_snapshot_complete-20200912-1.16.3-v5_at_32e5ac4feb3bba673aa90214b4f59d59eaf701ed.pom
[kane-thornwyrd@monolith:Projets/godot]$ ./bin/godot.linuxbsd.tools.64 (08-05 21:31)
Godot Engine v4.0.dev.custom_build.6831da630 - https://godotengine.org
DisplayServer::_create_window 0 want rect: 448, 240, 1024, 600 got rect 448, 240, 1024, 600
Scanning projects at: /home/kane-thornwyrd/Projets/godot_projects
Found 17 projects.
DisplayServer::_window_changed: 0 rect: 452, 266, 1024, 600
Editing project: /home/kane-thornwyrd/Projets/godot_projects/kane-ui-nav (::home::kane-thornwyrd::Projets::godot_projects::kane-ui-nav)
Godot Engine v4.0.dev.custom_build.6831da630 - https://godotengine.org
DisplayServer::_create_window 0 want rect: 448, 240, 1024, 600 got rect 448, 240, 1024, 600
[kane-thornwyrd@monolith:Projets/godot]$ ./bin/godot.linuxbsd.tools.64.llvm (08-05 18:17)
Godot Engine v4.0.dev.custom_build.ec678c5e9 - https://godotengine.org
DisplayServer::_create_window 0 want rect: 448, 240, 1024, 600 got rect 448, 240, 1024, 600
Scanning projects at: /home/kane-thornwyrd/Projets/godot_projects
Found 17 projects.
DisplayServer::_window_changed: 0 rect: 452, 266, 1024, 600
Editing project: /home/kane-thornwyrd/Projets/godot_projects/kane-ui-nav (::home::kane-thornwyrd::Projets::godot_projects::kane-ui-nav)
Godot Engine v4.0.dev.custom_build.ec678c5e9 - https://godotengine.org
DisplayServer::_create_window 0 want rect: 448, 240, 1024, 600 got rect 448, 240, 1024, 600
const targets = [
{},
{},
{id:2},
{id:42},
{id:1},
{id:0},
]
const targetId = 42