This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Import one local GGUF into Ollama. Compatible with macOS Bash 3.2+. | |
| set -euo pipefail | |
| usage() { | |
| printf 'Usage: %s /path/to/model.gguf\n' "${0##*/}" | |
| printf 'Imports as the filename without .gguf, then offers to delete the source.\n' | |
| } | |
| if [[ $# -eq 1 && ( "$1" == '-h' || "$1" == '--help' ) ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const secureRand = (() => { | |
| const crypto = globalThis.crypto || require('crypto').webcrypto; | |
| const maxUint32 = 0xFFFFFFFF; | |
| const buffer = new Uint32Array(1); | |
| return () => { | |
| // Fill the array with random values | |
| crypto.getRandomValues(buffer); | |
| // Convert the random value into a float between 0 and 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Allegro filtruj po cenie przeliczeniowej | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-06-03 | |
| // @author https://github.com/cezarydanielnowak | |
| // @match https://allegro.pl/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=allegro.pl | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Allegro filtruj po ilosci opinii | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-06-03 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://allegro.pl/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=allegro.pl | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cd sdk-js/dist/ | |
| find . -name "*.br" -type f -delete | |
| find . -name "*.gz" -type f -delete | |
| for i in {0..11} | |
| do | |
| echo "[ BROTLI ${i} ]" | |
| time { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Remove junk | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2024-09-23 | |
| // @author Cezary Daniel Nowak | |
| // @match https://www.facebook.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=facebook.com | |
| // @grant none | |
| // @run-at document-end | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const generatePseudoRandom = (from, to) => parseInt(Math.random() * to) + from; | |
| const ids = []; | |
| let i = 0; | |
| let lastCollision = 0; | |
| while (i < 20) { // up to 20 collisions | |
| const newId = generatePseudoRandom(1, 999999999); | |
| if (ids.includes(newId)) { | |
| console.error(`Collision detected after ${ids.length + 1 - lastCollision} IDs`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const process = require('process'); | |
| const componentsPath = __dirname + '/components/'; | |
| fs.readdirSync(componentsPath).forEach((componentName) => { | |
| console.log(componentName); | |
| try { | |
| // Enter component dir | |
| let componentPath = componentsPath + componentName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| const realGetUserMedia = navigator.mediaDevices.getUserMedia; | |
| const realApplyConstraints = MediaStreamTrack.prototype.applyConstraints; | |
| function successHandler(...args) { | |
| try { | |
| const track = args[0].getVideoTracks()[0]; | |
| console.log('💥💥💥', track.label, 'camera access granted.\n', track.getSettings()); | |
| } catch(err) { | |
| console.warn('💥💥💥 error', err); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name ZGN kalkulator | |
| // @namespace ZGN | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match */seizbil/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=zgnpragapld.pl | |
| // @grant none | |
| // @run-at document-end |
NewerOlder