You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asciinema is a great way to share and embed terminal
recordings on the web.
Getting started with Asciinema on macOS is as simple as installing the tool
with brew install asciinema, and creating a new recording with asciinema rec demo.cast.
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
For reasons still unknown my Apple Mail (macOS 13.2) got stuck in an endless "Moving messages" loop.
The Internet offers many different solutions to this problem but unfortunately many did not work for me.
Until I discoved this page that contained a procedure that did make the "Moving messages" go away.
For future reference, these are the steps:
Exit Apple Mail
Open Finder and go to this folder: ~/Library/Mail/V10/MailData/ (note that I could not access this folder from the terminal)
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
"summary": "Software engineer with over 15 years of industry experience. Feels confident working in greenfield environments and skilled in setting up architectures and development processes from scratch. Loves to work with modern technologies and frameworks, knows the importance of selecting the right tool for the job. Desire to understand the inner workings and the business context of a software product. Software minimalist, is aware of the challenges of long-term maintenance. Strong communicator, both written and spoken.",
Recently I spent two days figuring out why a seemingly trivial use of a cascading delete relationship in SQLAlchemy did not work properly, eventually I found the answer in this StackOverflow post. Because it was a real puzzler I've created this short writing, perhaps it can be of help to someone facing the same problem someday.
The context of the problem is very simple: there are two tables (Parent and Child), each Parent can only have one Child and when a Parent row is deleted the associated Child row should also be deleted.
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
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
AWS SSO command-line login script (that also updates .aws/credentials)
AWS SSO command-line login script (that also updates .aws/credentials)
The AWS Command Line Interface tool from Amazon (for macOS available here on Homebrew) makes it possible to login to AWS through a SSO (Single Sign-On) identity provider such as Okta. However, if you login via "aws sso login" the AWS credentials file (located at ~/.aws/credentials) is not updated, this is a problem for tools/libraries that rely on that file.
This script is a wrapper around aws sso login that also updates the .aws/credentials file. It only requires AWS CLI and Python 3 to run.
Configuration
Make sure your .aws/config file has a section (or multiple sections) that have SSO configuation options.
For example:
If you want your iTerm2 terminal window display the current Git branch
(when the current directory is inside a Git repository of course) add the following to
your .zshrc: