How to create a password protected ZIP file on your Mac?

TL;DR:

zip -er data.zip .

Step by step:

Open the Terminal. [e.g. through Launchpad (second icon on the MacOS menu bar at the bottom) or press cmd + space and type Terminal ]

cd to the folder you want to zip. (e.g.: cd Downloads/BankStatements)

Issue the following command. The dot (.) at the end is extremely important!

zip -er data.zip .

You will be prompted for a password. Just make up something. Then repeat it to verify.

Enter password:

Verify password:

What do the parameters mean?

  • -r recurse into directories, because you want all the sub directories
  • -e encrypt, because you want a password
  • . The dot (.) means you are encrypting/zipping the current directory.

Without the dot (.) you’ll get this error:

zip error: Nothing to do!

--

--

I have downloaded the M1 version of IntelliJ Idea. On the new project screen I clicked on download JDK. I was expecting it would download the right version. But no. Bad CPU type.

Cannot run program “/Users/andrewboro/Library/Java/JavaVirtualMachines/openjdk-15.0.2/Contents/Home/bin/java” (in directory “/Users/andrewboro/Library/Caches/JetBrains/IntelliJIdea2020.3/compile-server”): error=86, Bad CPU type in executable

How to fix it?

Download ZULU.

Run it again.

/Library/Java/JavaVirtualMachines/zulu-15.jdk/Contents/Home/bin/java -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=50339:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Users/andrewboro/IdeaProjects/HelloWorld/target/classes HelloWorld
Hello, Andrew

Process finished with exit code 0

--

--

Let’s assume you try to clone a project from either github or bitbucket.

Windows 10 stores your credentials in a vault called “Credential Manager”. However, every now and then the passwords might expire or get out of sync. For example, you have changed your github password but Windows will remember the old one.

Open cmder or command prompt.

git clone https://bitbucket…

Cloning into ‘project-name’…

fatal: Authentication failed for ‘https://bitbucket…

If you get the above error you can fix it using the following procedure:

  1. Start -> Credential Manager -> Windows Credentials.
  2. Find the bitbucket entry. Click to expand (an arrow to the right). Choose ‘Remove’. Confirm by clicking the ‘Yes’ button.
  3. Clone again.
  4. This time you will be prompted for password.

--

--

Users report fried M1 motherboards after charging their MacBooks through hubs rather than directly through one of the two USB-C Thunderbolt ports on the 2020 M1 MacBooks.

Below is the list of hubs and sources of user reports.

  • Green Cell AK50 (aka HUB GC 7in1) Source.
  • Anker 7-in-1 Dock Source.
  • HOPLAZA USB C Hub Type C Dock Adapter - USB C Dock 5 In 1 https://forums.macrumors.com/threads/bricked-macbook-pro-m1.2273991/?post=29425477#post-29425477
  • AUKEY Hub USB C 8 in 1 USB Tipo C https://forums.macrumors.com/threads/bricked-macbook-pro-m1.2273991/?post=29426171#post-29426171
  • Vayox VA0011 Source.

--

--