#showtooltip
/castsequence [nomod] reset=10 Multi-Shot, Arcane Shot
/use [@mouseover,harm,nodead,mod][mod] Arcane Shot
Using xinput change acceleration profile from adaptive to flat.
- Use
xinput list
and grab touchpad/trackpad device ID. - List properties with
xinput watch-props <device id>
and grab Accel Profile Enabled ID. - Turn off adaptive profile and turn on flat profile with
xinput set-prop <device> <prop> 0 1
.
This file contains 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
import { ChangeEvent, createContext, useMemo, useReducer } from "react"; | |
import { AnyZodObject, ZodError, z } from "zod"; | |
import { mapValues } from "~/lib/map"; | |
type FieldState = { | |
name: string; | |
value: string; | |
error: undefined | ZodError; | |
touched: boolean; | |
}; |
This file contains 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
{ | |
"scripts": { | |
"prepare": "test -f .git/hooks/pre-commit || cp scripts/pre-commit .git/hooks", | |
"format": "prettier . --cache", | |
"lint": "eslint . --report-unused-disable-directives --max-warnings 0 --cache", | |
} | |
} |
This file contains 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
/** | |
* Stylesheet module classes. | |
*/ | |
declare module "*.module.css" { | |
const stylesheet: { | |
[key: string]: string; | |
}; | |
export = stylesheet; | |
} |
This file contains 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
/** | |
* Make all properties of T optional, except those in U. If exempt keys were already optional they'll stay optional. | |
*/ | |
type Semipartial<T, U extends keyof T> = Partial<T> & Pick<T, U>; | |
/** | |
* Make all properties of T required, except those in U. If exempt keys were already required they'll stay required. | |
*/ | |
type Semirequired<T, U extends keyof T> = Required<T> & Pick<T, U>; |
This file contains 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
param($addr, $port) | |
netsh interface portproxy delete v4tov4 $port | |
netsh interface portproxy add v4tov4 listenport=$port listenaddress=0.0.0.0 connectport=$port connectaddress=$addr |
This file contains 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
Optimize-VHD -Mode Full %APPDATA%\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState\ext4.vhdx |
This file contains 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 | |
# | |
# Create React Component. | |
# | |
# Sane defaults. | |
# -e Exit on error. | |
# -u Whine on undefined variables. | |
# -o pipefail Exit main script if pipe process fails. | |
set -euo pipefail |
In your package.json
:
"scripts": {
"start": "per-env",
"start:development": "echo We're in development!",
"start:production": "echo We're in production!",
}
NewerOlder