This file contains hidden or 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
:Location /*.php | |
Use php74 | |
:Location | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Determine the RewriteBase automatically and set it as environment variable. | |
# If you are using Apache aliases to do mass virtual hosting or installed the | |
# project in a subdirectory, the base path will be prepended to allow proper |
This file contains hidden or 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 | |
//data taken f.e. from https://mockaroo.com/ | |
$data = file_get_contents('./data/MOCK_DATA.json'); | |
$arr = json_decode($data, true); | |
$pdf = new TCPDF('P', PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); | |
$pdf->addPage(); | |
$pdf->SetAutoPageBreak(true); | |
$pdf->SetY(150); | |
$pdf->SetMargins(15,20,20,TRUE); | |
$last_y = $pdf->GetY(); |
This file contains hidden or 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
version: '2' | |
services: | |
php: | |
image: drupal:8-apache | |
ports: | |
- "8080:80" | |
volumes: | |
- ./:/var/www/html | |
networks: |
This file contains hidden or 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
set guifont=IBM\ Plex\ Mono\ 17 | |
colo gruvbox | |
syntax on | |
filetype on " Enable filetype detection | |
filetype indent on " Enable filetype-specific indenting | |
filetype plugin on " Enable filetype-specific plugins | |
set nocompatible " not compatible with the old-fashion vi mode | |
set bs=2 " allow backspacing over everything in insert mode | |
set history=50 " keep 50 lines of command line history | |
set ruler " show the cursor position all the time |
This file contains hidden or 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
version: '2' | |
services: | |
#PHP Service | |
app: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
image: digitalocean.com/php | |
container_name: app |
This file contains hidden or 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 | |
function arkowy_update_7001() { | |
module_enable(['workbench_feature'], true); | |
} | |
function arkowy_update_7002() { | |
module_enable(['workbench_feature'], true); | |
} | |
function arkowy_update_7003() { |
This file contains hidden or 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
version: '2' | |
services: | |
mongodb: | |
image: bitnami/mongodb:4.1-ol-7 | |
volumes: | |
- mongodbdata:/bitnami | |
# ports: | |
# - '27017:27017' | |
web: | |
image: node:8.12-alpine |
This file contains hidden or 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
#!/bin/bash | |
if [ $# -ne 1 ]; then | |
echo "usage: ./publish.sh \"commit message\"" | |
exit 1; | |
fi | |
vendor/bin/sculpin generate --env=prod | |
if [ $? -ne 0 ]; then echo "Could not generate the site"; exit 1; fi |
This file contains hidden or 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 | |
/** | |
* @file | |
* Routing-script for the built-in PHP web server. | |
* | |
* The built-in webserver should only be used for development and testing as it | |
* has a number of limitations that makes running Drupal on it highly insecure | |
* and somewhat limited. | |
* | |
* In particular be aware that: |
This file contains hidden or 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
<i18n> | |
{ | |
"pl":{ | |
"email": "Adres email", | |
"password": "Hasło", | |
"send" : "Wyślij", | |
"reset": "Resetuj" | |
}, | |
"en":{ | |
"email": "Email address", |
NewerOlder