Imoprt a list of items from plaintext as indivividual items on Apple Reminder App
- Copy a list from whatever
- Paste it into Apple Notes app - make sure it's an actual list
- Now, there's a "checkmark" icon on the top bar. Highlight entire list. Click it.
- The list is now a checkmark list. Copy it and paste it to the reminders app.
From: https://nowicki.io/how-to-import-a-list-into-apple-reminders/
Troubleshooting and Enabling Universal Clipboard on Mac
Run the Command
defaults read ~/Library/Preferences/com.apple.coreservices.useractivityd.plist ClipboardSharingEnabled
The valuue should be 1. If not, run below to set to 1 and restart the Macbook.
defaults write ~/Library/Preferences/com.apple.coreservices.useractivityd.plist ClipboardSharingEnabled 1
Source: https://gadgetstouse.com/blog/2022/04/28/universal-clipboard-not-working-mac-iphone-ipad/?expand_article=1#:~:text=Method%208%2D%20Fix%20Universal%20Clipboard%20via%20Terminal%20Commands https://discussions.apple.com/thread/253274114
Install/Update HomeBrew Package without having to update all of homebrew
HOMEBREW_NO_AUTO_UPDATE=1 brew install aws/tap/aws-sam-cli
Ref: Homebrew/brew#1670 (comment)
Change linked Repository of Amplify
aws-amplify/amplify-hosting#288 (comment)
Universal Link Validators
- iOS: https://search.developer.apple.com/appsearch-validation-tool/
- Third Party: https://branch.io/resources/aasa-validator/
Common Issues:
/.well-known/apple-app-site-association
files needs to have a custom rewrite if website is a react app.
Remote Inspect from Android Studio and XCode for Capacitor Apps
https://stackoverflow.com/a/67920303
Get Parent Commit hash of a commit hash
https://stackoverflow.com/a/25664507/2526327
git rev-list --parents -n 1 <commithash>
Rebasing the unverified commits to verified commits on GitHub.
https://stackoverflow.com/a/59351278/2526327
You can do this by re-committing it:
git rebase -i <commit before first problematic commit>
After this, your text editor will open up. Change every pick
to edit
.
After that you'll have to re-commit every commit with the following command:
git commit --author="<name> <<E-Mail(once in brackets, see example)>>" -S --amend --no-edit
git rebase --continue
In the end, you'll have to overwrite the remote by doing
git push --force-with-lease
This is better than git push -f
but you should also be careful.
If someone knows a way to do this automatically, tell me in the comments.
example of the commit command:
git commit --author="testuser <testuser@github.com>" -S --amend --no-edit
Fixing misconfigured .gitignore
https://stackoverflow.com/a/38983205
Deleting undeletable AWS Amplify Deployements with Backend
aws-amplify/amplify-hosting#2456
List all Enums on PostgreSQL
https://stackoverflow.com/questions/9540681/list-postgres-enum-type
UUID for Google Sheet Cells: https://stackoverflow.com/a/51254597/2526327
Pi Hole can be run locally on Macbook: https://www.imore.com/how-run-pi-hole-your-mac
Famous shortId npm package is depracated. Recommended to use NanoId instead.
Tool to Plan and Allocate IP Ranges to VPC and Subnets - https://network00.com/NetworkTools/IPv4AddressPlanner/
Docker image initially built (docker build
) in local and pushed to ECR will not work if it is build in Apple M1 Processor. Would be better to build in Linux env (Github Action/Other pipeline).
AWS Nodejs sdk for s3 getObject call has a limit of 2GB for single part download. aws/aws-sdk-js#2916
Clear all local docker builds/images,
# To delete all containers including its volumes use,
docker rm -vf $(docker ps -a -q)
# To delete all the images,
docker rmi -f $(docker images -a -q)
https://stackoverflow.com/questions/44785585/docker-how-to-delete-all-local-docker-images
mysqldump
supports exporting the table structure without the data when we pass --no-data
https://stackoverflow.com/questions/6175473/mysql-export-schema-without-data
In Sequelize (ORM), To do a bulk upsert
, we can use bulkCreate
with updateOnDuplicate
parameter.
https://stackoverflow.com/questions/48124949/nodejs-sequelize-bulk-upsert https://sequelize.org/master/class/lib/model.js~Model.html#static-method-bulkCreate
For RDS Databases on AWS, max_connections
could be calculated using the memory class of the RDS instances.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Limits.html#RDS_Limits.MaxConnections