Skip to content

Instantly share code, notes, and snippets.

View saenai255's full-sized avatar
🤌
In search of greater challenges

Paul Cosma saenai255

🤌
In search of greater challenges
View GitHub Profile
@saenai255
saenai255 / pacstall-software-versioning-essay.md
Created July 18, 2023 16:09
My thoughts on PacScript dependency control: a mini essay

My thoughts on PacScript dependency control: a mini essay

The current approach

In the current live version of Pacstall, the PacScript specification allows for various types of dependencies (runtime, build, optional). This strategy works well for packages published within the same distribution, such as Ubuntu 23.04. However, it has been proven multiple times that it doesn't work effectively when dealing with multiple distributions that package different versions of base packages (e.g., openssl, nodejs, go).

Let's consider a hypothetical PacScript example: Imagine a person wants to distribute their new GUI application written in Go. They discover Pacstall and decide it's the best way to distribute packages on Debian-based distributions. After quickly learning the syntax for the PacScript file, they fill in the name, description, download link, and a single dependency: Go (the programming language). They test it locally using the Pacstall Org. tooling, and it works perfectly. Satisfied, they publish it t

@saenai255
saenai255 / tm-utils.js
Last active May 4, 2022 12:13
TamperMonkey Utilities
const delay = ms => new Promise(r => setTimeout(r, ms));
const waitFor = async fn => {
let el = null;
while (!el) {
await delay(50);
el = await fn();
}
return el;
}
@saenai255
saenai255 / btwdnsh1
Created January 5, 2022 17:56
ducky
MTAwMDAwMDAw
Ulh6YmRvMmRNQmVDOWVQLzVnWmRQNDBqWXVST3NhZURiZFhzRGc3Vm4yNWN3UGMyN3BEMWxCZUhQdzZabTV0ODdYNUNoZWlCZklLcnVocWxjelZxWis0T3M1bUdlcXVoeUpja1NDUWszMDQ9
@saenai255
saenai255 / index.js
Created November 5, 2020 15:37
instagram seen block
// ==UserScript==
// @name Block Seen
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Blocks Instagram message seen
// @author Paul Cosma
// @match https://www.instagram.com/*
// @grant none
// ==/UserScript==
@saenai255
saenai255 / parser.js
Last active November 10, 2020 16:33
jtl-parser
toHTML = (root, instance) => {
const TOKEN = {
IF: ':if',
FOR: ':for',
FOR_OF: ' of ',
EVENT: {
CLICK: ':click'
}
}
function setToggles() {
document.querySelectorAll('.ytd-watch-next-secondary-results-renderer').forEach(video => {
if(video.querySelector('paper-toggle-button')) {
return;
}
const link = video.querySelector('a');
if(!link) {
return;
}