Ref: https://www.electronjs.org/blog/v8-memory-cage
Ensure VS Code is installed. Wrap it as a Node executable:
echo > ~/.local/bin/node-electron <<<EOF
#!/bin/bash
export ELECTRON_RUN_AS_NODE=1| const SELECTOR_PREFERS_DARK_COLOR_SCHEME = '(prefers-color-scheme: dark)' | |
| export function autoColorScheme(options: { | |
| dark?: Extension, light?: Extension, defaultDark?: boolean} = {}): Extension { | |
| const { | |
| dark: darkExt = [], | |
| light: lightExt = [], | |
| defaultDark = false, | |
| } = options |
Ref: https://www.electronjs.org/blog/v8-memory-cage
Ensure VS Code is installed. Wrap it as a Node executable:
echo > ~/.local/bin/node-electron <<<EOF
#!/bin/bash
export ELECTRON_RUN_AS_NODE=1| import * as Runno from '@runno/wasi' | |
| import wrapPollOneoff from './wrap-poll-oneoff' | |
| const { Result } = Runno.WASISnapshotPreview1 | |
| /** @typedef {{ lenTotal: number, ptrlens: [number, number][] }} IovsDesc */ | |
| /** | |
| * @param {DataView} view | |
| * @param {number} iovs_ptr |
| /** @import { SPSCReader } from 'spsc/reader' */ | |
| /** @import { SPSCWriter } from 'spsc/writer' */ | |
| import { SPSCError } from 'spsc' | |
| /** | |
| * @param {SPSCReader} reader | |
| * @param {MessagePort} waker | |
| * @returns {ReadableStream<Uint8Array<ArrayBuffer>>} | |
| */ | |
| export function createReadableByteStream(reader, waker) { |
| -- ./Agda/Builtin/Bool.agda | |
| Total 160ms | |
| Miscellaneous 0ms | |
| Typing 48ms (75ms) | |
| Typing.TypeSig 24ms | |
| Serialization 23ms (32ms) | |
| Scoping 23ms (25ms) | |
| Deserialization 21ms (23ms) | |
| Parsing 7ms (14ms) | |
| Highlighting 11ms |
| #!/usr/bin/env -S node --disable-warning=ExperimentalWarning --max-old-space-size=65536 --no-turbo-fast-api-calls --wasm-lazy-validation | |
| import fs from "node:fs/promises"; | |
| import { WASI } from "node:wasi"; | |
| function parseArgv(args) { | |
| const i = args.indexOf("-0"); | |
| return i === -1 ? args : args.slice(i + 2); | |
| } |
| %YAML 1.2 | |
| --- | |
| # http://www.sublimetext.com/docs/syntax.html | |
| name: Property List (Old-Style) | |
| file_extensions: | |
| - plist | |
| # from: https://github.com/textmate/property-list.tmbundle/blob/master/Syntaxes/Property%20List%20(Old-Style).tmLanguage | |
| # warning: pop pattern contains \G, this will not work as expected if it's intended to refer to the begin regex: (?!\G) |
| use std::task::{Poll, Context}; | |
| use std::future::Future; | |
| use std::pin::Pin; | |
| use tokio::io::{Error, Interest, unix::AsyncFd}; | |
| struct PollTarget { | |
| inner: AsyncFd<i32>, | |
| } | |
| impl PollTarget { |
| #!/bin/sh | |
| PATH_TO_FWTOOL=/home/qbane/system-apps/framework-system/target/debug/framework_tool | |
| if [ $# -eq 0 ]; then | |
| exec $PATH_TO_FWTOOL --help | |
| fi | |
| # if this does not work (like using a kernel before 6.12), you might need "--driver=portio" extra arg | |
| exec sudo $PATH_TO_FWTOOL "$@" |
| // ==UserScript== | |
| // @name yorkxin | |
| // @version 1 | |
| // @match https://blog.yorkxin.org/* | |
| // @grant none | |
| // ==/UserScript== | |
| const links = Array.from(document.querySelectorAll('a[href]')) | |
| let cnt = 0 |