Signing commits is useful for verifying that the commit is actually made by the source it says. Anyone can commit and give it any name and email address. Verification is a way to tell the difference between commits made by someone pretending to be us and commits we’ve actually made.
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
#!/bin/bash | |
# In the future, when Azure fixes its `swa deploy build` command, we have to rely on this style (unfortunately) | |
# Whilst we're waiting for this to be fixed, lets rely on this script instead | |
apiTokenFile=.api-token | |
you=$(git config --get user.name) | |
theGitBranch=$(git branch --show-current) | |
theGitCommit=$(git rev-parse --short HEAD) | |
applicationName=$(pwd | awk -F/ '{print $NF}') | |
if [ ! "$(command -v swa)" ]; then | |
echo "💩⛔️ Oh no! No swa <command> found! Install this tool first using e.g npm i -g @azure/static-web-apps-cli" |
This is just a quick introduction to migrating an existing web-app from a CRA => Vite. It doesn't solve all the problems you may have, but it gives a breif introduction to how to migrate. Also added a few points on stuff that went sideways for us whilst performing an migration 🤪.
This assumes the following:
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
# What is this? | |
# Well.. | |
# Sometimes you want to reset an val from a test where lazy props are being used. | |
# This helps you do just that. | |
# Amazing 🤩 | |
# define the resetter 👇 | |
import java.util.concurrent.atomic.AtomicReference | |
import kotlin.reflect.KProperty |
This is not a fix, but a workaround for repositories not on HTTPS yet. Use with caution.
[ERROR] (...) Could not transfer artifact no.whatever:whatever-client:pom:3.1 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [releases (http://unportected.com/nexus/content/repositories/releases, defaul)] -> [Help 1]
NewerOlder