Saturday, September 29, 2018

macOS: from High Sierra to Mojave

Steps:
  • Download "Install macOS Mojave" application from the Mac App Store, and run it.
  • Reboot. At Clover boot screen, choose Boot macOS Install option. Multiple reboots expected. At some time, pick "Boot FileVault Prebooter from Preboot" option to finish the install.
  • Update Clover configuration in order to hide the 2 preboot options at boot time. For this, add "Preboot" in Clover Configurator | Gui | Hide Volume
  • And here it is.
  • Optional step: Create a Bootable USB with UniBeast

Monday, September 24, 2018

macOS: downloading .gz from Chrome turns into .cpgz

If you download a .gz from Chrome, and double-clicking it simply creates a .cpgz, then the downloaded file is not a .gz
Try
> file --mime-type ~/Desktop/42a3-909a-1b5bdb4a4b8b.gz
text/plain
Then simply rename it into .txt, and you will be able to open it.

Friday, September 21, 2018

macOS: turn text into links automatically

Use Edit > Substitutions > Smart Links

Tuesday, September 18, 2018

macOS: how to page up with byobu in Terminal.app

Source: How can I page up or down in tmux with Terminal.app?
Terminal.app captures PageUp / PageDown. So, in order to send them to byobu again:
If on a PC keyboard:
  • F7
  • Shift + PageUp / Shift + PageDown
Or if on a MacBookPro:
  • F7
  • Fn + Shift + Up / Fn + Shift + Down

Wednesday, September 12, 2018

Tuesday, September 4, 2018

git: merge files from another branch

Source: Git tip: How to "merge" specific files from another branch
git checkout [TARGET_BRANCH]
git checkout [SOURCE_BRANCH] my_file1 my_file2