Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
## prefs.js cleaner for Linux/Mac
## author: @claustromaniac
## version: 1.3
fQuit() {
## change directory back to the original working directory
echo -e "\n$2"
exit $1
# Maintainer: ohnonot-github
pkgname=conky
pkgver=1.11.3
pkgrel=99
pkgdesc='Lightweight system monitor for X'
url='https://github.com/brndnmtthws/conky'
license=('BSD' 'GPL')
arch=('x86_64')
makedepends=('cmake' 'docbook2x' 'docbook-xsl' 'man-db' 'git')
@ohnonot
ohnonot / search.twig
Created March 16, 2019 06:45
Simple search for picocms with inbuilt pagination
{% extends "index.twig" %}
{% set sstring = url_param('q','string' ) %}
{% block content %}
<div class="search_results" id="res">
<p class="small">The search function is primitive. It only searches for the literal string as entered.<br>
» fluffy cloud<br>
will search only the exact string<br>
» "fluffy cloud".<br>
Searches are case insensitive. Tags and some special characters are stripped.</p>
{% if sstring|length < config.tagblog.ssminlength %}
@ohnonot
ohnonot / printVolCont
Last active March 25, 2018 18:20
printVolCont - print ascii volume bar
#!/bin/bash
# printVolCont
# continuously print alsa or pulse master volume as ascii slider
# to be used with tint2 executor (example at the bottom).
# needs: awk, sed, grep, alsactl
# 2017/2018 by bronto, fixed by o9000