brew install openjdk@8
brew install openjdk@11
brew install openjdk@17
It's frustrating to have a much bigger file exported from iMovie. For example, a editing of WebEx recording, which is MP4 file, in iMovie and exporting it out as MP4, will significantly increase the size, say from 300MB to 2.5GB.
The simplest way to shrink it, based on my experiments, is to use ffmpeg
:
ffmpeg -i source.mp4 -c:v libx265 -preset fast -crf 28 -tag:v hvc1 -c:a eac3 -b:a 224k output.mp4
Once you encounter that, right click the page and click "inspect".
Then switch to "Console" and copy-and-paste below command, then enter:
sendCommand(SecurityInterstitialCommandId.CMD_PROCEED)
Boom, it will work within seconds.
It's common that we use business email to commit for work while using personal email to commit for OSS.
You can configure an individual repo to use a specific user / email address which overrides the global configuration.
Let say we want to make the OSS commits as default, do this:
From the root of the repo, run
git config user.name "Your biz name here"
➜ CRC crc delete | |
Do you want to delete the OpenShift cluster? [y/N]: y | |
Deleted the OpenShift cluster | |
➜ CRC crc cleanup | |
INFO Unload CodeReady Containers tray | |
INFO Unload CodeReady Containers daemon | |
INFO Removing launchd configuration for tray | |
INFO Removing launchd configuration for daemon | |
INFO Removing current user permission for /etc/hosts file | |
INFO Will use root access: change ownership of /etc/hosts |
#!/bin/bash | |
# Ref: https://gist.github.com/bobthecow/757788 | |
# Purposes: to open a new iTerm tab vertically, with the same profile, and run the command. | |
# Usage: source it and | |
# tab Opens the current directory in a new tab | |
# tab [PATH] Open PATH in a new tab | |
# tab [CMD] Open a new tab and execute CMD | |
# tab [PATH] [CMD] ... You can prob'ly guess |
Sometimes STS/Eclipse failed to start: failed to create java virtual machine.
It might be caused by multiple JDKs installed.
So we have to specify if it helps.
$ sudo vi /Applications/STS.app/Contents/Eclipse/STS.ini
...
-vm
set autoindent | |
set tabstop=2 shiftwidth=2 expandtab | |
set history=50 | |
set hlsearch | |
set ignorecase | |
set incsearch | |
set linebreak | |
set listchars=eol:¶ | |
set list | |
set nobackup |
# The inputs, outputs, params, filename, and filepath | |
# of this task file are part of its semantically versioned API. | |
# See our documentation for a detailed discussion of our semver API. | |
# See www.semver.org for an explanation of semantic versioning. | |
# code_snippet credhub-interpolate start yaml | |
--- | |
platform: linux | |
inputs: |