Skip to content

Instantly share code, notes, and snippets.

View hexxone's full-sized avatar
🔹
Working on a secret project

hexx.one hexxone

🔹
Working on a secret project
View GitHub Profile
@hexxone
hexxone / jellyfin-custom.css
Last active October 5, 2024 15:31
JellyFin Custom CSS
/* Made by https://github.com/hexxone */
/* gradient default */
/* :root {
--accent1-light: #a95bc2;
--accent1-dark: #3f2348;
--accent1-light-opacity1: rgba(169, 91, 194, .4);
--accent2-light: #00a4db;
--accent2-dark: #003d52
} */
@hexxone
hexxone / autotoggle.js
Created November 20, 2023 14:10
Gitlab Pipeline Auto-Toggle "Show Dependencies"
// ==UserScript==
// @name Auto-Toggle GitLab Pipeline Dependencies
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Automatically toggle the "Show dependencies" button on Gitlab Pipeline pages
// @author hexx.one
// @match https://gitlab.yourserver.com/*/pipelines/*
// @grant none
// ==/UserScript==
@hexxone
hexxone / main.py
Last active January 25, 2021 12:46 — forked from gurland/main.py
!!! DEPRECATED !!! DONT USE THIS IF YOU DON'T KNOW WHAT YOURE DOING !!!
# Copyright (c) 2017 Stanislav Bobokalo & Alexey Borontov & Dominic T
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
// function for "compressing" array data into a shorter array whilst maintaining
// the same cross-total value and relativity of values to each other
function compressArrayData (arr, toLen) {
if (!Array.isArray(arr) || isNaN(toLen) || arr.length < toLen) throw "ArgumentError";
// 1 new data field is equals to this many source fields
var sizeRatio = arr.length / toLen;
// result storage
var results = [];
var resIndx = 0;