This post provides a step-by-step guide with a list of commands on how to install Couchbase Community Edition on macOS using Homebrew. Couchbase Server is a packaged version of Couchbase’s open source software technology and is available in a Community Edition.Continue reading
If you have ever needed to quickly decode or encode base64, Linux has a command line utility called base64 that works great. I’ll show you how it works!
To encode text to base64, use the following syntax:
$ echo -n 'codediary.net rocks' | base64 Y29kZWRpYXJ5Lm5ldCByb2Nrcw==
To decode, use base64 -d. To decode base64, use a syntax like the following:
$ echo -n Y29kZWRpYXJ5Lm5ldCByb2Nrcw== | base64 -d codediary.net rocks
Note: if on OS X, use capital D:
echo -nY29kZWRpYXJ5Lm5ldCByb2Nrcw== | base64 -D
netstat -vanp tcp | grep 3000
- For macOS and newer (or if your netstat doesn’t support
lsof -i tcp:3000
kill -9 <PID>
Saving screenshots to Drive automatically
- Create a new folder called “Screenshots” in your Google Drive.
- Open Terminal.
- Run the following commands:
defaults write com.apple.screencapture location ~/Google\ Drive/Screenshots/ killall SystemUIServer
Now screenshots will be saved to the Screenshots folder in your Google Drive, not the desktop.
The cleanup (
brew cleanup) command will remove outdated installed package versions. To affect a particular package/formula, you may supply a formula name like so:
brew cleanup $FORMULA. To simulate cleanup, i.e. see what would be removed, you may use the
brew cleanup -n.
When Popcorn Time was released, it quickly got popular because of its functionality of playing video files from torrents either in its on video player or in VLC Media Player or on TV through Chromecast. Currently, there are two versions of Popcorn Time on the web. The original Popcorn Time apart from streaming movies, also lets you play videos using Torrent links or Magnet links. This is one nice feature if you want to watch a video or movie that’s not in the app’s directory of movies or shows.
macOS Sierra 10.12.0
sudo killall -HUP mDNSResponder
Linux (depending on what you’re running)
/etc/init.d/named restart /etc/init.d/nscd restart