Skip to content

vishwasnavadak/TIL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 

Repository files navigation

TIL

2024-01002

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/

2023-10-01

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

2023-04-07

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)

2022-12-16

Change linked Repository of Amplify

aws-amplify/amplify-hosting#288 (comment)

image

2022-07-14

Universal Link Validators

Common Issues:

  1. /.well-known/apple-app-site-association files needs to have a custom rewrite if website is a react app.

image

2. If website has www and no www sites / redirects, both of them needs to have in the applinks on ios config.

Documentation: https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html#//apple_ref/doc/uid/TP40016308-CH12-SW2

2022-07-13

Remote Inspect from Android Studio and XCode for Capacitor Apps

https://stackoverflow.com/a/67920303

2022-05-18

Get Parent Commit hash of a commit hash

https://stackoverflow.com/a/25664507/2526327

git rev-list --parents -n 1 <commithash>

2022-05-17

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

2022-01-18

Fixing misconfigured .gitignore

https://stackoverflow.com/a/38983205

2021-12-29

Deleting undeletable AWS Amplify Deployements with Backend

aws-amplify/amplify-hosting#2456

2021-10-26

List all Enums on PostgreSQL

https://stackoverflow.com/questions/9540681/list-postgres-enum-type

2021-10-01

UUID for Google Sheet Cells: https://stackoverflow.com/a/51254597/2526327

2021-09-26

Pi Hole can be run locally on Macbook: https://www.imore.com/how-run-pi-hole-your-mac

2021-08-12

Famous shortId npm package is depracated. Recommended to use NanoId instead.

2021-07-23

Tool to Plan and Allocate IP Ranges to VPC and Subnets - https://network00.com/NetworkTools/IPv4AddressPlanner/

2021-06-29

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).

https://stackoverflow.com/questions/67361936/exec-user-process-caused-exec-format-error-in-aws-fargate-service

2021-06-23

AWS Nodejs sdk for s3 getObject call has a limit of 2GB for single part download. aws/aws-sdk-js#2916

2021-06-21

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

2021-06-11

mysqldump supports exporting the table structure without the data when we pass --no-data

https://stackoverflow.com/questions/6175473/mysql-export-schema-without-data

2021-06-02

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

2021-05-31

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

About

Attempt to note down the daily learnings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published