Skip to content

Instantly share code, notes, and snippets.

@Erudition
Erudition / zen-sidebery.js
Created April 16, 2025 05:33
Sidebery replacement for Zen Browser Tabs
// Fetch first extension matching the name if any
let sidebery_policy = WebExtensionPolicy.getActiveExtensions().filter((ext) => ext.name == "Sidebery")[0]
let sidebery_browser;
let init_sidebery_browser;
if (sidebery_policy) {
let sidebery_extension = sidebery_policy.extension;
let sidebery_uri = sidebery_extension.manifest.sidebar_action.default_panel;
@lincore81
lincore81 / godot_lazyvim.md
Last active September 1, 2025 07:52
Godot + Lazyvim

How to set up LazyVim/Neovim for Godot on Linux

Please note: This setup if for gdscript, not csharp.

External Editor Setup

When clicking on a button or error message that opens a gdscript file in Godot, we want it to open in nvim instead. There are many ways to do this, this is mine:

  • Create a bash script nvim-broadcast with this content:
@delVhariant
delVhariant / Helix as external editor for Godot (using Zellij)
Last active July 30, 2025 16:42
Helix as external editor for Godot (using Zellij)
#
Setup using zellij with helix and lazygit to develop for Godot.
The hx.fish script is specific to my setup and will require alteration unless you already happen to be using i3, fish shell and xfce4-terminal
Since Helix doesn't support a client/server model that would allow us to open buffers in an existing session, zellij is used.
This also lets me use lazygit from within zellij as a floating pane, and have terminals.
Download and alter the hx.fish script to fit your setup (this may be somewhat difficult depending on what tools you use.
Most of the script exists to ensure that everything opens within the same terminal/zellij session, and that files are opened as buffers in the same helix process.
The allows me to open files from the godot editor directly without creating a new window each time.

A metatable in Lua defines various extraneous behaviors for a table when indexed, modified, interacted with, etc. They are Lua's core metaprogramming feature; most well known for being useful to emulate classes much like an OOP language.

Any table (and userdata) may be assigned a metatable. You can define a metatable for a table as such:

-- Our sample table
local tab = {}
-- Our metatable
local metatable = {
 -- This table is then what holds the metamethods or metafields
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active July 2, 2026 03:15
Conventional Commits Cheatsheet