Install
brew install p7zip |
Extract
7z x file.7z |
Compress
7z a file.7z mydirectory |
cloud engineer
Install
brew install p7zip |
brew install p7zip
Extract
7z x file.7z |
7z x file.7z
Compress
7z a file.7z mydirectory |
7z a file.7z mydirectory
If you have a file with @ sign at end, this is how to remove extended attributes on the Mac OS.
Example.
ls -l -rwxr-xr-x@ 4 username staff 128 Mar 24 10:51 sample.txt |
ls -l -rwxr-xr-x@ 4 username staff 128 Mar 24 10:51 sample.txt
Remove extended attributes.
xattr -c sample.txt |
xattr -c sample.txt
Result
ls -l -rwxr-xr-x 4 username staff 128 Mar 24 10:51 sample.txt |
ls -l -rwxr-xr-x 4 username staff 128 Mar 24 10:51 sample.txt
Use Saml2Aws CLI as an alternative to SAML to AWS STS Key Conversion.
Install on Mac.
brew install saml2aws saml2aws --version |
brew install saml2aws saml2aws --version
Configure. Provide information.
saml2aws configure |
saml2aws configure
It will create a ~/.saml2aws config file. Set session to 8 hours.
aws_session_duration = 28800 |
aws_session_duration = 28800
Login.
saml2aws login |
saml2aws login
After authentication and/or MFA, your ~/.aws/credentials will be updated.
I tried running git after the Mac OS Catalina upgrade and got this error.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun |
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Here’s the fix. For some very odd reason, Apple does not automatically reinstall xcode after each Mac OS upgrade.
You will need to either reset it or install it again.
# Try reset first xcode-select --reset # Or install it if reset doesn't work xcode-select --install |
# Try reset first xcode-select --reset # Or install it if reset doesn't work xcode-select --install
Close your terminal, and reopen and run git again.
If you’ve recently upgraded your Mac to Catalina or Mac OS 10.15.1, you may have noticed that Audacity is no longer working. To get it working, you’ll need to download version Audacity 2.3.3. However, installing and running it normally the way you’ve done it in the past will not be enough. Because of Catalina, Audacity is not able to gain permissions to the microphone inputs. The only way I was able to get it working is to launch Audacity from the Terminal.
Launch Audacity from the Terminal.
# cd to Application directory cd /Applications/Audacity.app/Contents/MacOS # Run it in the background bash Audacity.sh & |
# cd to Application directory cd /Applications/Audacity.app/Contents/MacOS # Run it in the background bash Audacity.sh &
Click Ok if prompted to use the microphone.