Skip to content

Instantly share code, notes, and snippets.

View mrcjkb's full-sized avatar

Marc Jakobi mrcjkb

View GitHub Profile
@mrcjkb
mrcjkb / luks-encrypted-root-on-nixos.org
Created October 14, 2025 15:20 — forked from byrongibson/luks-encrypted-root-on-nixos.org
Nix Setup with LUKS encrypted root

Setting up NixOs with LUKS encrypted root

Here are my working notes on getting a system up and running.

WARNING: You can run into a hidden problem that will prevent a correct partition setup and /etc/nixos/configuration.nix from working: if you are setting up a UEFI system, then you need to make sure you boot into the NixOS installation from the UEFI partition of the bootable media. You may have to enter your BIOS boot selection menu to verify this. For example, if you setup a NixOS installer image on a flash drive, your BIOS menu may display several boot options from that flash drive: choose the one explicitly labeled with “UEFI”.

References

I used these resources:

@burkeholland
burkeholland / 4.1.chatmode.md
Last active December 15, 2025 22:19
4.1 Beast Mode v2
description tools
4.1 Beast Mode
changes
codebase
editFiles
extensions
fetch
findTestFiles
githubRepo
new
openSimpleBrowser
problems
readCellOutput
runCommands
runNotebooks
runTasks
runTests
search
searchResults
terminalLastCommand
terminalSelection
testFailure
updateUserPreferences
usages
vscodeAPI

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

@gene1wood
gene1wood / how-to-disable-google-search-ai-overview-in-firefox.md
Last active December 25, 2025 08:14
How to disable Google Search AI Overview in Firefox
  • In Firefox, open a tab to about:config
  • Enter browser.urlbar.update2.engineAliasRefresh and click the + sign on the right
    • This will now show the value for the Boolean as true which is correct
    • Be setting this to true you enable the option to add a custom search engine to Firefox
  • Go to Settings or navigate to about:preferences#search
  • Under Search Shortcuts click Add
    • Search enging name : Google without AI
    • Engine URL : https://www.google.com/search?client=firefox-b-1-d&channel=entpr&udm=14&q=%s
    • Alias (if there is an alias field present) : gnai or whatever alias you'd like here. This is not required
  • Click Add Engine
@MariaSolOs
MariaSolOs / builtin-compl.lua
Last active December 30, 2025 01:08
Built-in completion + snippet Neovim setup
---Utility for keymap creation.
---@param lhs string
---@param rhs string|function
---@param opts string|table
---@param mode? string|string[]
local function keymap(lhs, rhs, opts, mode)
opts = type(opts) == 'string' and { desc = opts }
or vim.tbl_extend('error', opts --[[@as table]], { buffer = bufnr })
mode = mode or 'n'
vim.keymap.set(mode, lhs, rhs, opts)

Setting up NixOs with LUKS encrypted root

Here are my working notes on getting a system up and running.

WARNING: You can run into a hidden problem that will prevent a correct partition setup and /etc/nixos/configuration.nix from working: if you are setting up a UEFI system, then you need to make sure you boot into the NixOS installation from the UEFI partition of the bootable media. You may have to enter your BIOS boot selection menu to verify this. For example, if you setup a NixOS installer image on a flash drive, your BIOS menu may display several boot options from that flash drive: choose the one explicitly labeled with “UEFI”.

References

I used these resources:

@goyalankit
goyalankit / bash_to_zsh_history.rb
Last active December 3, 2025 14:41
Import bash history to zsh history.
#################################################################
# = This script transfers bash history to zsh history
# = Change bash and zsh history files, if you don't use defaults
#
# = Usage: ruby bash_to_zsh_history.rb
#
# = Author: Ankit Goyal
#################################################################
# change if you don't use default values