Skip to content

Instantly share code, notes, and snippets.

View mateosantosdev's full-sized avatar

Mateo Santos mateosantosdev

  • Spain
View GitHub Profile
@mateosantosdev
mateosantosdev / terminal-prompt-git-branch-zsh.md
Created February 19, 2024 08:37 — forked from reinvanoyen/terminal-prompt-git-branch-zsh.md
Add Git Branch Name to Terminal Prompt (MacOS zsh)

Add Git Branch Name to Terminal Prompt (zsh)

Updated for MacOS with zsh

  • Catalina
  • Big Sur
  • Monterey
  • Ventura
  • Sonoma

screenshot

@mateosantosdev
mateosantosdev / UploadAvatar.tsx
Last active September 22, 2023 19:39
Upload file to S3 with RemixJS
<fetcher.Form
method="post"
encType="multipart/form-data"
action="/api/upload-photo"
>
<input type="hidden" name="id" value="the user id" />
<input type="file" name="photo" id="photo" accept="image/*" />
<button
type="submit"
disabled={fetcher.state !== 'idle'}