Here is a simple apache config file reformatter I’ve knocked up: apachelint.
To use, just apachelint [conffile] > newconffile
It will clean up indentation and empty lines.
Here is a simple apache config file reformatter I’ve knocked up: apachelint.
To use, just apachelint [conffile] > newconffile
It will clean up indentation and empty lines.
If you are using emacs to edit Python with auto-complete enabled, you really should install smart-tab to intelligently toggle between indentation and completion.
Now, in 2014 Perl is considered rather embarrassing – but it is still widely used. I’ve wandered off the Perl path towards the seductive embrace of Python myself.
However, in some environments you cannot choose your toolset. I’m a big fan of Ansible and it has gone on from strength to strength with VC and a commercial operation behind it, but there are alternatives.
Rex is a similar tool to Ansible, but written in Perl. I’ve used it for a few basic tasks and here are some of its features:
Low Entry Requirements
On the “master” server side you need Perl 5.8.8 or greater (ie – the version that comes with Red Hat / Centos 5) and a small number of additional modules. On the client “target” side all you need is Perl.
For communication from master to target, it just uses ssh, like Ansible. No installing new daemons or opening up new firewall rules.
Works well with existing environments
As well as using existing ssh infrastructure, Rex can use ssh certificates (with or without ssh-agent) or username/password. It can enter your ssh private key passphrase or password for you. It can also use sudo on the remote box and enter the password for that too.
Open Source
Powerful
As Rex recipes are written in enhanced Perl, you can easily use other features of the language or other modules in your scripting.
Fast
Rex supports running tasks in parallel – you select how many threads you want running simultaneously.
Update: I asked in IRC whether it was possible to split groups for staging pushes – the author of Rex answered.
A tiny piece of SQL to update email addresses in a table where the domain is changing:
update aliases set emailaddr = concat(SUBSTRING_INDEX(emailaddr, '@', 1), '@newdomain.com') where emailaddr like '%@olddomain.com';
Very simple, but this has been hanging around in draft for ages and it may help someone.
Nimrod is a statically typed, imperative programming language that tries to give the programmer ultimate power without compromises on runtime efficiency. This means it focuses on compile-time mechanisms in all their various forms.
via Nimrod Programming Language.
I like the look of this – the syntax is python-esque and it outputs fairly small binaries.
Legit is a complementary command-line interface for Git, optimized for workflow simplicity.
Free Community Edition — for pure Python coding and learning Intelligent Editor, with code completion, on-the-fly error highlighting, auto-fixes, etc. Automated code refactorings and rich navigation capabilities Integrated debugger and unit testing support Native VCS integrations Customizable UI and key-bindings, with VIM emulation available And much more, all available under the Apache 2 license
via Python IDE & Django IDE for Web developers : JetBrains PyCharm.
2 new cloud computing OSes are interesting me lately: the first is CoreOS which is a ChromeOS fork (a minimal Linux distribution) designed to run Docker containers.
The second is more radical: OSv is designed from the ground up to execute a single application on top of a hypervisor, for example a Java Appserver.