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.
I’ve updated my system to the latest Mac OS 10.15.1 codenamed Catalina. Well, it broke a couple of apps that I use regularly, Audacity and OBS. There are currently no updates from Audacity. However, OBS has a workaround in terms of a test build. You have to download it, and set the system preferences to allow the Mac OS to access the cameras (webcam) and audio devices (microphones). There are no official releases yet from neither Audacity and OBS projects. Maybe in a couple of months.
Are the icons too big in MacOS Launchpad? You can customize them. Here are the commands.
# change the launchpad icon size by changing the columns and rows defaults write com.apple.dock springboard-columns -int 10 defaults write com.apple.dock springboard-rows -int 10 killall Dock # reset the launchpd defaults write com.apple.dock ResetLaunchPad -bool TRUE killall Dock # reset to defaults defaults delete com.apple.dock springboard-columns defaults delete com.apple.dock springboard-rows killall Dock |
# change the launchpad icon size by changing the columns and rows defaults write com.apple.dock springboard-columns -int 10 defaults write com.apple.dock springboard-rows -int 10 killall Dock # reset the launchpd defaults write com.apple.dock ResetLaunchPad -bool TRUE killall Dock # reset to defaults defaults delete com.apple.dock springboard-columns defaults delete com.apple.dock springboard-rows killall Dock
Etcher allows you to safely and easily burn images to SD and USB drives. It has a simple interface, and and exclusively available on the Mac OS platform. Burning an image has never been easy. Just select an image (ISO), select a drive, and flash the image.