Skip to content

Instantly share code, notes, and snippets.

View Algorithmus's full-sized avatar

Algorithmus

View GitHub Profile
@Algorithmus
Algorithmus / godot-3.2.4.patch
Created February 6, 2021 21:25
GodotGetImage Plugin Godot 3.2.4 patch
diff --git a/GodotGetImagePlugin/godotgetimage/src/main/java/com/gmail/lamelynx/godotgetimage/GodotGetImage.kt b/GodotGetImagePlugin/godotgetimage/src/main/java/com/gmail/lamelynx/godotgetimage/GodotGetImage.kt
index 3414ea8..7f9038c 100644
--- a/GodotGetImagePlugin/godotgetimage/src/main/java/com/gmail/lamelynx/godotgetimage/GodotGetImage.kt
+++ b/GodotGetImagePlugin/godotgetimage/src/main/java/com/gmail/lamelynx/godotgetimage/GodotGetImage.kt
@@ -32,7 +32,7 @@ import java.io.InputStream
* Mail: lamelynx@gmail.com
*/
-class GodotGetImage(activity: Godot) : GodotPlugin(activity) {
+class GodotGetImage(godot: Godot) : GodotPlugin(godot) {
@Algorithmus
Algorithmus / run.sh
Last active January 25, 2017 12:33
mpv + youtube-dl (and Tor + ProxyChains) Audio Streaming
#!/bin/bash
# An audio streaming script that uses youtube-dl and mpv as well as Torsocks, ProxyChains and Tor if you wish to use them.
# Some advantages over commercial and well known audio streaming services:
# -Free (as in speech, not beer). The amount of freedom also depends on which services you choose to rely on (eg, audio/video hosted on YouTube or your own server, etc.).
# But that's probably not too different from picking "free" Linux distros and choosing which software you want to install on them (which may well not be free). That's entirely up to you.
# -More audio choices. You can find more soundtracks on YouTube or other streaming services than you can on Spotify alone. Whatever youtube-dl and mpv allow you to use.
# -Not restricted by regional censorship (eg, GEMA) since you can run this streaming service over Tor or a proxy of your choice. Also protects your privacy.
# -Great performance and very minimal CPU usage owing to mpv and minimal GUI resources required. Also great for art streams whe
@Algorithmus
Algorithmus / gdkevents-quartz.c
Last active May 1, 2016 00:02
Patched gdkevents-quartz for OSX tablet support
/* gdkevents-quartz.c
*
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
* Copyright (C) 1998-2002 Tor Lillqvist
* Copyright (C) 2005-2008 Imendio AB
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
#This script is fairly hacky, but it allows you to create a working bundle.
#You should run the regular deploy.sh script that uses macdeployqt before using this one.
#Use it to convert occurences of @rpath and @loader_path to the final @executable_path.
#It might be best if there's some way to make macdeployqt or cmake add the correct paths.
#Essentially, you need to check the dependencies in Frameworks .dylibs, Qt libraries that are included
#and all the .so plugins in PlugIns/krita.
#Please note that if you are using MacDependency to view the .so plugins, they will always appear red,
#even if they are correctly linked. Use export QT_DEBUG_PLUGINS=1 while running krita if you suspect one of these plugins or any other
@Algorithmus
Algorithmus / bild.de
Created October 15, 2015 15:27
Greasemonkey script for bild.de
// ==UserScript==
// @name Override bild.de javascript checking
// @namespace de.bild
// @description render bild.de javascript core class checks useless so that bild.de displays content even with certain scripts disabled
// @include http://www.bild.de/*
// @include http://bild.de/*
// @include https://bild.de/*
// @include https://www.bild.de/*
// @version 1
// @grant none