Skip to content

Instantly share code, notes, and snippets.

View Saul-BT's full-sized avatar
👨‍💻
Focusing

Saul Blanco Tejero Saul-BT

👨‍💻
Focusing
View GitHub Profile
@Saul-BT
Saul-BT / useSearchParams.md
Last active January 4, 2024 12:33
useSearchParams() custom hook for Next.js

App Router version

import { useRouter, usePathname, useSearchParams as useSP } from 'next/navigation';
import { useCallback } from 'react';

type SearchParams<T> = {
	params: T;

Keybase proof

I hereby claim:

  • I am saul-bt on github.
  • I am tarod (https://keybase.io/tarod) on keybase.
  • I have a public key ASCq0moQLZ-XbyUwnEi1ryhsyLU8ve21o_mQYaO7veb1nQo

To claim this, I am signing this object:

@Saul-BT
Saul-BT / GNUPG Cheatsheet.md
Last active February 26, 2018 10:37 — forked from turingbirds/GNUPG Cheatsheet.md
GPG (GNUPG) Cheatsheet

GNUPG CHEATSHEET

Setting up: key generation

This generates a public/private keypair.

$ gpg --gen-key