Skip to content

Instantly share code, notes, and snippets.

View riccardobl's full-sized avatar

Riccardo Balbo riccardobl

View GitHub Profile

₿itcoin on-chain

bc1qr2jc865yp089mr3tyd3jk65w0k6stx4j6t5qrj

💧Liquid BTC

VJLBkkFZpqqev1tD3DHVuHJiav1agJwarj7EQJWcvbqLSahVLreLjg2ytLqZqnr82E9dXzKEXiW6aS2s

⚡Lightning (1)

rblb@getalby.com

⚡Lightning (2)

rblb@blink.sv

@riccardobl
riccardobl / Gradle task to merge Log4j2Plugins.dat .md
Last active March 5, 2024 06:27
Gradle task to merge Log4j2Plugins.dat

A gradle task that merges Log4j2Plugins.dat from the various dependencies in a single file.

Useful when building a standalone jar.

If Log4j2Plugins.dat is not properly merged, log4j2 will print something like this:

ERROR StatusLogger Unrecognized format specifier [d]
ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
ERROR StatusLogger Unrecognized format specifier [thread]
@riccardobl
riccardobl / USAGE.txt
Last active November 16, 2023 13:21
Auto install addons in blend file
1. Add your addons as subfolders under 'addons' next to your blend file eg.
--/home/user/Documents/myBlenderProject
---------------------------------------/myProject.blend
---------------------------------------/addons < place your addons here
----------------------------------------------/myAddon
------------------------------------------------------/[addon files .py]
2. Run the script in blender
{
"addr":"LNURL1DP68GURN8GHJ7AMPD3KX2AR0VEEKZAR0WD5XJTNRDAKJ7TNHV4KXCTTTDEHHWM30D3H82UNVWQHHWET9DDK8JCMPVF5KUET5X5UQ096QTQ",
"enabled":true
}
Moved to https://github.com/riccardobl/simple-bash-bandwidth-monitor
@riccardobl
riccardobl / TransparentWebViewPatch.java
Last active June 23, 2020 09:31
JavaFX Transparent WebView PATCH
/**
* @author Riccardo Balbo
* @description This patch aims to make the WebView capable to correctly render transparent pages.
* @license
* Copyright (c) 2015 Riccardo Balbo < riccardo @ forkforge . net >
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any
* damages arising from the use of this software.
*
#!/bin/bash
############################################################
# Usage:
# vos ubuntu:18.04 bash
############################################################
# Simple script that starts a podman/docker container
# mounts the current dir, run a command as the current user
# and destroy itself when the terminal is closed
############################################################
userUID=`id -u`
@riccardobl
riccardobl / build.gradle
Last active September 10, 2019 18:16
Asset pack gradle
apply plugin: 'maven'
apply plugin: 'java'
sourceSets {
main {
resources {
srcDirs = ["."]
include "**"
exclude (".gitignore", ".github",
"build", ".gradle", "README.md",
<html>
<head></head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.7.0/marked.min.js" integrity="sha256-0Ed5s/n37LIeAWApZmZUhY9icm932KvYkTVdJzUBiI4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/1.0.11/purify.min.js" integrity="sha256-80n5dmervCuGISioxGlsumrwgMc8LJKT0wZybkLtkLM=" crossorigin="anonymous"></script>
<script>
function loadGithubReadme(repo,branch,callback){
if(repo.endsWith("/"))repo=repo.substring(0,repo.length-1);
console.log("Repo:",repo);