Skip to content

Instantly share code, notes, and snippets.

View tuvior's full-sized avatar

Tobias Bordenca tuvior

  • Lausanne, Switzerland
View GitHub Profile
@tuvior
tuvior / SpriteTool.swf
Last active September 21, 2022 02:25
Sprite Tool
@tuvior
tuvior / resume-issue.kt
Last active April 17, 2019 19:33
Kotlin Coroutine resume issue
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.suspendCancellableCoroutine
import kotlinx.coroutines.withTimeoutOrNull
import java.util.concurrent.TimeUnit
import kotlin.concurrent.thread
import kotlin.coroutines.resume
interface Listener<T> {
fun handle(event: T)
}
@tuvior
tuvior / mulelogin.au3
Last active March 18, 2019 16:47
OCL
; Remove the ; from the next line if you get script errors
; Or you can add a ; to disable it (i.e: ;#RequireAdmin)
#RequireAdmin
#include <String.au3>
#include <File.au3>
#include <Array.au3>
Global $string, $password, $email, $data, $path, $search, $file, $root
$root = "HKEY_CLASSES_ROOT\muledump"
@tuvior
tuvior / glibc.patch
Created March 7, 2019 16:11
even-better-ls on Arch Linux
diff --git a/lib/fflush.c b/lib/fflush.c
index 983ade0ff..a6edfa105 100644
--- a/lib/fflush.c
+++ b/lib/fflush.c
@@ -33,7 +33,7 @@
#undef fflush
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
@tuvior
tuvior / GuildScreenShare.plugin.js
Created February 15, 2019 18:59
GuildScreenShare BD Plugin
//META{"name":"GuildScreenShare"}*//
class GuildScreenShare {
getName() {
return "Guild Screen Share";
}
getShortName() {
return "GuildScreenShare";
}
@tuvior
tuvior / server_checker.py
Last active December 27, 2020 18:12
RotMG Server Ping Checker
import socket
import time
from collections import namedtuple
from itertools import takewhile
from threading import Thread
from timeit import default_timer as timer
from urllib import request
from xml.etree import ElementTree
SERVER_PORT = 2050
import sx.blah.discord.handle.impl.events.guild.channel.message.MessageReceivedEvent;
import sx.blah.discord.handle.obj.IGuild;
import sx.blah.discord.handle.obj.IRole;
import sx.blah.discord.handle.obj.IUser;
import java.util.List;
public class RolePrefixes {
IRole pvtRank;
@tuvior
tuvior / RolePrefixes.java
Created March 16, 2018 16:39
example for EasternGamer#7339
import sx.blah.discord.handle.impl.events.guild.channel.message.MessageReceivedEvent;
import sx.blah.discord.handle.obj.IGuild;
import sx.blah.discord.handle.obj.IRole;
import sx.blah.discord.handle.obj.IUser;
import java.util.LinkedHashMap;
import java.util.List;
public class RolePrefixes {
@tuvior
tuvior / constants.js
Last active August 22, 2020 13:55
Muledump Item Renders
/**
* Generated with AssetExtractor by tuvior
* Game Version: 1.0.2.0
*/
rendersVersion = "renders-20200822-135352-1.0.2.0";
// type: ["id", SlotType, Tier, x, y, FameBonus, feedPower, BagType, Soulbound, UT/ST],
items = {
'-1': ["Empty Slot", 0, -1, 0, 0, 0, 0, 0, false, 0],
@tuvior
tuvior / alg-sample.tex
Created September 26, 2016 13:22 — forked from adizere/alg-sample.tex
Latex sample for algorithm implementation, as used in CS-451 Distributed Algorithms
\begin{alltt}
\normalfont
\textbf{Implements}:
UniformReliableBroadcast, \textbf{instance} \textit{urb}.
\textbf{Uses}:
IdealPerfectPointToPointLinks, \textbf{instance} \textit{idealpl}.
\textbf{upon event} \textit{\(<\)urb, Init\(>\)} \textbf{do}
\textit{delivered} := \(\emptyset\);