--

--

Microsoft teams current version on Mac seems to associate media keys, so when you finish a call and press Play media key (F8), the call sound starts instead of Spotify / Youtube Music.

To fix this, the thing that worked for me was just launching this command from the terminal

touch ~/Library/Application\ Support/Microsoft/Teams/hooks.json

that is the equivalent of creating a hooks.jsonfile in that directory. After this restart.

If that doesn’t work you can launch Teams with an additional parameter

-disable-features=HardwareMediaKeyHandling

but that would require to open the terminal, then type this command to launch Teams

nohup /Applications/Microsoft\ Teams.app/Contents/MacOS/Teams -disable-features=HardwareMediaKeyHandling &

Clap if useful

--

--

In case you have the latest k9s v0.25+ not connecting to the cluster, launch with--help to find the log path, read it, and if you see

`exec plugin: invalid apiVersion “client.authentication.k8s.io/v1alpha1`

try installing k9s version v0.24.15.

It worked on my M1 Apple silicon CPU by rebuilding from source

--

--

in case you are getting this error after updating kubectl

error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"

Double check the current version

 kubectl version

if you are at Major:1 and Minor: 24, then you probably need to downgrade to 1.23.6

How to do that on Apple Silicon /M1

cd /tmp
sudo rm -f /usr/local/bin/kubectl
curl -LO "https://dl.k8s.io/release/v1.23.6/bin/darwin/arm64/kubectl"
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
sudo chown root: /usr/local/bin/kubectl
kubectl version

Full instructions here

--

--

When loaded via webpack, REACT_APP_ variable are not visible from react components.

To make custom variable vibible inside tsx files, define them in webpack via the DefinePlugin.

# webpack.config.js.. here you can read the process.env.variables from nodeconst PROCESS_ENV_NODE_ENV = process.env.NODE_ENV ? process.env.NODE_ENV : 'local';module.exports = {
...
new webpack.DefinePlugin({
...
'process.env.REACT_APP_ENVIRONMENT': JSON.stringify(PROCESS_ENV_NODE_ENV),
}),
...
};
The you can read them in react by accessing`process.env.REACT_APP_ENVIRONMENT`Note 1: In my current version, it didn't work with variable named PROCESS_ENV
Note 2: the prefix process.env is mandatory for the variable

--

--