Skip to content

Instantly share code, notes, and snippets.

@e7d
e7d / remove-obsolete-gpg-key-from-dnf.md
Last active June 26, 2024 11:37
Remove obsolete GPG key from DNF (Fedora)
@beauwilliams
beauwilliams / safe_require_nvim.lua
Last active May 13, 2024 13:23
A simple function to safely require packages. Avoids vim crashing when packages not installed
-- @USAGE:
-- local foo = safe_require('foo')
-- if not foo then return end
_G.safe_require = function(module_name)
local package_exists, module = pcall(require, module_name)
if not package_exists then
vim.defer_fn(function()
vim.schedule(function()
vim.notify('Could not load module: ' .. module_name, 'error', { title = 'Module Not Found' })
end)
Compiling/installing the mesa virtio-venus-driver-(below done with new linux container)
For: Chrome OS crostini-default debian container bookworm
Best viewed in "raw" format
In chrome browser type or paste
chrome://flags
@davidostermann
davidostermann / docker-compose.yml
Last active March 17, 2024 10:36
Docker compose Postgres Adminer
version: '3.1'
services :
db:
image: postgres:10-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: user1
POSTGRES_PASSWORD: changeme
POSTGRES_DB: tododb