Please refer to the new home of awstats-update
, https://github.com/PhrozenByte/awstats-update
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 | |
namespace PhrozenByte\MPDO; | |
use PDO; | |
use PhrozenByte\MPDOStatement; | |
use RuntimeException; | |
/** | |
* The MPDO class | |
* |
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 | |
SINK="$(pacmd list-sinks | awk '/* index: [0-9]+/{ print $3 }')" | |
# current volume snippet taken | |
# from pulseaudio-ctl <https://github.com/graysky2/pulseaudio-ctl> | |
# by graysky <[email protected]>, licensed under MIT | |
CURVOL="$(pacmd list-sinks | grep -A 15 '* index' | awk '/volume: /{ print $3 }' | grep -m 1 % | sed 's/[%|,]//g')" | |
[ -n "$CURVOL" ] || CURVOL="$(pacmd list-sinks | grep -A 15 '* index' | awk '/volume: front/{ print $5 }' | sed 's/[%|,]//g')" | |
[ -n "$CURVOL" ] || CURVOL=100 |
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 php | |
<?php | |
/** | |
* OpenVPN munin plugin | |
* Version 1.4 (build 20160206) | |
* | |
* SHORT DESCRIPTION: | |
* Monitors the number of connected OpenVPN clients and their bandwidth | |
* usage (server mode) or the payload and raw bandwidth usage of a client. | |
* |
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 php | |
<?php | |
/** | |
* ViMbAdmin munin plugin | |
* Version 2.4 (build 20190411) | |
* | |
* SHORT DESCRIPTION: | |
* Monitors the number of domains, mailboxes and aliases. | |
* | |
* DEPENDENCIES: |
Daemonize Multi Theft Auto (MTA) servers
- Install
screen
(e.g.apt-get install screen
) - Copy
mta-server
to/usr/local/bin
and make it executable - Copy
start-mta-server
andcleanup-mta-server
to your MTA server directory (default server should be at/opt/mta/default
) and make them executable
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 | |
# cron.daily.update-flashplugin-nonfree | |
# Version 2.2 | |
# | |
# SHORT DESCRIPTION: | |
# Daily cronjob executing Debian's `update-flashplugin-nonfree' command | |
# | |
# COPYRIGHT AND LICENSING: | |
# Copyright (C) 2014-2016 Daniel Rudolf <http://www.daniel-rudolf.de/> | |
# |
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
# | |
# /etc/cron.d/vimbadmin-mb-size | |
# schedules periodic execution of vimbadmin-mb-size script | |
# | |
# m h d m w user command | |
*/5 * * * * root [ -x /usr/local/bin/vimbadmin-mb-size ] && /usr/local/bin/vimbadmin-mb-size --database "vimbadmin" --quota-table "quota" |
NewerOlder