Here’s a collection of one line commands that will start a local HTTP server for static files.
Source Code TODO Logs
This one-liner parses your source file for TODO comments after any comment indicator character(s) and prints the message by line number to the standard output stream.
Tagged Git Commit Log
Here is an awk augmented git log that will provide a list of your tagged git commits with an abbreviated commit hash and the subject of the commit.
Glue | a Terminal for Sublime Text
Glue is a plugin that provides an interface to your shell from the Sublime Text editor. It features command entry within the Sublime Text editor window, standard output display in an editor view, and it works with most system utilities. This includes any compiled or interpreted source that you develop which effectively allows you to create Sublime Text extensions in any programming language that your system supports.
Here’s how you get started with it.
PyDOC - Python Documentation Search From the Sublime Text Editor
PyDOC allows you to search Python 2 or Python 3 documentation for built-in Python modules, classes, methods, and functions that are selected in the Sublime Text editor. A browser window is launched (in your default browser), using your selected text as the query term for the Python 2 or Python 3 documentation.
A Simple Approach to Execute Ruby Scripts With Python
Here are a couple of examples that demonstrate how to execute Ruby scripts from a Python script with standard output and standard error stream handling on either the Ruby side or the Python side.
How to Open a File or Directory in the Atom Editor From the Command Line
You can use the atom executable to open a file or source directory in the GitHub Atom text editor.
Atom Editor Keyboard Shortcut Cheat Sheet
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.
TLDR | Community-Driven Concise Linux and Unix Man Pages
tldr is a community driven, open source project that aims to deliver a concise version of man pages for commonly used Unix and Linux commands.
Open the Current Working Directory in the Mac OSX Finder From the Command Line
Here is a simple command line one-liner that opens the current working directory in your Mac OSX finder.
A Simple Approach to Execute Node.js Scripts With Python
Here are two examples that demonstrate how to execute Node.js/JavaScript scripts from a Python script with standard output and standard error stream handling on either the JavaScript side or the Python side.
Naked Make | How to Stub a Python Command Line Application Project in Under Five Minutes
Naked is a brand new Python application framework that provides a wide range of features for command line application developers. This tutorial will demonstrate how to go from an empty directory to a complete directory structure with file stubs for development and distribution of a command suite application in under five minutes.
Status | Check HTTP Status Codes for GET and POST Requests
Status is an open source command line application that allows you to check HTTP status codes for GET and POST requests.
How to Get User Input From the Command Line in a Python Script
Here is an example Python command line script that demonstrates how to obtain data from the user with the Python 2 or 3 interpreter.
How to Maximize PNG Image Compression With advPNG
advPNG is a command line tool that is available as part of the AdvanceCOMP package. In my (admittedly very limited) testing, it had excellent compression ratios for a standard 100x100 pixel, 4x8 bits/pixel, RGB+alpha channel PNG image that was generated in Photoshop CS6 for Mac. Here are the compression level flags that are available so that you can carry out your own testing on the types of image files that you commonly use.
How to Make Adjacent File Group Panes With Sublime Text 3 to View and Edit Code in Multiple Files
Here is the Sublime Text 3 solution to display files in adjacent group panes so that you can you work on multiple files simultaneously with the files in view.
Shugr | a HTML Editor That Supports Rapid HTML Development With the Emmet Syntax
I released a web browser based HTML editor that allows you to rapidly develop with the Emmet toolkit. Here are a few examples that demonstrate how it simplifies the HTML development process.
Automated Python Source Distribution and Wheel Build With Push to PyPI
Here is a script that automates the Python source distribution and wheel release build process, then pushes your release to the Python Package Index.
Pip Installer | a Simple Pip Python Package Manager Installer
Pip Installer allows you to install the Python setuptools and pip packages on Unix (including Mac OSX) and Linux platforms with a single command.
Copy to and Paste From the Clipboard on the Mac OSX Command Line
You can access the clipboard from the Mac OSX command line with a set of copy and paste commands.
Make Your Sublime Text Caret Fade in and Out Rather Than Blink
With a simple addition to your Sublime Text User Settings, you can create a phasing caret in your editor.
Automated Ruby Gem Build and Deployment to Rubygems.org
Drop this shell script in your Ruby project and it will build and deploy your updated gem release when you run it. It allows you to either hard code the gem name in the script or pass the name in as an argument to the script.
Python Testing Assertion Methods
Here’s a complete list of the Python assertion methods that are available in the Python unittest module for versions 2 & 3 of the Python interpreter.
How to Use Grep to Find File Names With a Matching String
By default, grep displays the lines in one or more files that match your search string (or regular expression). Here is how you recursively search through a directory of files and list the name(s) of the files that contain a matching string instead of the matched line.
How to Detect Python Version 2 vs 3 in Your Script
Here is a way to build in the logic to deliver separate blocks of Python 2 and 3 code based upon the version of the Python interpreter that the user is running.
Six-Four | Base64 Encode and Embed Your Images in HTML, Markdown, and CSS Files
Six-Four is a command line tool that performs base64 encoding of image files and optionally embeds the data, with appropriate data URI formatting, into a user determined HTML, Markdown, or CSS file location.
How to Check HTTP Status Codes With cURL
Here is a shell one-liner that will pull the headers from a web server and display the HTTP/1.1 response status code(s).
Keep a Local Git Repository Synchronized With a Remote Git Repository
Here’s a shell script that will compare the SHA-1 commit ID’s between a local and remote Git repository, and then pull + fast forward merge any remote changes.
How to Automatically Reindent Code With Sublime Text
This doesn’t come with it’s own keyboard shortcut, but this helpful feature is available in Sublime Text and you can create your own key binding for it. Here’s how you do it.
How to Test for the Success of a Previous Command in a Bash Shell Script
This bash idiom captures the exit status code from the previous command that was executed. You can use it to confirm that the last command was successful in your shell script.
Multi-Select Editing With Sublime Text
This is at the top of my favorite Sublime Text features list. Use these keyboard shortcuts to find all instances of a string in a file and then simultaneously edit them. It’s a gem and works in versions 2 and 3 of Sublime Text.
Essential Git Commands | a Cheat Sheet for Git Version Control
A reference sheet that includes the most commonly used Git commands.
Automate Your Git Directory Initialization Workflow
Automate initialization of a directory with git, the initial tracking / staging of existing files, and your first commit with this script. A README.md and .gitignore file come as a bonus…
Compress an Entire Directory of CSS Files
Have an entire directory of CSS files that you need to compress after your most recent set of changes? Check out this YUI compressor + shell script combination.
How to Erase Segments of Text Relative to the Cursor Position on Your Bash Command Line
Further hone your command line chops with these shortcuts that will erase segments of text before or after your cursor position.