Here’s a collection of one line commands that will start a local HTTP server for static files.
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.
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 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 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.
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.
You can use the
atom executable to open a file or source directory in the GitHub Atom text editor.
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.
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.
Here is a simple command line one-liner that opens the current working directory in your Mac OSX finder.
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 is an open source command line application that allows you to check HTTP status codes for GET and POST requests.
Here is an example Python command line script that demonstrates how to obtain data from the user with the Python 2 or 3 interpreter.
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.
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.
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.
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 allows you to install the Python setuptools and pip packages on Unix (including Mac OSX) and Linux platforms with a single command.
You can access the clipboard from the Mac OSX command line with a set of copy and paste commands.
With a simple addition to your Sublime Text User Settings, you can create a phasing caret in your editor.
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.
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.
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.
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 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.
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).
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.
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.
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.
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.
A reference sheet that includes the most commonly used Git commands.
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…
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.
Further hone your command line chops with these shortcuts that will erase segments of text before or after your cursor position.