title | description | author | created | updated | ||
---|---|---|---|---|---|---|
{{title}} |
{{description}} |
{{author}} |
|
|
Discover gists
- 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?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"vim.showMarksInGutter": false, | |
"vim.foldfix": true, | |
"vim.surround": true, | |
"vim.easymotion": true, | |
"vim.easymotionKeys": "asdghklqwertyuiopzxcvbnmfj", | |
"vim.leader": "<space>", | |
"vim.normalModeKeyBindingsNonRecursive": [ | |
{ | |
"before": [":", "w", "<CR>"], |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 = []) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dns": { | |
"servers": [ | |
{ | |
"tag": "dns_proxy", | |
"address": "https://1.1.1.1/dns-query", | |
"address_resolver": "dns_resolver", | |
"strategy": "ipv4_only", | |
"detour": "select" | |
}, |
Git sees every file in your working copy as one of three things:
- tracked - a file which has been previously staged or committed;
- untracked - a file which has not been staged or committed; or
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUBSYSTEM=="i2c-dev", ACTION=="add",\ | |
ATTR{name}=="NVIDIA i2c adapter*",\ | |
TAG+="ddcci",\ | |
TAG+="systemd",\ | |
ENV{SYSTEMD_WANTS}+="ddcci@$kernel.service" |
NewerOlder