Andrew Lee

scp

This command copies a file from your machine over SSH to a remote machine. Quotation marks are included to escape the folder name that has a space in it. Add -rp if you need to copy a directory:

  • r means recursive

  • p preserves modification times, access times, and modes from the original file

scp -rp /path/to/file-or-directory/ username@%hostname%:"/path\ to/destination"

Dotfiles

My code-related goal for this weekend was to get my dotfiles symlink’d and uploaded to GitHub for version control. This article was excellent at helping me get it setup.

Uninstall KACE Agent on Ubuntu

I had an issue come up at work and needed to remove the Dell KACE agent from one of our Ubuntu machines. I did some searching but couldn’t find the script via Google or ITNinja. I figured out the path, tested, and here it is:

sudo /opt/dell/kace/bin/AMPTools uninstall

Interesting Reads #1

Quick thoughts on working remotely:

  • My rMBP is mostly used in RDP mode - not using Apple’s hardware nearly at all for system administration due to a mostly Windows domain environment. Therefore, move to shell/RDP session for all sysadmin work for consistency . Maybe even move work-specific docs off the Mac and onto a server?

  • One year of solely working on an iPad.

Two great articles from Scott Hanselman:

Running BrowserSync with Jekyll

BrowserSync is a tool for injecting changes when working on your local site project and then refreshing your site on save. Perfect for designers/devs who need one tool for one job.

I couldn’t find any clear instructions on setting up BrowserSync with Jekyll alone (no Sass, no Grunt/Gulp) so here’s the command to get it working after you’ve gone through the install and you have changed directories to your projects folder root:

browser-sync start --proxy "localhost:4000" --files "_site/*.*"

This command will watch the entire _site directory rather then just your CSS folder. Note that you will still need to run the normal jekyll serve command in a separate Terminal tab or window, but your site will be viewable in the BrowserSync URL: localhost:3000.