https://github.com/H3rz3n/Davinci-Resolve-Fedora-38-39-40-Fix
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
| import sqlite from 'node:sqlite'; | |
| const DB_PATH = "/home/ash/KoboReader.sqlite"; | |
| function printSchema() { | |
| try { | |
| const db = new sqlite.DatabaseSync(DB_PATH); | |
| // Query for all tables and their SQL creation statements | |
| const schema = db.prepare(` |
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
| { | |
| "workbench.colorTheme": "GitHub Light", | |
| "editor.formatOnPaste": false, | |
| "editor.formatOnSave": true, | |
| "editor.rulers": [ | |
| { | |
| "column": 80 | |
| }, | |
| { | |
| "column": 120 |
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
| /** | |
| * Due to assorted bugs in iPadOS webview browsers (Firefox, Brave), `vh` and `lvh` | |
| * units change unpredictably and can cause content to shift. | |
| * | |
| * This utility provides an approximation of `100vh` in the browser. In most | |
| * browsers it will be exactly `100vh`, but in Safari iPad browsers it will | |
| * be clamped at either `100dvh` or `100vh` depending on the state of the browser | |
| * address bar at the time. | |
| * | |
| * Use this to size elements in the page flow in a way that won't trigger |
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
| // delete photos from Google Maps | |
| (async () => { | |
| const sleep = (time) => new Promise(resolve => setTimeout(resolve,time)); | |
| const go = async () => { | |
| // click the kebab | |
| document.querySelector('button[jsaction*="pane.photo.actionMenu"]:not([aria-hidden="true"])').click(); | |
| await sleep(200); | |
| // click the delete menu item | |
| document.querySelector('#action-menu div[role="menuitemradio"]').click(); |
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
| <script lang="ts"> | |
| import { untrack } from 'svelte'; | |
| let { values = [], value = [], disabled, onChange = () => {} } = $props(); | |
| const uniqueId = 'list' + (Math.random() * 10e15).toString(16); | |
| let selectedValues = $state<string[]>(value); | |
| let isFocused = $state(false); | |
| let inputElement = $state<HTMLInputElement>(); | |
| let inputValue = $state(''); |
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 Tidy up news homepage | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-02-03 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://www.abc.net.au/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=abc.net.au | |
| // @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
| npx npm-check-updates -u |
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 cancellable() { | |
| let isRunning = true; | |
| const p = new Promise((resolve, reject) => { | |
| setTimeout(() => { | |
| if (!isRunning) return reject(); | |
| resolve(); | |
| }, 1000) | |
| }); |
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
| ['pause', 'play'].forEach(method => { | |
| const oldMethod = video[method]; | |
| video[method] = function () { | |
| console.log(`${method} (dom call)`, { video, e: new Error('here') }); | |
| return oldMethod.apply(video); | |
| }; | |
| }); |
NewerOlder