{% extends "base.html" %} {% block pagetitle %}bashoneliners.com{% endblock %} {% block pageheader %} bashoneliners.com {% if SERVER_NAME != 'www.bashoneliners.com' %} bashoneliners.com {% endif %} {% if SERVER_NAME != 'beta.bashoneliners.com' %} Try the BETA site {% endif %} {% endblock %} {% block keywords %}bash, ksh, shell, script, one-liner, oneliner, tips, tricks, linux, unix, vote, rank, rss, open-source, django, python, git, github, bazaar, launchpad, collaborate{% endblock %} {% block description %}A collection of practical or just pure awesome bash one-liners or shell script tips and tricks for GNU Linux, UNIX or BSD systems. Open, collaborative system, user friendly, with functions to contribute one-liners, request one-liners, search, rss feed, commenting, Open ID login. Open-source project, using Django, Python, jQuery, Git, GitHub, Bazaar, Launchpad, HTML5, Bootstrap from Twitter.{% endblock %} {% block content %}

Welcome to bashoneliners.com, a collection of high quality and well-explained bash one-liners that can be useful in GNU/Linux, UNIX, BSD, and similar systems. Post your cool bash one-liners to share with the world and promote scripting best practices. Or you can search our database of existing one-liners contributed by others.

Shell scripting can be an ugly business. It is easy to write quick and dirty, poor quality hacks that only a few hardcore hackers understand. Our goal is to gather high quality, clean, nicely written, well-explained one-liners that conform to today's best practices, and do something useful in real life. Either that, or pure awesome wicked cool one-liners can be OK too.

To get the latest bash one-liners, follow our rss feed or @bashoneliners on Twitter. If you discover problems, you can either report bugs on GitHub, or send an email to our public mailing list, or send us a private email.

The site is still pretty far from what we want it to be. Mainly we need more Django coders, but also reviewers and helpful comments on the not-so-well-written one-liners. At the minimum it would help a lot if you could spread the word and talk about this site on Twitter, Google+, Facebook, or your other social outlets. All of them. If you want to help with coding in Django, please take a look at our Source code page.

Tags

{% include 'oneliners/elements/oneliners_nav.html' %} {% include 'oneliners/elements/oneliners_page.html' %} {% endblock %} {% block ready %} var ordering = '{{ ordering }}'; var selected_tag; function search_by_tag() { var options = { url: '{% url 'oneliners.ajax.search_by_tag' %}', type: 'get', data: { 'tag': selected_tag, 'ordering': ordering }, success: search_success }; $.ajax(options); } function search_success(html) { $('.oneliners').html($(html).html()); $('.pagination').remove(); bind_comments_toggle(); bind_upvote(); //footer_fix(); bind_dblclick_to_select_oneliner(); } $('.tags a').click(function(e) { e.preventDefault(); if ($(this).parent().hasClass('active')) { selected_tag = null; $(this).parent().removeClass('active'); location.reload(); } else { $('.tags li.active').removeClass('active'); $(this).parent().addClass('active'); selected_tag = $(this).text(); search_by_tag(); } }); $('.nav-oneliners li a').click(function(e) { if (selected_tag) { e.preventDefault(); $('.nav-oneliners li').removeClass('active'); $(this).parent().addClass('active'); ordering = $(this).attr('data-ordering'); search_by_tag(); } }); {% endblock %}