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
| #!/usr/bin/env bash | |
| # | |
| # bootstrap-dotfiles.sh | |
| # | |
| # Linux workstation bootstrap for Debian / Ubuntu / Pop!_OS | |
| # | |
| # Features: | |
| # - apt bootstrap deps | |
| # - Homebrew for userland tooling | |
| # - Docker engine via apt |
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
| #!/bin/bash | |
| # from vercel blog | |
| echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF" | |
| # only build on push to main, you can customize the condition | |
| if [[ "$VERCEL_GIT_COMMIT_REF" == "main" ]]; then | |
| # Proceed with the build | |
| echo "✅ - Build can proceed" | |
| exit 1 |
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
| /** | |
| * custom firestore converter for more simplicity and type safety | |
| */ | |
| type CustomFirestoreConverter<Model extends Record<string, unknown>> = Omit< | |
| FirestoreDataConverter<Model>, | |
| 'fromFirestore' | |
| > & { | |
| fromFirestore(snapshot: QueryDocumentSnapshot<DocumentData & Model>): Model; | |
| }; | |
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
| echo "adding repository" | |
| sudo apt-add-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" | |
| sudo apt update | |
| yes | sudo apt upgrade | |
| mkdir setups | |
| git clone https://github.com/rayhanhamada/quickserver.git ./setups | |
| cd setups |