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
<!DOCTYPE html> | |
<html><head> | |
<style> | |
/*! | |
* Bootstrap v2.2.1 | |
* | |
* Copyright 2012 Twitter, Inc | |
* Licensed under the Apache License v2.0 | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
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 | |
class Ipinfo_Module_Surrogate extends Ipinfo_Module | |
{ | |
/** external MySQL connection to apnscp.domains */ | |
private static $domain_db; | |
/** | |
* Legal DNS resource records permitted by provider | |
* A |
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 | |
handlers: | |
- name: Yell at chex | |
shell: >- | |
echo "Chex is a dummy" | |
tasks: | |
- name: Open port 85/TCP | |
firewalld: |
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
# Remove echo when you're ready for primetime | |
cpcmd -o json admin:collect '[mysql.enabled:1]' | jq -r 'keys[]' | while read SITE ; do | |
cpcmd -o json -d $SITE mysql:list-databases | jq -r 'values[]' | while read DB ; do | |
cpcmd -d $SITE -o json mysql:list-users | jq -r 'keys[]' | while read USER ; do | |
echo cpcmd -d $SITE mysql:set-privileges "'$USER'" "localhost" "'$DB'" "'[read:true,write:true]'" | |
done | |
done | |
done |
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"); | |
} |
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
#!/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
<?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
<?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 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']; | |
} |
NewerOlder