Skip to content

Instantly share code, notes, and snippets.

View lazuee's full-sized avatar
:shipit:
Lazuee

John Marlo Lapiz lazuee

:shipit:
Lazuee
View GitHub Profile
@zkochan
zkochan / gist:f5775a9e2e2918775cfdf856bf2a0ad8
Last active September 28, 2026 18:05
Fix a pnpm bug with your coding agent
I want to contribute a bug fix to pnpm (https://github.com/pnpm/pnpm).
1. Set up
- Fork and clone the repo: `gh repo fork pnpm/pnpm --clone`, then cd into it.
- Read CONTRIBUTING.md and any AGENTS.md / CLAUDE.md files, and follow them.
They explain how to install dependencies, build, run tests, and add changesets.
2. Pick an issue
- List open bugs that nobody is working on yet:
gh issue list -R pnpm/pnpm --state open --label "type: bug" --limit 100 \
@BrownNPC
BrownNPC / Waydroid Bi-directional mount.md
Last active November 10, 2026 12:00
Here's how you do a bi-directional mount using bindfs. I would appreciate if this guide could be added to the docs too. This is useful for allowing waydroid to write files into your linux host. For example, if we want to link our host ~/Downloads folder from within waydroid's filesystem as Download so that when you download a file in waydroid, i…

Here's how you do a bi-directional mount waydroid using bindfs.

This is useful for allowing waydroid to write files into your linux host.

For example, if we want to link our host ~/Downloads folder from within waydroid's filesystem as Download so that when you download a file in waydroid, it goes to your linux ~/Downloads folder.

First get the UID waydroid uses for folders.

export WAYDROID_ID=$(sudo stat -c '%u' ~/.local/share/waydroid/data/media)

DynamicInterval

Lightweight scheduler for running arbitrary work on a dynamic interval. Ideal for backoff retry loops, background autosaves, and heartbeat polling. Ensures runs never overlap and supports adaptive delays, jitter, and full lifecycle controls.

Features

  • Non-overlapping runs (no reentrancy) with automatic rescheduling after each run
  • Dynamic delay calculation via strategies (exponential, linear, constant, or custom)
  • Jitter support to avoid thundering herds (none, full, or bounded ±percentage)
  • Lifecycle controls: start, pause, resume, stop, runNow, resetBackoff
@lazuee
lazuee / ngrok-rdp.yml
Created August 7, 2024 07:56
Windows 10 Free RDP - Ngrok
#.github/workflows/main.yml
name: Windows - Ngrok
on: workflow_dispatch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active November 22, 2026 10:11
Complete Recent Discord Quest

Caution

As of August 26th 2026, Discord has started suspending quest access of people caught automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you WILL get flagged by doing so.

Complete Recent Discord Quest

@OrionReed
OrionReed / dom3d.js
Last active August 17, 2026 20:05
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@ixahmedxi
ixahmedxi / keybindings.json
Created January 2, 2024 20:46
Vscode neovim keybindings.json
[
{
"command": "vscode-neovim.compositeEscape1",
"key": "j",
"when": "neovim.mode == insert && editorTextFocus",
"args": "j"
},
{
"command": "vscode-neovim.compositeEscape2",
"key": "k",
@ixahmedxi
ixahmedxi / init.vim
Created January 2, 2024 20:46
vscode neovim init.vim
" packadd quickscope
" execute 'luafile ' . stdpath('config') . '/lua/settings.lua'
function! s:manageEditorSize(...)
let count = a:1
let to = a:2
for i in range(1, count ? count : 1)
call VSCodeNotify(to == 'increase' ? 'workbench.action.increaseViewSize' : 'workbench.action.decreaseViewSize')
endfor
endfunction
@ixahmedxi
ixahmedxi / settings.json
Created January 2, 2024 20:45
VSCode settings.json
{
// open json editor for settings
"workbench.settings.editor": "json",
// Theme
"workbench.colorTheme": "Aura Dark",
"workbench.iconTheme": "moxer-icons",
// Change font
"editor.fontFamily": "Geist Mono",
@jdunkerley
jdunkerley / Guide.md
Last active May 8, 2025 20:03
Set up a Windows 10 machine from empty to ready to build Enso