Skip to content

Instantly share code, notes, and snippets.

View JBou's full-sized avatar

Gabriel Patzleiner JBou

  • 08:33 (UTC +02:00)
View GitHub Profile
Shuggy999 / italiantv.m3u
Created April 17, 2023 19:10
my iptv playlist
#EXTINF:-1,Rai 1 HD [1]
#EXTINF:-1,Rai 2 HD [2]
#EXTINF:-1,Rai 3 HD [3]
steelproxy / edtr.command
Created December 8, 2021 05:52
Script I created to get unlimited free ExpanDrive5 trials with on macOs, don't know if it still works.
printf "Would you like to reset your ExpanDrive trial? (y/n): "
if [ "$PROMPT" != "y" ]
printf "Killing ExpanDrive... "
pkill ExpanDrive
printf "Killed!\nResetting... "
aartikov / DelegateAccess.kt
Created January 14, 2021 11:03
Wrap MutableStateFlow to property delegate
internal object DelegateAccess {
internal val delegate = ThreadLocal<Any?>()
internal val delegateRequested = ThreadLocal<Boolean>().apply { set(false) }
internal val <T> KProperty0<T>.delegate: Any?
get() {
try {
rordi /
Last active January 23, 2024 15:36
Change root password in MariaDB Docker container running with docker-compose

Change root password in MariaDB Docker container running with docker-compose

Override the entrypoint in docker-compose.yml for the MariaDB Docker container by adding:

entrypoint: mysqld_safe --skip-grant-tables --user=mysql

The start up the Docker Compose stack:

$> docker-compose up -d
insdavm /
Last active May 3, 2024 21:19
Accessing a subnet that is behind a WireGuard client using a site-to-site setup

WireGuard Site-to-Site

Accessing a subnet that is behind a WireGuard client using a site-to-site setup

Problem Summary

We want to access a local subnet remotely, but it is behind a NAT firewall and we can't setup port forwarding. Outgoing connections work, but all incoming connections get DROPPED by the ISP's routing policy.

Solution Summary

MichaelEischer /
Last active February 2, 2024 15:15
Chain host sshd to GitLab container

Chain host sshd to GitLab container

The GitLab container comes with an embedded ssh daemon to provide secure access to the git repositories. This ssh daemon inside the container must be accessible via the ssh port (Port 22) of the host machine. However, this usually conflicts with the ssh daemon run by the host machine.

This document describes how the host and the container ssh can be chained to work nevertheless.

Brainiarc7 / VAAPI-hwaccel-encode-Linux-Ffmpeg&
Last active March 26, 2024 18:18
This gist contains instructions on setting up FFmpeg and Libav to use VAAPI-based hardware accelerated encoding (on supported platforms) for H.264 (and H.265 on supported hardware) video formats.

Using VAAPI's hardware accelerated video encoding on Linux with Intel's hardware on FFmpeg and libav

Hello, brethren :-)

As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".

jwgmeligmeyling /
Created May 18, 2016 22:19
Persisting recursive relationships with Hibernate
package org.hibernate.test;
public class DatabaseTestModule extends AbstractModule {
mikehearn / Kryo Kotlin class serialiser.kt
Created December 17, 2015 10:53
A Kryo serialiser that lets you serialise immutable classes like "class Foo(val a: Int, val b: Bar)" without bypassing the c'tor.
interface SerializeableWithKryo
class ImmutableClassSerializer<T : SerializeableWithKryo>(val klass: KClass<T>) : Serializer<T>() {
val props = klass.memberProperties.sortedBy { }
val propsByName = props.toMapBy { }
val constructor = klass.primaryConstructor!!
init {
// Verify that this class is immutable (all properties are final)
assert(props.none { it is KMutableProperty<*> })
killjoy1221 / build.gradle
Last active December 2, 2015 22:23
Example build script for liteloader 1.8 mods. Put the mcpnames jar in the libs folder.
buildscript {
repositories {
maven {
name = "forge"
url = ""
maven {
name = "sonatype"
url = ""