Brew Install Dropbox



Brew script for installing packages and applications on OSX. # Homebrew Script for OSX. # To execute: save and `chmod +x./brew-install-script.sh` then `./brew-install.

Dropbox requires a kernel extension to work. If the installation fails, retry after you enable it in: System Preferences → Security & Privacy → General. According to this discussion, it’s not allowed by homebrew but the homebrew-cask project enables users to install vagrant. (So.that’s. why I couldn’t get Chrome, Dropbox, 1Password, VLC and other apps installed view homebrew – there’s some rule or constraint in homebrew that only enables non-GUI apps.).

A few years back when then-15-year-old me just started learning software development I always hear about this “terminal,” along with its other counterparts—bash, command line, CLI, the command prompt—and how it’s so useful and how it makes a developer’s life easier.

Hugh Jackman in Swordfish—best hacking scene in a movie ever

Brew Install Dropbox

Since then I’ve always been intrigued and wanted to learn how to use and master it, but a few “Beginner Terminal Usage” tutorials later, I just can’t get to appreciate how a couple cd’s and pwd’s and ls’s would help me aside from looking cool (like a hacker in the movies). I mean isn’t that what Finder/Windows Explorer is for?

Fast forward a few years of professional software development experience later, terminal usage has become second nature to me (and should to you too!) and it definitely does make one’s life easier—and not just for programming!

This blog post is a love letter to “Past Me” who always wanted to be a command line fu master but just didn’t have any idea where to go next after the cd and pwd tutorials—an answer to a question he’s always asking: what real-life applications can I actually do with the terminal?

Version Control (Git)

Remember that time when you make changes to your source code but want to save a copy of the older file just incase you want to revert back to that version? Of course you do, you posted this on Facebook during college while working on a school project:

PROJECT, PROJECT - Copy, PROJECT - Copy (2), project_new, project_new2, project_newest, projecttest, LATEST, LATEST - Copy, LATEST - Copy (2), PROJECT_hardcopypass, PROJECTOFDOOM, projectofawesome, finalproject, backup of final, superfinalproject

Enter version control (a.k.a. source control), with Git being the most popular one. It solves that problem—you make “savepoints” of your code called commits and you can revert to them anytime. You usually then push your commits to a version control repository host like GitHub or GitLab.

SSH

Relevant XKCD.

SSH (Secure Socket Shell) is a way to access a remote computer through the terminal. Think of it as using the terminal of another computer, from your computer—how cool is that!

For example, you can use SSH to deploy your website to a server—you SSH into your Unix/Linux server, install and setup a LAMP stack, then clone the Git repository of your website’s source code into your server’s public HTML directory. From then on, you just do a git pull from your server everytime you push updates to your code—no need for those clunky time-wasting FTP GUI applications!

Edit text/source code files

When you edit files in your local computer you’d definitely use a text editor, right? What if you need to edit files from a remote server via SSH like config files for instance? Well there’s Vi/Vim for that, a text editor for the command line.

It’s got a lot of powerful features and keybindings, and the learning curve is pretty steep, but it’s all worth it and just takes a bit of practice and habit before you actually master it.

Source: vimgifs.com

P.S. Other alternatives include nano and emacs, but you’ll probably want to just stick with Vim for now, trust me. And you don’t want to get into those vim vs. emacs wars, too!

Install utilities with a package manager

Homebrew is a package manager for macOS, equivalent to Linux’s apt. Basically, like what it says on their website, it installs stuff you need that Apple didn’t. And it’s really simple too! To install Node.js on your system for example, you just do:

And that’s it! No more messy installers and reading installation guides and stuff.

While we’re at it and installed node, there’s also npm, a package manager for Node modules. Npm modules are usually used (but not limited) for Node.js and front-end web development, like SASS/LESS compilers or linters. You’ll learn more about it as you start learning more about the Node environment.

Install apps

Speaking of Brew, there’s a special Brew utility extension called Cask. You know how when you download macOS apps, you’d open the .dmg file and drag the icon to the Applications folder? Well with Cask, you can install these apps directly through the terminal with just one command, like you would with brew packages!

To see the list of available casks, check out their website.

Efficiently Batch-Delete/Update Files

Want to delete all .jpg files?

Want to move all PDF files from the Downloads folder to the Desktop?

Want to copy files whose filenames contain the string document to Documents folder?

You get the point. For everything else, a simple AskUbuntu or SuperUser search will most likely net you an answer.

Download YouTube videos

Yep! No need to use those clunky unreliable YouTube converter thingy websites.

There’s a lot of options as well, like choosing the video quality and formats. Check out the documentation for more.

Install

Convert Videos

While we’re on the topic of videos: ffmpeg is a really handy tool for working with videos. Here are a few examples:

Convert a .mov video to mp4:

Brew Install Dropbox

Extract audio from the video:

Print silly ASCII art—with rainbow colors!

And finally, we’re down to the most important commands!

Or just pipe everything!

How can you say no to the power of the terminal with that?!

Brew Install Dropbox

Conclusion

“Woohoo! I’m a command line expert now! What do I do next?”

Good for you! You might want to:

Brew Install Dropbox App

  • learn more about dotfiles
  • check out some cool commands and tricks at commandlinefu.com
  • try pimping your terminal with ZSH which is another kind of shell (the default one is Bash)
  • or try mastering Vim

Good luck!

Brew Install Dropbox Free

— Alphonsus





Comments are closed.