Skip to content

Instantly share code, notes, and snippets.

@robconery
robconery / Book.md
Last active July 10, 2025 21:55
Obsidian Bujo Templates
title description author created updated
{{title}}
{{description}}
{{author}}
{"DATE:YYYY-MM-DD HH:mm:ss" => nil}
{"DATE:YYYY-MM-DD HH:mm:ss" => nil}

cover|150

@technolo-g
technolo-g / problem_solving_framework.md
Last active July 10, 2025 21:47
Problem Solving Framework
  • What is the problem?
  • What exactly does this problem mean? Spend 5 minutes of quiet time thinking to yourself the implications of what is happening and why it may be happening. Are there recent changes going on? Did someone mention this at standup?
  • Does it happen in prod too? (run the build right now, etc.)
  • Does it happen consistently or only sometimes?
  • If not consistent, what seems to be the variability? (build slave, environment)
  • Does the documentation of the project mention anything like this?
  • What systems could potentially be involved in this issue?
@vineus
vineus / mylist.md
Last active July 10, 2025 21:42
Software engineering links
@sbolel
sbolel / pfctl-forward
Last active July 10, 2025 21:36
pfctl hack: forward localhost port to another port
#!/usr/bin/env bash
# forward localhost:8000 to localhost:3000
echo "rdr pass on lo0 inet proto tcp from any to 127.0.0.1 port 8000 -> 127.0.0.1 port 3000" | sudo pfctl -ef -
# remove it
sudo pfctl -F all -f /etc/pf.conf
@brotherkaif
brotherkaif / settings.json
Created September 12, 2023 17:19
LazyVim keymappings for VSCode
{
"vim.showMarksInGutter": false,
"vim.foldfix": true,
"vim.surround": true,
"vim.easymotion": true,
"vim.easymotionKeys": "asdghklqwertyuiopzxcvbnmfj",
"vim.leader": "<space>",
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [":", "w", "<CR>"],
@burkeholland
burkeholland / 4.1.chatmode.md
Created July 8, 2025 22:53
41. Beast Mode V3
description model
4.1 Beast Mode v3
GPT-4.1

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.

Your thinking should be thorough and so it's fine if it's very long. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough.

You MUST iterate and keep going until the problem is solved.

@markselby9
markselby9 / useEffectDebugger.js
Last active July 10, 2025 21:08
A `useEffectDebugger` hook to debug which dependency changed causing `useEffect` hook to fire
// a code snippet living in a component
// source: https://stackoverflow.com/a/59843241/3600510
const usePrevious = (value, initialValue) => {
const ref = useRef(initialValue);
useEffect(() => {
ref.current = value;
});
return ref.current;
};
const useEffectDebugger = (effectHook, dependencies, dependencyNames = []) => {
@woyin
woyin / sing_box_config.json
Created July 15, 2024 01:12
Sing Box Configure Example
{
"dns": {
"servers": [
{
"tag": "dns_proxy",
"address": "https://1.1.1.1/dns-query",
"address_resolver": "dns_resolver",
"strategy": "ipv4_only",
"detour": "select"
},
@jstnlvns
jstnlvns / git: gitignore.md
Created November 16, 2018 19:42
a gitignore cheatsheet

Git sees every file in your working copy as one of three things:

  1. tracked - a file which has been previously staged or committed;
  2. untracked - a file which has not been staged or committed; or
  3. ignored - a file which Git has been explicitly told to ignore.

Ignored files are usually build artifacts and machine generated files that can be derived from your repository source or should otherwise not be committed. Some common examples are:

  • dependency caches, such as the contents of /node_modules or /packages
  • compiled code, such as .o, .pyc, and .class files
SUBSYSTEM=="i2c-dev", ACTION=="add",\
ATTR{name}=="NVIDIA i2c adapter*",\
TAG+="ddcci",\
TAG+="systemd",\
ENV{SYSTEMD_WANTS}+="ddcci@$kernel.service"