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 React from 'react' | |
import { useRouter } from 'next/router' | |
export function useSearchParams() { | |
const router = useRouter() | |
const isClientSide = typeof window !== 'undefined' | |
const set = React.useCallback( | |
(key: string, v: string | number | boolean) => { | |
if (!isClientSide) return |
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
export ZSH="$HOME/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time Oh My Zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | |
ZSH_THEME="spaceship" | |
plugins=( | |
git |
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
{ | |
"auths":{ | |
"https://index.docker.io/v1/": {} | |
}, | |
"psFormat":"table {{.ID}}\\t{{.Image}}\\t{{.Status}}\\t{{.Names}}\\t{{.Ports}}", | |
"credsStore":"osxkeychain", | |
"currentContext":"desktop-linux", | |
"plugins":{ | |
"-x-cli-hints":{ | |
"enabled":"true" |
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
# Run the following commands to update the packages | |
sudo apt update -y | |
sudo apt upgrade -y | |
#install homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# Run the following commands to update the packages | |
brew upgrade |
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
{ | |
// ---------------------------------------------------- | |
// EMMET ⤵️ | |
// ---------------------------------------------------- | |
"emmet.syntaxProfiles": { | |
"javascript": "jsx" | |
}, | |
"emmet.includeLanguages": { | |
"javascript": "javascriptreact" | |
}, |