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
# /etc/X11/xorg.conf.d/30-touchpad.conf | |
Section "InputClass" | |
Identifier "touchpad" | |
Driver "libinput" | |
MatchIsTouchpad "on" | |
Option "Tapping" "on" | |
Option "TappingButtonMap" "lmr" | |
Option "NaturalScrolling" "true" | |
EndSection |
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
# | |
# ~/.bashrc | |
# | |
# If not running interactively, don't do anything | |
[[ $- != *i* ]] && return | |
source ~/.git-prompt.sh | |
PS1='[\u@\h on \w$(__git_ps1 " - %s")]\n[גּ]\$ ' |
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
// Code by: Yara Bramasta ([email protected]) | |
import { useSearchParams } from 'next/navigation'; | |
import { type z } from 'zod'; | |
/** | |
* **Wrapper around Next.js useSearchParams hook** | |
* | |
* This hook is used to safely parse query params from the URL with `zod`. |
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
import { ZodError, type z } from 'zod'; | |
import { type Callback, type Handler, type InputType } from './types'; | |
export default function jsonEndpoint<I, O, E>( | |
input: { | |
type: InputType; | |
schema: z.Schema<I>; | |
}, | |
output: z.Schema<O>, |