This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os, sys | |
import gi | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import Gtk | |
if len(sys.argv) < 2: | |
sys.stderr.write("Usage:\n") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export LC_ALL=C | |
readarray -t SCREENS < <(xrandr --listmonitors | grep "^ [0-9]\+: " | cut -d ' ' -f 6) | |
[[ ${#SCREENS[@]} > 0 ]] || exit 1 | |
CURBRIGHT="$(xrandr --current --verbose | awk 'on { if ($0 ~ /^\tBrightness: /) { print $2 } else if ($0 ~ /^\t/) { next } exit } /^[[:graph:]]+ connected primary/ { on=1 }')" | |
[ -n "$CURBRIGHT" ] && CURBRIGHT="$(bc 2> /dev/null <<< "scale=0; ($CURBRIGHT * 100)/1")" || CURBRIGHT=100 | |
function setbright { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- sh -*- | |
# Munin statefile support functions for munin shell plugins | |
# | |
: << =cut | |
=head1 NAME | |
plugin-statefile.sh - Munin statefile support functions for munin shell plugins | |
=head1 AUTHOR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
: << =cut | |
=head1 NAME | |
disks_ - Wildcard plugin to monitor filesystem usage | |
=head1 CONFIGURATION | |
This plugin does not normally require configuration. However, you can tweak its |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Pico assets modification time plugin | |
* | |
* Registers a Twig filter to add a asset's modification time. Pass a path | |
* to a file and it will return its corresponding URL with a time suffix. | |
* | |
* Example: | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Pico page modification time plugin | |
* | |
* Adds a page's last modification time to its page data. | |
* | |
* Example: | |
* | |
* ```twig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Parsedown figure extension | |
* | |
* Parsedown extension to wrap single-image lines in <figure>, not <p>. | |
* | |
* @author Krzysztof Antoniak | |
* @link https://gist.github.com/kantoniak/b1a5c7889e5583824487dc78d93da7cd | |
* @license Public Domain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creates a empty public lobby in Grand Theft Auto Online. | |
# by Daniel Rudolf <https://github.com/PhrozenByte> | |
# | |
# This PowerShell v3+ script suspends `GTA5.exe` for 8 seconds, causing | |
# GTA Online to create a empty public lobby. For undisturbed fun | |
# without modders, griefers and other pathetic pip-squeaks. | |
# | |
# License: | |
# Creative Commons CC0 | |
# <https://creativecommons.org/publicdomain/zero/1.0/deed> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 6to4-daemon - Establishing an IPv6 tunnel using 6to4 | |
# Copyright (C) 2011 Daniel Rudolf <http://www.daniel-rudolf.de/> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Pico redirect plugin | |
* | |
* Adds a `Redirect` meta header to redirect to other URLs. The meta header | |
* supports URL substitution variables, namely %base_url%, %plugins_url%, | |
* %themes_url%, %assets_url% and %theme_url%. | |
* | |
* Example: |