Categories
Command Line Scripting Tutorial

Batch Convert Images to PDF from Command Line

A friend asked me for a way to batch-convert images into PDFs. Instead of using online converters, here's a command-line solution using ImageMagick that works on both Mac and Linux. It converts all images in a folder to individual PDFs and optionally merges them into one file.

Categories
Development Tools Git Productivity

SCM Breeze: Supercharging Your Git Workflow

Introduction

I've been using Git for a few years now, and while it's an amazing tool, the command-line workflow can be tedious. How many times have you done this?

$ git status
# On branch master
# Changes not staged for commit:
#   modified:   app/controllers/users_controller.rb
#   modified:   app/views/users/show.html.erb
#   modified:   config/routes.rb

$ git add app/controllers/users_controller.rb
$ git add app/views/users/show.html.erb

All that typing! Especially when you have deeply nested file paths. I recently discovered a tool called SCM Breeze that solves this problem elegantly.

Categories
Development Tools Productivity Text Editors

Learning Vim: A Powerful Text Editor for Developers

Introduction

Every developer needs a good text editor. TextMate on Mac, Notepad++ on Windows, gedit on Linux – there are plenty of choices. But there's one editor that stands out: Vim.

Vim (Vi IMproved) is everywhere. It's on every Unix system, every Linux server, every Mac. SSH into a server and Vim is there. It's fast, powerful, and once you learn it, incredibly productive.