Skip to content

Instantly share code, notes, and snippets.

View rondDev's full-sized avatar
🎯
Trying to improve my code

rond rondDev

🎯
Trying to improve my code
View GitHub Profile

Multiple GitHub accounts (Work vs Personal)

This setup uses some tricks to ensure that the right email/name/ssh-key is used for the right repos without having to think about it ever again.

  • First generate two SSH keys, ~/.ssh/id_ed25519 and ~/.ssh/id_ed25519_work
  • Add one key to your personal account and the other to your work account

.ssh/config

@jeanfbrito
jeanfbrito / macros.cfg
Created April 25, 2023 18:07
Ender 3 S1 Pro Klipper
[gcode_macro BED_MESH_CALIBRATE]
rename_existing: BED_MESH_CALIBRATE_BASE
; gcode parameters
variable_parameter_AREA_START : 0,0
variable_parameter_AREA_END : 0,0
; the clearance between print area and probe area
variable_mesh_area_offset : 5.0
; number of sample per probe point
variable_probe_samples : 2
; minimum probe count
@KTibow
KTibow / Monaco.svelte
Created November 6, 2022 20:14
Monaco editor in svelte
<script>
import { onMount } from "svelte";
import editorWorker from "monaco-editor/esm/vs/editor/editor.worker?worker";
import jsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker";
import cssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker";
import htmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker";
import tsWorker from "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
let subscriptions = [];
export let content;
@sioodmy
sioodmy / README.md
Created November 2, 2022 19:53
Hyprland on NixOS with nvidia driver - screenshare worky edition
@Allavaz
Allavaz / bakkesmod-proton.md
Last active October 17, 2025 16:23
Running BakkesMod on Linux with Steam Proton

This guide is outdated

Check this one out: https://github.com/CrumblyLiquid/BakkesLinux

Running BakkesMod on Linux with Steam Proton

Prerequisites

I had to install these packages along the process. I'm on Fedora 36 though, so package names may vary depending on what distro you're on:

  • protontricks
@sindresorhus
sindresorhus / esm-package.md
Last active March 16, 2026 04:38
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@keilmillerjr
keilmillerjr / DSLR_webcam_arch_linux.md
Last active October 10, 2025 17:55
Using DSLR as a webcam on Arch/Manjaro Linux
@ityonemo
ityonemo / test.md
Last active February 16, 2026 15:54
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@progfolio
progfolio / general-spacemacs.org
Last active August 1, 2025 05:17
Spacemacs-like menus using general.el

Spacemacs-like menus using general.el

Global keybindings

First, we define a global prefix key:

(general-create-definer global-definer
  :keymaps 'override
  :states  '(insert emacs normal hybrid motion visual operator)
  :prefix  "SPC"
  :non-normal-prefix "S-SPC")