1
1
{% extends "base.html" %}
3
5
{% block pagetitle %}bashoneliners.com{% endblock %}
5
{% block pageheader %}bashoneliners.com{% endblock %}
7
{% block keywords %}bash, ksh, shell, script, one-liner, oneliner, tips, tricks, linux, unix, vote, rank, rss, open-source, django, python, bazaar, launchpad, collaborate{% endblock %}
9
{% 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, Bazaar, Launchpad, HTML5, Bootstrap from Twitter.{% endblock %}
7
{% block keywords %}{% endblock %}
9
{% block description %}{% endblock %}
11
11
{% block content %}
13
<p>Welcome to <strong>bashoneliners.com</strong>, a place for practical or just pure awesome bash <em>one-liners</em> or shell script tips and tricks for GNU Linux, UNIX or BSD systems.
14
You can post a bash one-liner to share it with the world,
15
or browse or search the one-liners contributed by others.</p>
17
<p>You can follow the latest bash one-liners via <a href="{% url oneliners.views.feeds %}">rss feeds</a> or on twitter <a href="https://twitter.com/#!/bashoneliners">@bashoneliners</a>.</p>
21
<ul class="nav nav-pills tags">
22
{% for tag in tagcloud %}
23
<li><a href="#">{{ tag.text }}</a></li>
14
O hi, we aim to collect here <strong>*good*</strong> bash/ksh oneliners.
15
We are in a very very early stage of development but we will progress rapidly.
18
<h3>Features in the making</h3>
21
<li>Create account, login. Members will be able to post oneliners.</li>
22
<li>Vote on a oneliner. Members will be able to vote up or down a oneliner.</li>
23
<li>Comment on a oneliner. Members will be able to comment on oneliners and make suggestions.</li>
26
<p>If you would like to participate in the development or if you would like an early member access to contribute oneliners, please let us know!</p>
30
{% for oneliner in oneliners %}
31
<div class="oneliner">
33
@<span>{{ oneliner.hacker.username }}</span>
34
on <span>{{ oneliner.created_dt }}</span>
36
{{ oneliner.get_votes_up }} <img src="/media/icons/thumbsup.png"/>
37
{{ oneliner.get_votes_down }} <img src="/media/icons/thumbsdown.png"/>
40
<pre>{% for line in oneliner.lines %}$ {{ line }}<br/>{% endfor %}</pre>
43
{{ oneliner.summary }}
46
{% if oneliner.explanation %}
47
<div class="explanation">
49
{{ oneliner.explanation|nst|safe }}
53
{% if oneliner.caveats %}
56
{{ oneliner.caveats|nst|safe }}
60
<div class="eof">### EOF ###</div>
29
{% include 'main/elements/oneliners_page.html' %}
34
function search_by_tag(text) {
36
url: '{% url oneliners.ajax.search_by_tag %}',
41
success: search_success
46
function search_success(html) {
47
$('.oneliners').html($(html).html());
48
$('.pagination').remove();
51
$('.tags a').click(function(e) {
53
$('.tags li.active').removeClass('active');
54
$(this).parent().addClass('active');
55
search_by_tag($(this).text());