Shell Tutorials
Address Validation API with streetlayer
There is so much of our web and eCommerce that consumers take for granted: payment types and validation, exchange rates, etc. One of the aspects of eCommerce that should be a given, from both a developer and consumer perspective, is address handling. We'd like to think the consumer enters...
Track Empty Directories with git
There are times when you'd like to track an empty directory within git but there's a problem: git wont allow you to add a directory that doesn't have a file in it. The easy solution is putting an empty stub file within the directory, and the industry...
Get Keychain Passwords from Command Line
One of my favorite command line utilities is Guillermo Rauch's wifi-password, a utility that allows you to get a saved password for the wifi network you're presently connected to (to share with colleagues or creeper in the cafe you're in). The idea of being able to...
Get Python Requirements Package Hashes
Python's (pip's)
requirements.txt
file is the equivalent topackage.json
in the JavaScript / Node.js world. Thisrequirements.txt
file isn't as pretty aspackage.json
but it not only defines a version but goes a step further, providing a sha hash to compare against to ensure package integrity: Coming from the JavaScript /package.json
world, you only need...currencylayer: Simple, Effective Currency Conversion
Every developer that's maintained an eCommerce site will tell you that being responsible for properly handling currency will tell you it can be a very stressful task. If you write buggy or insecure code, you're going to cost either your employer or the user money. An added complication for developers...
Continue Download with cURL
One of the most useful but least talked about utilities a developer has at their disposal is cURL. The cURL command line utility has been so amazing that Chrome lets you copy requests as cURL from the developer tools Requests panel. cURL lets you post form data, follow redirects,
Fix Bash Error in Docker
I really enjoy working with Docker because it gives me more insight into creating and maintaining your own environments, mostly from scratch. I instantly gained a greater appreciation for Ops engineers, package creators, and other engineers who work on low level software. I think what I'm trying to say is that...
Command Line Polling
In an ideal world, we wouldn't have to poll for anything; we would always have events to trigger other functions. This isn't an ideal world, however, so it's important to know how to poll in multiple programming languages. I've covered JavaScript polling (with and without...
Serve a Directory with Ruby
Quickly serving a directory using PHP, Node.js, or Python allows for quick testing with as little hassle as possible. Imagine having to stand up apache or another server just to serve a directory -- gross! Since I had touched the three important languages, I looked to...
Copy to Clipboard from Command Line
If you've ever been debugging with a fellow developer, you'll hear "OK, execute that and let me know what it says". In this case, you can either manually copy the output and instant message the text over to them, or you can write the output to file...