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
/** | |
* Validates a multi-dimensional array against a default "template" | |
* | |
* @param string $settingName | |
* @param array $templateArray | |
* @param array $newArray | |
* @param string $depth | |
*/ | |
private function validateArrayRecursively( | |
string $settingName, |
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
/** | |
* Validates a multi-dimensional array against a default "template" | |
* | |
* @param string $settingName | |
* @param array $templateArray | |
* @param array $newArray | |
* @param string $depth | |
*/ | |
private function validateArrayRecursively( | |
string $settingName, |
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 Liger implements Animal | |
{ | |
public function getSpecies(): LionTiger | |
{ | |
return new LionTiger(); | |
} | |
} |
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
user www-data; | |
# One worker process per CPU core. | |
worker_processes auto; | |
pid /var/run/nginx.pid; | |
pcre_jit on; | |
error_log /var/log/nginx/error.log warn; |
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
npm WARN www No description | |
npm WARN www No repository field. | |
npm ERR! path /var/www | |
npm ERR! code EACCES | |
npm ERR! errno -13 | |
npm ERR! syscall mkdir | |
npm ERR! Error: EACCES: permission denied, mkdir '/var/www' | |
npm ERR! { [Error: EACCES: permission denied, mkdir '/var/www'] | |
npm ERR! stack: 'Error: EACCES: permission denied, mkdir \'/var/www\'', |
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
SELECT CONCAT('ALTER TABLE `', TABLE_NAME, '` ', | |
GROUP_CONCAT(CONCAT('MODIFY COLUMN `', COLUMN_NAME, '` VARCHAR(191)')), ';') AS _alter | |
FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE TABLE_SCHEMA = 'mydatabase' | |
AND COLUMN_TYPE LIKE 'VARCHAR%' | |
AND CHARACTER_MAXIMUM_LENGTH = 255 | |
AND CHARACTER_SET_NAME = 'utf8mb4' | |
GROUP BY TABLE_SCHEMA, TABLE_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
# Validates that the version string is a valid Semantic Version Number | |
Validate.semver() { | |
local version="$1" | |
if [[ ! $version =~ ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$ ]]; then | |
die "Version, '$version', must be a valid semantic version (semver)" | |
fi | |
} |
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
# Gets the version label from the Dockerfile | |
getVersion() { | |
app="$1" | |
image="$2" | |
return version=$(awk -F= '$1 == "LABEL version" { print $2 }' "$LIB"/../../apps/$app/$image/Dockerfile) | |
} |
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
Verifying that "oojacoboo.id" is my Blockstack ID. https://onename.com/oojacoboo |
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
import * as React from 'react'; | |
import Header from '../component/Header'; | |
import Footer from '../component/Footer'; | |
interface HeaderFooterProps { | |
children: JSX.Element; | |
} | |
const HeaderFooter: React.StatelessComponent<HeaderFooterProps> = ({ children }) => | |
<div> |
NewerOlder