Skip to content

Instantly share code, notes, and snippets.

-- SendMidi
s = require 'sequins'
m = midi.connect()
m.event = function(data)
local d = midi.to_msg(data)
print("ch:" .. d.ch .. " cc:" .. d.cc .. " val:" .. d.val)
end
@Zazcallabah
Zazcallabah / infinitecraft.js
Created February 20, 2024 12:54
bookmarklet for some qol changes to infinitecraft
javascript:
(function(){
var s = document.createElement("style");
var css = [
".nocandidate{background:#ddd !important}",
".container { position:static }",
".site-title {position:absolute}",
".sidebar {display:none}",
".mobile-items {",
"display:flex !important;",
@Zazcallabah
Zazcallabah / trifid.ps1
Last active September 26, 2023 12:11
trifid.ps1
# ahnk: t
# scarab: s
# horus: r
param($key)
function makeAlpha
{
param ($key)
$arr=0..25 | %{ [char]($_+65) }
$arrNotInKey = $arr | ?{ $key.indexof($_) -eq -1 }
$cleanKey = @()
@Zazcallabah
Zazcallabah / elden-ring-randomizer-install.sh
Created October 31, 2022 14:37
both manual and scripted steps needed to get elden ring randomizer up and running on a steamdeck
cd ~/Downloads
# prereq: download https://www.nexusmods.com/eldenring/mods/428?tab=files
# as Elden Ring Randomizer-428-v0-5-4b-1666703960.zip
# prereq: download https://www.nexusmods.com/eldenring/mods/117?tab=files
# as EldenModLoader-117-3-2-1662569069.zip
INSTALLDIR="/home/deck/.local/share/Steam/steamapps/common/ELDEN RING"
@Zazcallabah
Zazcallabah / malloc.c
Created December 1, 2021 11:36
2006-12-07 2g1520 OS
#include <stdio.h>
#include <unistd.h>
#include "malloc.h"
#define err(X,Y) (_err((X),(Y),(__LINE__)))
void ___msg(){}

Promenadvideoklubben

Observationer om Insta360 ONE X

linser

Håll linserna rengjorda. Undvik fingeravtryck. Putsduk och rengöringsvätska finns hos alla optiker.

filstorlek

74 GB free space gives you ~100 minutes of video. Meaning you can get about 160 minutes of video onto an empty 128GB card.

@Zazcallabah
Zazcallabah / gist:e401d307d160a8b6decba093f0219a23
Created September 19, 2020 20:50
ublock filters for theatre youtube
www.youtube.com##[is-watch-page] #page-manager:style(margin-top:0px !important)
www.youtube.com###container.ytd-masthead:style(height:32px !important)
www.youtube.com###search:style(line-height:16px !important)
www.youtube.com##ytd-watch-flexy[theater] #player-theater-container:style(max-height:calc(100vh - 40px) !important)
www.youtube.com##ytd-watch-flexy[theater] #player-theater-container:style(margin-top:32px !important)
www.youtube.com##ytd-watch-flexy[fullscreen] #player-theater-container:style(max-height:100vh !important)
www.youtube.com##ytd-watch-flexy[fullscreen] #player-theater-container:style(margin-top:0px !important)
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<meta charset="utf-8" />
<title>Fikagruppsgenerator</title>
<style>
body { padding:1em }
h2 { margin-top:2em }
// ==UserScript==
// @name t
// @version 0.1
// @grant none
// @run-at document-end
// ==/UserScript==
window.addEventListener ("load", pageFullyLoaded);
@Zazcallabah
Zazcallabah / sudokuSolve.user.js
Last active February 29, 2020 08:39
sudoku solver for websudoku
// ==UserScript==
// @name Sudokusolve
// @version 0.1
// @match https://nine.websudoku.com/*
// @grant none
// ==/UserScript==
(function () {
function cplxReduce(input, groupix) {
for (var i = 0; i < 8; i++) {