You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)

Update: I now have a paid script that will set up a proper Ruby environment for you with a single command! I also updated my guide that explains the various ways you can install Ruby gems on a Mac and why I only recommend using a version manager like chruby and ruby-install. You are correct … Read more

How do I remove the “extended attributes” on a file in Mac OS X?

Use the xattr command. You can inspect the extended attributes: $ xattr s.7z com.apple.metadata:kMDItemWhereFroms com.apple.quarantine and use the -d option to delete one extended attribute: $ xattr -d com.apple.quarantine s.7z $ xattr s.7z com.apple.metadata:kMDItemWhereFroms you can also use the -c option to remove all extended attributes: $ xattr -c s.7z $ xattr s.7z xattr -h … Read more

Installing Homebrew on macOS

It’s on the top of the Homebrew homepage. From a Terminal prompt: /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)” The command brew install wget is an example of how to use Homebrew to install another application (in this case, wget) after brew is already installed. Historic… Before about 2020, the command given on the Homebrew page was: … Read more

Setting ANDROID_HOME enviromental variable on Mac OS X

Where the Android-SDK is installed depends on how you installed it. If you downloaded the SDK through their website and then dragged/dropped the Application to your Applications folder, it’s most likely here: /Applications/ADT/sdk (as it is in your case). If you installed the SDK using Homebrew (brew cask install android-sdk), then it’s located here: /usr/local/Caskroom/android-sdk/{YOUR_SDK_VERSION_NUMBER} … Read more

Is there a command like “watch” or “inotifywait” on the Mac?

fswatch fswatch is a small program using the Mac OS X FSEvents API to monitor a directory. When an event about any change to that directory is received, the specified shell command is executed by /bin/bash If you’re on GNU/Linux, inotifywatch (part of the inotify-tools package on most distributions) provides similar functionality. Update: fswatch can … Read more

No “Proceed Anyway” option on NET::ERR_CERT_INVALID in Chrome on MacOS

FYI: Chrome on MacOS treats this different than Windows. MacOS version won’t see the proceed button even you click advanced button. To still proceed the visit as you are sure this page is safe, here is a easy way to do: There’s a secret passphrase built into the error page. Just make sure the page … Read more

What does brew tap mean?

The tap command allows Homebrew to tap into another repository of formulae. Once you’ve done this you’ve expanded your options of installable software. These additional Git repos (inside /usr/local/Homebrew/Library/Taps) describe sets of package formulae that are available for installation. E.g. brew tap # list tapped repositories brew tap <tapname> # add tap brew untap <tapname> … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)