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
{"schemaVersion":1,"label":"Coverage","message":"40.6","color":"red"} |
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
CREATE TABLE IF NOT EXISTS `domains` ( | |
id INT AUTO_INCREMENT, | |
name VARCHAR(255) NOT NULL, | |
master VARCHAR(128) DEFAULT NULL, | |
last_check INT DEFAULT NULL, | |
type VARCHAR(6) NOT NULL, | |
notified_serial INT UNSIGNED DEFAULT NULL, | |
account VARCHAR(40) DEFAULT NULL, | |
PRIMARY KEY (id), | |
UNIQUE INDEX `name_index` (`name`) |
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
# source: https://github.com/tcely/dockerhub-powerdns/blob/e96732791a22595def6b2988c1368b0aee66de5d/authoritative/Dockerfile | |
# changes: | |
# 1. removed unused backends | |
# 2. use make -j$(nproc) to speed up deployment builds | |
# 3. compile with libmaxminddb-dev | |
FROM alpine AS builder | |
ARG AUTH_VERSION |
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
public interface MovableObject { | |
void move(); | |
} | |
public abstract class Animal implements MovableObject { | |
abstract public void walk(); | |
} | |
public class Human extends Animal { | |
@Override |
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 | |
$_SERVER['DOCUMENT_ROOT'] = ini_get('doc_root'); | |
$_SERVER['SCRIPT_FILENAME'] = str_replace($_SERVER['HOME'], '', $_SERVER['SCRIPT_FILENAME']); |
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
server { | |
listen 80; | |
server_name example.tld; | |
root /home/dir/web; | |
access_log /home/dir/var/log/nginx_access.log; | |
error_log /home/dir/var/log/nginx_error.log error; | |
location ~ \.php$ { | |
try_files $uri =404; |
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
[website1] | |
prefix = /home/dir | |
listen = var/fcgi/php.sock | |
listen.backlog = -1 | |
listen.allowed_clients = 127.0.0.1 | |
listen.mode = 0666 | |
user = tony |
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 | |
$string = 'put | |
the | |
ldd /path/to/convert | |
results | |
in | |
here'; | |
$array = explode("\n", $string); |
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 | |
require_once(dirname(__FILE__) . '/icc.php'); | |
class Darkroom { | |
public static $presets = array( | |
'tiny' => array( | |
'width' => 60, | |
'height' => 60 |
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 Settings extends Koken_Controller { | |
function __construct() | |
{ | |
parent::__construct(); | |
} | |
function index() |
NewerOlder