docker-compose build .
docker-compose up --detach
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 | |
/* | |
PHP Benchmark | |
Downloaded from: http://onlinephpfunctions.com | |
*/ | |
class benchmark | |
{ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="DISCOVR-e" default="full-build"> | |
<property name="basedir" value="."/> | |
<!-- Use this when the tools are managed by Composer in ${basedir}/vendor/bin --> | |
<property name="pdepend" value="${basedir}/bin/pdepend"/> | |
<property name="phpcpd" value="${basedir}/bin/phpcpd"/> | |
<property name="phpcs" value="${basedir}/bin/phpcs"/> | |
<property name="phpdox" value="${basedir}/bin/phpdox"/> | |
<property name="phploc" value="${basedir}/bin/phploc"/> | |
<property name="phpmd" value="${basedir}/bin/phpmd"/> |
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('./vendor/autoload.php'); | |
$finder = PhpCsFixer\Finder::create() | |
->notPath('vendor') | |
->in(__DIR__) | |
->name('*.php') | |
->ignoreDotFiles(true) | |
->ignoreVcs(true) |
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
Apache License | |
Version 2.0, January 2004 | |
http://www.apache.org/licenses/ | |
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | |
1. Definitions. | |
"License" shall mean the terms and conditions for use, reproduction, | |
and distribution as defined by Sections 1 through 9 of this document. |
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
/* See also https://github.com/sebastianbergmann/php-jenkins-template/issues/127 */ | |
pipeline { | |
agent any | |
stages { | |
stage('Prepare') { | |
steps { | |
sh 'composer install' | |
sh 'rm -rf build/api' | |
sh 'rm -rf build/coverage' |
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> | |
<!-- Most of this information comes from: | |
https://www.html5rocks.com/en/tutorials/webcomponents/template/ | |
Apple's propsal adds variables: | |
https://github.com/w3c/webcomponents/blob/gh-pages/proposals/Template-Instantiation.md | |
--> | |
<html> | |
<head> | |
<style> | |
.bordered { border: 1px solid #ddd; border-radius: 4px; } |
Rooting is not required. With USB cable connected, port 5555 opened across all involved firewalls and debug mode enabled
adb tcpip 5555
then look into wireless properties of your device and the network you use, to see which IP address have been granted to device (or configure your DHCP always to use the same for the device mac address). Then
adb connect 192.168.1.133
(were 192.168.1.133 is a sample IP address).
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
NOTE: This will only work on Raspian April 2017 or newer | |
**Before change:** | |
vcgencmd otp_dump | grep 17 | |
`17:1020000a` | |
/boot/config.txt (add to bottom): | |
program_usb_boot_mode=1 | |
**After change:** |