Jaime Gago Condensing Information Systems From the Vapor Of Data

8Jul/141

VIM / Bash Prompt Setup For Day to Day Systems Engineering (Git as VCS)

tl;dr: grab my GIST for VIM and bash prompt setup.

In these days of highly automated systems, I work with several languages/DSLs and environments, Ruby, vimlogoPython,Puppet,Ansible, YAML, JSON, Ubuntu,CentOS. In order to optimize my workflow,  I've customized my  VIM and prompt setup quite a bit (all with open source code) and so I thought to share it. I usually work from an Os X laptop (as my host for Linux VMs managed via Vagrant)thus I'm including a couple of tricks for iTerm2, finally some bash prompt goodness.

22Feb/121

VI and VIM:Automatic Headers For Shell Scripts

If you landed on this page chances are you already know what an automated header is, if not this post about how to create/edit shell scripts with VI/VIM and have an header automatically created and updated with timestamp on each edit.

I'm writing quite a bit of shell scripts using VIM lately and as a lazy system folk (main skill required by the trade ) I looked into a way to automate my headers. I found this post  on thegeekstuff.com (plenty of good resources, just don't like the spamy ads) but the example is for writing in C and /me != got C?. So I thought I would share here the simple modifications I did to original tutorial to have automated headers for my shell scripts:

29Jan/102

Automating Os X Server Backups Without 3rd Party Software

There are plenty of different options to backup Os X Server, including free tools like the excellent Mike Bombich’s Carbon Copy Cloner and Open Source ones like lbackup or amanda. Michael Dhaliwal has a pretty good paper that he updates and publishes on his company (i.e. district13 computing) website.

For various reasons not worth listing here I decided to come with my own design while relying exclusively on built in tools (e.g. launchd). I thought this might help other OS X Server Admins so here it is.

Filed under: Server Continue reading
22Dec/092

Apple Software Updates In A Business Environment

There are many ways to deal with Apple Software Updates, here’s the one I’m currently using with the Mac pool (300+) I am in charge of.

1)Automate the download from the mother ships aka Apple servers back to my home planet aka my LAN and make the updates available.

Filed under: Server Continue reading
4Dec/094

Network Bandwidth Testing At The Command Line

Whether when I’ve been designing networks for schools or BYOC parties , I’ve played with ethernet cables long Bangkok_traffic_by_g-hatenough to allow some custom tricks when it comes to bandwidth. The point of this post is *testing* not troubleshooting laaaaaaaaaag nor monitoring.

Nothing can truly emulate a bunch of hardcore gamers, leechers, hackers pushing your network to its limits but prior to opening your RJ45 gates you can certainly do some testing with the help of some command line tools and some basic scripting.

Filed under: Network Continue reading