Skip to content

Instantly share code, notes, and snippets.

@neonfuz
neonfuz / moveZeroes_bench.js
Created December 18, 2023 22:21
moveZeroes benchmark
const fs = require('node:fs');
const moveZeroes = (nums) => {
let write = 0;
for (let read = 0; read < nums.length; ++read)
if (nums[read] !== 0)
nums[write++] = nums[read];
for (; write < nums.length; ++write)
nums[write] = 0;
return nums;
// ==UserScript==
// @name Youtube Sorter
// @description client side playlist sorting on youtube
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?domain=youtube.com
// @grant none
@neonfuz
neonfuz / stack.org
Last active January 26, 2022 18:52
my nootropic stack

Stack

daily:

SupplementDosemgrep
l-theanine1 pill2001-2
coffee1 cup1-3
- caffine???
- mct-oil1 squirt???
@neonfuz
neonfuz / Makefile
Last active January 18, 2023 05:02
youtube miniplayer in playlist sidebar
yt-miniplayer-in-playlist-sidebar.user.css: yt-miniplayer-in-playlist-sidebar.user.less
lessc $< > $@
sed -i '/^@var/d' $@
sed -i '/^@preprocessor/d' $@
@neonfuz
neonfuz / youtube-quick-playlist.user.js
Last active April 5, 2022 00:11
youtube quick playlist button userscript
// ==UserScript==
// @name youtube quick playlist button
// @namespace http://neonfuz.xyz/
// @author neonfuz
// @version 0.9
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?domain=youtube.com
// @updateURL https://gist.github.com/neonfuz/ea14fe2ad32c4caa860f36bb521b9a60/raw/youtube-quick-playlist.user.js
// @downloadURL https://gist.github.com/neonfuz/ea14fe2ad32c4caa860f36bb521b9a60/raw/youtube-quick-playlist.user.js
// ==/UserScript==
root filesystem directories tier list:
god tier:
bin
boot
dev
etc
home
lib{,64}
media
Debugger entered--Lisp error: (error "Recursive ‘require’ for feature ‘pcomplete’")
require(pcomplete)
require(pcomplete)
require(pcomplete)
require(pcomplete)
require(pcomplete)
byte-code("\300\301!\210\300\302!\210\303\304\305\306\307\310\307\311&\007\210\303\312\305\313\307\304%\210\314\315\316\317\320DD\321\322\323\307\304&\007\210\314\324\316\317\325DD\326\322\323\307\304&\007\210\314\327\316\317\330DD\331\322\332\307\304&\007\210\314\333\316\317\334DD\335\322\336\307\304&\007\210\314\337\316\317\340DD\341\322\342\307\304&\007\210\314\343\316\317\344DD\345\322\346\307\304&\007\210\314\347\316\317\350DD\351\322\352\307\304&\007\210\314\353\316\317\354DD\355\322\323\307\304&\007\210\314\356\316\317\357DD\355\322\323\307\304&\007\210\314\360\316\317\361DD\362\322\363\307\304&\007\210\314\364\316\317\365DD\366\322\323\307\312&\007\210\314\367\316\317\370DD\371\322\323\307\312&\007\210\314\372\316\317\373DD\374\322\363\307\312&\007\210\314\375\316\317\376DD\377\322\363\307\312&\007\210\314\201@\0\
@neonfuz
neonfuz / doom64ex.nix
Created October 16, 2018 19:39
doom64ex nix WIP, broken meta???
{ stdenv, fetchFromGitHub
, gccStdenv, cmake, fluidsynth, SDL2, SDL2_net, zlib }:
stdenv.mkDerivation rec {
name = "doom64ex-${version}";
version = "unstable-2018-08-24";
src = fetchFromGitHub {
owner = "svkaiser";
repo = "Doom64EX";
{
packageOverrides = pkgs: {
qbittorrent = pkgs.qbittorrent.overrideAttrs (oldAttrs: oldAttrs // rec {
version = "3.3.16";
name = "qbittorrent-${version}";
src = pkgs.fetchurl {
url = "mirror://sourceforge/qbittorrent/${name}.tar.xz";
sha256 = "0mxyn2pajvb55bhcaz55v64p2xzy15p0yy174s62b5y3f8cac27a";
};
});
{ stdenv, pkgconfig, cmake, bluez, ffmpeg, libao, gtk2, glib, mesa
, gettext, libpthreadstubs, libXrandr, libXext, readline, openal
, libXdmcp, portaudio, fetchzip, fetchFromGitHub, libusb, libevdev
, wxGTK30, soundtouch, miniupnpc, mbedtls, curl, lzo, sfml
, libpulseaudio ? null }:
stdenv.mkDerivation rec {
name = "dolphin-emu-faster-melee-beta-${version}";
version = "5.8.7";