Enable FTP Server in Mac OS X El Capitan

There’s no need to download an FTP server with OS X El Capitan.  Apple has embedded an FTP server than you can turn on easily!  

 

  P.S.  FTP is insecure, but sometimes you can’t avoid it!

Delete a route in Mac OS X Yosemite

I realized I had a post for how to add a static route, but didn’t have one for how to delete one…. So here ya go!  

How to Add a Route in Mac OS X Mavericks

Ever have need to access a network that your default gateway (router) doesn’t know about?  Just add the route via the CLI/Terminal on a Mac OS X running Mavericks! The command is sudo route -n add (network) (gateway)

Where is httpd.conf on Mac OS X Server?

Mac OS X Server is awesome! But it “hides” configuration files for some of the services it runs. Finding them can be a pain… This is the directory where OS X Server puts all of the relevant httpd.conf files: /Library/Server/Web/Config/apache2/sites/

Update JUNOS Config with Remote API slax/juise

Mike over at High on PHP recently showed everyone the coolest thing in the world …. How to run SLAX on JUNOS boxes remotely with JUISE…. Seeing this in action nearly made me pee my pants! Too COOL! I went through his setup with ease…once I upgraded my Linux distribution.  (It requires curl libraries that were … Continue Reading

Disable Adobe Reader for Safari PDFs

If you absolutely MUST have Adobe Reader installed on your Mac, you probably hate how Adobe takes over Safari.  So anytime you view a PDF in Safari, you’ll have to load an Adobe plugin and slow your computer down to a halt… Yep, Adobe is great at making crapware! To disable this junk, it’s super … Continue Reading

Show the entire contents of a file in Linux/Ubuntu/Mac

I’m primarily a Juniper engineer, so most of my commands are followed by ” | no-more”. If you’re like me, you probably like to print the entire contents of files/output and scroll up within the terminal. There’s a super easy command that will print the contents of a file to the screen. “cat” cat output.txt

Find files with matching content in Linux/Debian/Mac

Sometimes you have need to find all files with certain words in them.  If you’re on Linux/Debian/Mac, you can run a really simple command to find them! That command is “grep”. Here’s an example that recursively searches subfolders for “set groups node1” grep -iR ‘set groups node1’ * Here is the output:

Split large text files in Mac/Nix

Lets say you have a file full of passwords that is 62,000 lines and you want to chop the file into bite-sized pieces. There is an easy terminal command to help you with that! To split into multiple 1000 line files with a prefix of “SPLAT” here is the command: split -l 1000 textfile.txt SPLAT