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 | |
phpinfo(); |
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 lang="en"> | |
<head> | |
<title>Blank HTML5 template with Bootstrap and JQuery framework</title> | |
<meta charset="utf-8"> | |
<meta name="description" content="Blank HTML5 template with Bootstrap and JQuery framework"> | |
<meta name="author" content="András Szabácsik"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,800&subset=latin-ext" rel="stylesheet"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta.2/css/bootstrap.min.css"> |
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
$json_string = file_get_contents ( 'php://input' ); | |
$object = json_decode ( $json_string ); | |
var_export ( $object ); | |
//http://php.net/manual/en/wrappers.php.php | |
//https://stackoverflow.com/questions/2731297/file-get-contentsphp-input-or-http-raw-post-data-which-one-is-better-to |
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 HTTP Server Configuration File for Docker Containerized Applications | |
LogLevel debug | |
ErrorLog /proc/self/fd/2 | |
CustomLog /proc/self/fd/1 combined | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /attached/artifact/public | |
LogLevel debug |
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
display_startup_errors = On | |
display_errors = On | |
error_reporting = E_ALL | |
log_errors = On | |
max_input_time = 30 | |
max_execution_time = 30 | |
memory_limit = 256M | |
post_max_size = 25M | |
upload_max_filesize = 50M | |
date.timezone = "UTC" |
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 | |
define ( 'SLACK_WEBHOOK', 'https://hooks.slack.com/services/' ); | |
function slack ( $message, $username, $channel ) | |
{ | |
switch ( $channel ) | |
{ | |
case 'delivery-form': | |
$token = '...'; | |
break; | |
} |
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
curl -X POST --data-urlencode "payload={\"channel\": \"#CHANNEL\", \"username\": \"USERNAME\", \"text\": \"MESSAGE\", \"icon_emoji\": \":frog:\"}" https://hooks.slack.com/services/TOKEN |
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
TZ="UTC" date +'%Y%m%d.%H%M%S%3N' | |
TZ="Europe/Budapest" date +'%Y.%m.%d. %H:%M:%S.%3N' |
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
zend_extension="/usr/lib/php/20170718/xdebug.so" | |
xdebug.remote_port=9000 | |
xdebug.remote_enable=1 | |
xdebug.remote_connect_back=0 | |
xdebug.remote_autostart=1 | |
xdebug.idekey = PHPSTORM | |
xdebug.default_enable = 0 | |
xdebug.profiler_enable = 1 | |
;remember to change this to your local ip address | |
xdebug.remote_host=10.0.75.1 |
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
image: php:7.2.7 | |
pipelines: | |
default: | |
- step: | |
script: | |
- apt-get update && apt-get install -y --no-install-recommends jq | |
- export TOKEN=... | |
- export API=https://.../ | |
- export TZ="Europe/Budapest" | |
- export TIME=$(date +'%Y.%m.%d. %H:%M:%S.%3N %Z') |
OlderNewer