Skip to content

Instantly share code, notes, and snippets.

View marcsello's full-sized avatar
🐧
Compiling Gentoo....

Marcell Pünkösd marcsello

🐧
Compiling Gentoo....
View GitHub Profile
@marcsello
marcsello / e2-extra-input-client_v1.txt
Last active October 16, 2023 11:24
Expression 2 code for my extra-input project
@name E2 Extra Input v1 by Marcsello
@inputs
@outputs A B C D E F Connections ConnectionQuality EventCounter EventsSkipped
@persist Last
@trigger
@strict
# Designed to work with https://github.com/marcsello/e2-extra-input-server
# I've also written a blog post about all this: https://blog.marcsello.com/posts/2023/wiremod-input-from-the-real-world/
@marcsello
marcsello / README.md
Last active January 16, 2023 19:44
Un-shit Nextcloud 25 - Fix the ugly and bloated theme for the new Nextcloud release.

Un-shit Nextcloud 25

Fix the ugly and bloated theme for the new Nextcloud release.

I didn't like the new all-round and animated UI of Nextcloud introduced in Nextcloud 25, so I hacked together something to make it a little more bearable. It's no more of a hack, than most other parts of Nextcloud, so I guess it's okay.

Requirements

The followings require the installation of the following two addons:

@marcsello
marcsello / 20-trust-yula-fix.rules
Created October 3, 2022 19:20
python script + udev rule to fix Trust Yula contoller in xinput mode on linux. Compatible with Chimera OS.
SUBSYSTEM=="input", ACTION=="add", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="028e", RUN+="/usr/bin/python3 /home/gamer/fixcontroller_marcsello.py %s{busnum} %s{devnum}"
@marcsello
marcsello / mixxx_disable_half_bpm.patch
Created July 26, 2022 19:15
Disable BPM halving when syncing deck bpm
diff --git a/src/engine/controls/bpmcontrol.cpp b/src/engine/controls/bpmcontrol.cpp
index e1d6ffddc8..0e78298b74 100644
--- a/src/engine/controls/bpmcontrol.cpp
+++ b/src/engine/controls/bpmcontrol.cpp
@@ -317,8 +317,8 @@ bool BpmControl::syncTempo() {
double fOtherBpm = pOtherEngineBuffer->getBpm();
double fOtherLocalBpm = pOtherEngineBuffer->getLocalBpm();
- //qDebug() << "this" << "bpm" << fThisBpm << "filebpm" << fThisLocalBpm;
- //qDebug() << "other" << "bpm" << fOtherBpm << "filebpm" << fOtherLocalBpm;
@marcsello
marcsello / ytrbg.user.js
Last active March 29, 2024 21:31
Tampermonkey script to rewind videos on load. Videos should start at the beginning.
// ==UserScript==
// @name Youtube rewind but good
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Auto rewind all youtube videos on open. Don't ever start videos in the middle!
// @author Marcsello
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
@marcsello
marcsello / treebomb.py
Last active February 17, 2022 12:07
Create a directory with full of random files and directories. Ideal for inode related tests and benchmarks.
import sys
import os
import os.path
import random
import string
WORDS = [
"condition", "set", "against", "legislation", "solar", "dad", "rating", "machine", "swim", "distribute",
"payment", "basically", "gold", "prosecutor", "poverty", "profession", "tail", "psychological", "dimension",
"jail", "suppose", "efficient", "party", "quit", "approval", "cloud", "settle", "offer", "everywhere", "famous",
@marcsello
marcsello / Numark MIXTRACK (marcsello).midi.xml
Last active July 30, 2022 23:48
Edited Numark MIXTRACK Mixxx mapping
<?xml version='1.0' encoding='utf-8'?>
<MixxxControllerPreset mixxxVersion="1.9.0+" schemaVersion="1">
<info>
<name>Numark MIXTRACK (marcsello)</name>
<author>Matteo (matteo@magm3.com), RAWRR, uncleeugene and Marcsello</author>
<description>Numark MixTrack Mapping v1.0b (customized by Marcsello)</description>
</info>
<controller id="Numark">
<scriptfiles>
<file filename="Numark-MixTrack-scripts-marcsello.js" functionprefix="NumarkMixTrack"/>
@marcsello
marcsello / wd-net-ghetto-udev-firmware-loader.sh
Created April 23, 2021 20:23
Firmware loader for the Gen1 WD MyCloud network interface when there is no udev available
#!/bin/ash
# Written for Alpine 3.13 userland
# The sleep stuff isn't necessary... it's just there to stand as safe guards
echo "Start loading of PFE kernel module"
modprobe pfe lro_mode=1 tx_qos=1 alloc_on_init=1 disable_wifi_offload=1 &
WAITPID=$!
sleep 1
@marcsello
marcsello / yaml.nanorc
Last active January 17, 2024 13:38
A bit more moderate YAML highlighting for GNU nano
# Original: https://ourcodeworld.com/articles/read/796/how-to-enable-syntax-highlighting-for-yaml-yml-files-in-gnu-nano
# Modified by Marcsello
# Supports `YAML` files
syntax "YAML" "\.ya?ml$"
header "^(---|===)" "%YAML"
## Keys
color brightblue "^\s*[\$A-Za-z0-9_-]+\:"
color brightmagenta "^\s*@[\$A-Za-z0-9_-]+\:"
@marcsello
marcsello / ezobackup.sh
Created October 20, 2020 19:42
Script that safely creates the backups for the EZO.TV Minecraft server
#!/bin/bash
# Requirements:
# - mcrcon: https://github.com/Tiiffi/mcrcon
# - sentry-cli: https://github.com/getsentry/sentry-cli
# configure
SENTRY_DSN=
export SENTRY_DSN