Skip to content

Instantly share code, notes, and snippets.

View Mindgamesnl's full-sized avatar
🌸
もののあわれ

Mats Auraot Mindgamesnl

🌸
もののあわれ
View GitHub Profile
@Mindgamesnl
Mindgamesnl / README.md
Created August 26, 2023 20:54
room.nl positie overzicht

Een heel lelijk scriptje om je positie te laten zien in het room.nl overzicht. Zo kan je beter beslissen waar je naar wilt kijken en wat je positie zou zijn, zonder eindeloos door te klikken.

image

@Mindgamesnl
Mindgamesnl / task_manager.go
Created July 27, 2021 21:00
Stupidly simple task manager to schedule concurrent tasks
package task
import "sync"
type TaskManager struct {
taskQueueLock sync.Mutex
taskQueue []func()
runningTasks int
maxConcurrentTasks int
}
var maxParticleCount=150;var particleSpeed=2;var startConfetti;var stopConfetti;var toggleConfetti;var removeConfetti;(function(){startConfetti=startConfettiInner;stopConfetti=stopConfettiInner;toggleConfetti=toggleConfettiInner;removeConfetti=removeConfettiInner;var colors=["DodgerBlue","OliveDrab","Gold","Pink","SlateBlue","LightBlue","Violet","PaleGreen","SteelBlue","SandyBrown","Chocolate","Crimson"]
var streamingConfetti=false;var animationTimer=null;var particles=[];var waveAngle=0;function resetParticle(particle,width,height){particle.color=colors[(Math.random()*colors.length)|0];particle.x=Math.random()*width;particle.y=Math.random()*height-height;particle.diameter=Math.random()*10+5;particle.tilt=Math.random()*10-10;particle.tiltAngleIncrement=Math.random()*0.07+0.05;particle.tiltAngle=0;return particle;}
function startConfettiInner(){var width=window.innerWidth;var height=window.innerHeight;window.requestAnimFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||w
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
mkdir openssl-update/
cd openssl-update/
wget https://www.openssl.org/source/openssl-1.1.1i.tar.gz
tar -zxf openssl-1.1.1i.tar.gz
cd openssl-1.1.1i/
./config
make
make test
make install
@Mindgamesnl
Mindgamesnl / nordvpn-aliases.sh
Last active August 24, 2020 07:16
Linux aliases for my most used NordVPN locations
alias london="nordvpn connect United_Kingdom London"
alias amsterdam="nordvpn connect Netherlands Amsterdam"
alias losangeles="nordvpn connect United_States Los_Angeles"
alias la="nordvpn connect United_States Los_Angeles"
alias toronto="nordvpn connect Canada Toronto"
alias vancouver="nordvpn connect Canada Vancouver"
@Mindgamesnl
Mindgamesnl / EventInterceptor.java
Last active May 17, 2020 22:13
Event interceptor
import org.bukkit.Bukkit;
import org.bukkit.event.*;
import org.bukkit.plugin.EventExecutor;
import org.bukkit.plugin.RegisteredListener;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@Mindgamesnl
Mindgamesnl / BlockBoundingBox.java
Last active May 17, 2020 22:11
Minecraft block/material bounding boxes for collision detection. All exported from the game itself and converted so you don't have to.
public enum BlockBoundingBox {
BIRCH_FENCE_GATE(144, 66, 238.375, 145, 67, 238.625),
LIME_CONCRETE(144, 66, 238, 145, 67, 239),
LIGHT_BLUE_STAINED_GLASS(144, 66, 238, 145, 67, 239),
GREEN_BED(144, 66, 238, 145, 66.5625, 239),
PURPLE_CARPET(144, 66, 238, 145, 66.0625, 239),
LIGHT_GRAY_CONCRETE_POWDER(144, 66, 238, 145, 67, 239),
YELLOW_GLAZED_TERRACOTTA(144, 66, 238, 145, 67, 239),
PEONY(144, 66, 238, 145, 67, 239),
@Mindgamesnl
Mindgamesnl / eula.txt
Created September 3, 2019 09:59
true eula
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula).
#and also agreeing that tacos are tasty.
#Tue Sep 03 10:57:42 BST 2019
eula=true
@Mindgamesnl
Mindgamesnl / play-command.json
Last active August 29, 2019 09:35
snippits for medium
{
"channel": "CLIENT_OUT_CREATE_MEDIA",
"payload": {
"media": {
"loop": false,
"source": "https://example.com/never-gonna-give-you-up.mp3",
"startInstant": 1567071225,
"flag": "DEFAULT"
}
}