Category: Command-line Interface
-
Switching from tmux to GNU Screen
I’m was a bit late to the terminal multiplexer game. I had used GNU Screen on servers here and there to be able to keep tabs on long running processes but it wasn’t until this past year that I decided to start using tmux full-time locally. Why tmux if I…
-
Using ssh-copy-id with an alternate SSH port
If you’re anything like me, you’re somewhat paranoid security-minded. Because of this, you’ve most likely moved the SSH port on your server(s) to something other than the standard port 22. Nothing wrong with a little bit of security through obscurity on top of all of the other crap you’ve done…
-
How to install Tmux 2.x on Debian 8 “Jessie”
I’m happy to admit that I’m a bit of a Debian novice. Coming from a decade of using Ubuntu, I still have a bit to learn. My recent dilemma was with the version of tmux I had on one of my servers. Nothing wrong with tmux 1.9 but it was…
-
You may not need Oh My Zsh
I’ve been on pursuit of less with my dotfiles. This isn’t about me hating Oh My Zsh, it’s just about relying on less code. Less code means less bugs. Less code usually means faster execution. It means more control. In turn, more control means more time researching and learning. More…
-
How to pull from git
Had a peculiar request on one of my posts asking for a tutorial on how to pull from git. To be honest, I’m not entirely sure if the comment was just trolling or what, but figured may as well do a post on it. Cloning a repository If you want…
-
Intentional infinite loops
It’s happened to all of us. A script just locks up and we’re unsure why. At closer inspection we find that we’re written a loop that has no terminating condition. It is an endless loop and in many cases consumes memory until it crashes. But what if you want to…
-
Forcing yourself to use shell aliases
Fact: Shell aliases save you time. Fact: Saving time increases your productivity. Fact: Everybody wants to be more productive. Fact: Retraining muscle memory can be a pain in the ass. I have been fighting that last fact for a while now. I have the single character alias v pointed to…
-
Using Keyring Access on the OSX Command-line
If you’re like me, you probably have a private dotfiles that supplements your public dotfiles repository. It contains private values like API keys and [hopefully not] plaintext passwords. There’s even a good chance you’re using git submodules or a setup script to manage the inclusion of the private stuff. Well…
-
Command line all the things!
The start of 2014 has been an exercise in going back to basics for me. I’ve been re-evaluating my workflows when hacking and attempting to streamline as much as humanly possible. This has resulted in a ton of new aliases in an attempt to get my common CLI commands down…
-
Getting PHP’s version from the command-line
As you may already know, obtaining the version number of PHP is a simple php –version away. This is great if you just want to see the version number, but what if you wanted just the version number? First option would be to use write out some shell script to…