git diff HEAD^^ HEAD main.cgit diff HEAD^^..HEAD -- main.cgit diff revision_1:file_1 revision_2:file_2
git difftool --tool=meld HEAD~..HEAD
git show
| type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never } | |
| type XOR<T, U> = (T | U) extends object | |
| ? (Without<T, U> & U) | (Without<U, T> & T) | |
| : T | U | |
| // Example | |
| type RenderProps = XOR< | |
| { children: (api: API) => ReactNode }, | |
| { render: (api: API) => ReactNode } |
| * text=auto | |
| # Unity files | |
| *.asset linguist-generated -text -merge=unityamlmerge | |
| *.mat linguist-generated -text -merge=unityamlmerge | |
| *.meta linguist-generated -text -merge=unityamlmerge | |
| *.prefab linguist-generated -text -merge=unityamlmerge | |
| *.unity linguist-generated -text -merge=unityamlmerge | |
| # Image formats |
| import type { THook, THookProps } from '@auto/core' | |
| import type { TReadonly } from 'tsfn' | |
| const getYarnCacheDir = async () => { | |
| const { default: execa } = await import('execa') | |
| const { stdout: yarnCacheDir } = await execa('yarn', ['cache', 'dir']) | |
| return yarnCacheDir | |
| } |
| max_body_size: 100mb | |
| storage: /opt/verdaccio/storage | |
| auth: | |
| htpasswd: | |
| file: /opt/verdaccio/htpasswd | |
| uplinks: | |
| npmjs: | |
| url: https://registry.npmjs.org/ | |
| packages: | |
| '@*/*': |
| /* https://marketplace.visualstudio.com/items?itemName=be5invis.vscode-custom-css */ | |
| /* https://marketplace.visualstudio.com/items?itemName=lehni.vscode-fix-checksums */ | |
| /* sudo chown -R $(whoami) /Applications/Visual\ Studio\ Code.app/Contents/MacOS/Electron */ | |
| /* code ~/.vscode-custom.css */ | |
| .monaco-editor-hover-content { | |
| max-width: 2000px !important; | |
| max-height: 1000px !important; | |
| } |
| if git apply --check --ignore-space-change --ignore-whitespace --directory node_modules/typescript/ typescript.patch 2> /dev/null; then | |
| git apply --verbose --ignore-space-change --ignore-whitespace --directory node_modules/typescript/ typescript.patch | |
| fi |
| [local] | |
| aws_access_key_id = accessKey1 | |
| aws_secret_access_key = verySecretKey1 | |
| docker run --name srv -d -p 8000:8000 -e REMOTE_MANAGEMENT_DISABLE=1 -e S3BACKEND=mem zenko/cloudserver | |
| aws --profile local --endpoint-url http://127.0.0.1:8000/ s3 ls | |
| aws --profile local --endpoint-url http://127.0.0.1:8000/ s3 mb 123 |
| [color] | |
| ui = auto | |
| [user] | |
| name = psxcode | |
| email = psxcode@gmail.com | |
| [credential] | |
| helper = osxkeychain | |
| [alias] | |
| st = status | |
| co = checkout |
| { | |
| "env": { | |
| "production": { | |
| "presets": [ | |
| [ | |
| "@babel/preset-env", | |
| { | |
| "targets": { | |
| "node": "8" | |
| }, |