The scenario:
- DNS zone
myzone.com
defined in BIND. - Authoritative name server at
123.16.123.1
. - Subzone
sub.myzone.com
with an authoritative name server at123.16.123.10
. - Wishing to forward sub-zone to authoritative name server.
<?php | |
/* Gets individual core information */ | |
function GetCoreInformation() { | |
$data = file('/proc/stat'); | |
$cores = array(); | |
foreach( $data as $line ) { | |
if( preg_match('/^cpu[0-9]/', $line) ) | |
{ | |
$info = explode(' ', $line ); | |
$cores[] = array( |
Unicode table - List of most common Unicode characters * | |
* This summary list contains about 2000 characters for most common ocidental/latin languages and most printable symbols but not chinese, japanese, arab, archaic and some unprintable. | |
Contains character codes in HEX (hexadecimal), decimal number, name/description and corresponding printable symbol. | |
What is Unicode? | |
Unicode is a standard created to define letters of all languages and characters such as punctuation and technical symbols. Today, UNICODE (UTF-8) is the most used character set encoding (used by almost 70% of websites, in 2013). The second most used character set is ISO-8859-1 (about 20% of websites), but this old encoding format is being replaced by Unicode. | |
How to identify the Unicode number for a character? | |
Type or paste a character: |
<?php | |
ini_set('max_execution_time', 0); | |
ini_set('memory_limit', -1); | |
$host = 'google.com'; | |
$ports = array(21, 25, 80, 81, 110, 143, 443, 587, 2525, 3306); | |
foreach ($ports as $port) | |
{ | |
$connection = @fsockopen($host, $port, $errno, $errstr, 2); |
<?php | |
################################################################################################## | |
################################################################################################## | |
## Description: PHP Download Controller ## | |
## Author: vanita5 <[email protected]> ## | |
## Date: Nov 2014 ## | |
## File: download.php ## | |
## Version: 1.0 ## | |
## ## | |
## ## |
<?php | |
/* | |
########################################################################## | |
# PHP Benchmark Performance Script # | |
# © 2010 Code24 BV # | |
# # | |
# Author : Alessandro Torrisi # | |
# Author : Sergey Dryabzhinsky # | |
# Company : Code24 BV, The Netherlands # | |
# Date : July 2, 2015 # |
#!/bin/sh | |
# cloudflareddns6.sh - dynamic dns IPV6 updater module for Synology | |
# | |
# Author: | |
# Cedric Mercier | |
# | |
# Version: | |
# 0.1 | |
# |
With heightening concern regarding the state of internet privacy (fuelled in part by the passing of the Investigatory Powers Act in the UK), I have set up a VPN server on the virtual server I have hosted with Mythic Beasts. This uses strongSwan and certificate-based IKEv2 authentication.
Assumptions:
debian.example.com
, a public IPv4 of 203.0.113.1
and a public IPv6 of 2001:db8::1
me
For automated deployment of a similar setup, albeit Ubuntu-based and using ansible for deployment, I recommend you take a look at Algo VPN. I used that project as a basis for my configuration.
#!/bin/sh | |
# CONFIGURABLE PARAMETER: PREFIX | |
# Set the prefix to the name of the rules that need to be updated. (Can update multiple rules with same name) | |
PREFIX=Web-ServerIPv6 | |
PREFIX_LEN=${#PREFIX} | |
# CONFIGURABLE PARAMETER: getIP | |
# Set your method of getting IPv6 address in here | |
# Current method is through ip neighbor with MAC address (Lowercase, :)(getIP=$(ip neighbor | grep "Your MAC Here" | grep -v "STALE" | cut -d" " -f1)) |
<?php | |
// This file walks you through the most common features of PHP's SQLite3 API. | |
// The code is runnable in its entirety and results in an `analytics.sqlite` file. | |
// Create a new database, if the file doesn't exist and open it for reading/writing. | |
// The extension of the file is arbitrary. | |
$db = new SQLite3('analytics.sqlite', SQLITE3_OPEN_CREATE | SQLITE3_OPEN_READWRITE); | |
// Errors are emitted as warnings by default, enable proper error handling. |