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
{% set key = 'something' %} | |
{% set variable = 'something else' %} | |
// What I expect is the value of 'something' to be passed, NULL is passed | |
{{ variable | custom_filter(key) }} | |
// This passes 'key' | |
{{ variable | custom_filter('key') }} | |
// outputs 'something' correctly |
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
rm -rf * | |
scott@home:/tmp/composer$ time composer require exussum12/xxhash | |
Using version ^1.1 for exussum12/xxhash | |
./composer.json has been created | |
Loading composer repositories with package information | |
Updating dependencies (including require-dev) | |
Package operations: 29 installs, 0 updates, 0 removals | |
- Installing sebastian/version (2.0.1): Loading from cache | |
- Installing sebastian/resource-operations (2.0.1): Loading from cache | |
- Installing sebastian/recursion-context (3.0.0): Loading from cache |
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
web: | |
image: nginx:latest | |
ports: | |
- "9991:80" | |
volumes: | |
- ./site.conf:/etc/nginx/conf.d/default.conf | |
links: | |
- php | |
php: | |
build: php |
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
#!/bin/bash | |
mkdir -p out | |
for i in $(seq 1 120); do | |
page=`printf "%04d" $i`; | |
wget "https://www.website/files/assets/common/page-html5-substrates/page${page}_4.jpg" | |
wget "https://www.website/files/assets/common/page-vectorlayers/${page}.svg" | |
convert -flatten -geometry 1149x2550 -fuzz 10% -transparent white -density 400 page${page}_4.jpg $page.svg out/$page.pdf |
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 | |
function finishRequest($responseCode) { | |
http_response_code($responseCode); | |
die(); | |
} | |
$storageDirectory = "upload"; | |
$fileName = $_GET['hash']; | |
if (!ctype_alnum($fileName) || strlen($fileName) < 5) { |