Buld Docker image on ARM (Apple M1/M2)
docker buildx build --platform=linux/amd64 -t demo .
Buld Docker image on ARM (Apple M1/M2)
docker buildx build --platform=linux/amd64 -t demo .
Last updated September 21, 2022
This Gist explains how to do this using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
There has been a number of comments on this gist regarding some issues around the pinentry-program and M1 Macs. I've finally gotten a chance to try things out on an M1 and I've updated the documentation in 2-using-gpg.md
to reflect my findings.
I dont know exactly what I did, but I resolved my problem.
gem uninstall cocoapods
bundle exec pod install
. So I used sudo xcode-select --switch /Applications/Xcode.app
linksudo xcodebuild -license accept
npx react-native init template --template react-native-template-typescript
and everything was good!Also I can recommend you to use these commands to know where is your error
export AWS_COGNITO_REGION= | |
export AWS_COGNITO_USERPOOL_ID= | |
export AWS_COGNITO_CLIENT_ID= | |
export AWS_COGNITO_USERNAME= | |
export AWS_COGNITO_PASSWORD=" | |
# Cognito change password | |
aws cognito-idp respond-to-auth-challenge \ | |
--region $AWS_COGNITO_REGION \ | |
--client-id $AWS_COGNITO_CLIENT_ID \ |
Standard practices say no non-root process gets to talk to the Internet on a port less than 1024. How, then, could I get Node talking on port 80 on EC2? (I wanted it to go as fast as possible and use the smallest possible share of my teeny tiny little micro-instance's resources, so proxying through nginx or Apache seemed suboptimal.)
Add a port forwarding rule via iptables
.
First, I listed the rules currently running on the NAT (Network Address Translation) table:
# Get all Rules from Listener | |
aws elbv2 describe-rules \ | |
--listener-arn {alb-listener-arn} | |
# Get Rule | |
aws elbv2 describe-rules \ | |
--rule-arn {alb-rule-arn} | |
# Modify Rule | |
aws elbv2 modify-rule \ |
# Generate private and public keys | |
# RSA 2048 | |
# Quiet mode | |
# Without a passphrase | |
ssh-keygen -t rsa -b 2048 -q -N '' -m PEM -f private.key \ | |
&& rm private.key.pub \ | |
&& openssl rsa -in private.key -pubout -outform PEM -out public.key |
bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...