This file contains 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/ruby | |
require 'net/https' | |
re = Regexp.new('\bService\s*(?<svc>[^$]+)^$^\s*Date:\s*(?<date>.*?)$[\r\n]{1,2} | |
^\s*Action:\s*(?<action>.*?)$[\r\n]{1,2} | |
^\s*Host:\s*(?<host>(?<node>[^.]+).*?)$[\r\n]{1,2} | |
^\s*Description:\s*(?<desc>.*?)$', Regexp::MULTILINE|Regexp::EXTENDED) | |
# Take mail straight from STDIN |
This file contains 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/ruby | |
require 'net/https' | |
PO_TOKEN={{ PUSHOVER_TOKEN }} | |
PO_USER={{ PUSHOVER_USER }} | |
re = Regexp.new('\bService\s*(?<svc>[^$]+)^$^\s*Date:\s*(?<date>.*?)$[\r\n]{1,2} | |
^\s*Action:\s*(?<action>.*?)$[\r\n]{1,2} | |
^\s*Host:\s*(?<host>(?<node>[^.]+).*?)$[\r\n]{1,2} | |
^\s*Description:\s*(?<desc>.*?)$', Regexp::MULTILINE|Regexp::EXTENDED) |
This file contains 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
Vultr 2 GB, ATL, apnscp v3.0.32 | |
Apr 27 21:29:28 vultr sudo: =============================================================================== | |
Apr 27 21:29:28 vultr sudo: php/build-from-source ------------------------------------------------- 945.81s | |
Apr 27 21:29:28 vultr sudo: packages/install ------------------------------------------------------ 672.09s | |
Apr 27 21:29:28 vultr sudo: mail/webmail-horde ---------------------------------------------------- 362.28s | |
Apr 27 21:29:28 vultr sudo: software/passenger ---------------------------------------------------- 323.47s | |
Apr 27 21:29:28 vultr sudo: software/rbenv -------------------------------------------------------- 258.06s | |
Apr 27 21:29:28 vultr sudo: apnscp/initialize-filesystem-template --------------------------------- 142.00s | |
Apr 27 21:29:28 vultr sudo: clamav/support --------------------------------------------------------- 95.59s |
This file contains 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
diff --git a/conf/conf.d/director.conf b/conf/conf.d/director.conf | |
index 0024f9f..170f6b0 100644 | |
--- a/conf/conf.d/director.conf | |
+++ b/conf/conf.d/director.conf | |
@@ -32,8 +32,8 @@ Messages { | |
# tell (most) people that its coming from an automated source. | |
# | |
- mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r" | |
- operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r" |
This file contains 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 App\Models\MailConfig; | |
class Mozilla extends \App\Models\MailConfig { | |
public static function handle() { | |
$host = $_SERVER['HTTP_HOST']; | |
$mail_domain = str_replace('autoconfig.', '', $host); | |
if (isset($_GET['domain'])) { | |
$mail_domain = $_GET['domain']; | |
} |
This file contains 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 App\Models; | |
use App\Http\Controllers\ServerLookupController; | |
use Illuminate\Contracts\Support\MessageBag; | |
class MailConfig { | |
const MY_DOMAIN = 'hostineer.com'; |
This file contains 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 App\Models\MailConfig; | |
class Outlook extends \App\Models\MailConfig { | |
public static function handle() | |
{ | |
/*** Begin Configuration ***/ | |
// ActiveSync URL. | |
$_CONFIG['MobileSync']['Url'] = null;//"https://activesync.domain.com/Microsoft-Server-ActiveSync"; |
This file contains 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/sh -x | |
set -euo pipefail | |
BRANCH="${BRANCH:-master}" | |
APNSCP_HOME="/usr/local/apnscp" | |
LN="/usr/local/apnscp-${BRANCH}" | |
function mount_layer() { | |
mount -t overlay -o lowerdir=/usr/local/apnscp-layers/official:/usr/local/apnscp-layers/blank,upperdir=/usr/local/apnscp-layers/production-${BRANCH}/,workdir=/tmp $APNSCP_HOME $APNSCP_HOME | |
} |
This file contains 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
- hosts: localhost | |
gather_facts: no | |
vars: | |
subexpr: myvar | |
powerdns_driver: mysql | |
powerdns_config_file: /etc/pdns/pdns.conf | |
dict: | |
"a{{ subexpr }}-def": "C visible" | |
"myvar-b": "{{ subexpr_undef | default('foo') }}" | |
"myvar-c": >- |
This file contains 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 declare(strict_types=1); | |
function connect(string $user, string $pass) | |
{ | |
$host = '192.168.0.147'; | |
$errno = $errstr = null; | |
if (!($socket = fsockopen($host, 587, $errno, $errstr, 15))) { | |
die("Failed to connect to $host"); | |
} |
OlderNewer