# ~/.gitconfig
[merge]
tool = diffview
[mergetool]
prompt = false| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # patch-claude-code.sh — Rebalance Claude Code prompts to fix corner-cutting behavior | |
| # | |
| # What this does: | |
| # Patches the npm-installed @anthropic-ai/claude-code cli.js to rebalance | |
| # system prompt instructions that cause the model to cut corners, simplify | |
| # excessively, and defer complicated work. | |
| # |
| /** | |
| * Prompts a user when they exit the page | |
| */ | |
| import { useCallback, useContext, useEffect } from 'react'; | |
| import { UNSAFE_NavigationContext as NavigationContext } from 'react-router-dom'; | |
| function useConfirmExit(confirmExit: () => boolean, when = true) { | |
| const { navigator } = useContext(NavigationContext); |
| import { ComplexityEstimator, getComplexity } from 'graphql-query-complexity' | |
| import { GraphQLError, GraphQLSchema, separateOperations } from 'graphql' | |
| import { PluginDefinition } from 'apollo-server-core' | |
| export const createComplexityPlugin = ({ | |
| schema, | |
| maximumComplexity, | |
| estimators, | |
| onComplete, | |
| createError = (max, actual) => { throw new GraphQLError(`Query too complex. Value of ${actual} is over the maximum ${max}.`) }, |
A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.
Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.
This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x
The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/