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 ^~ /uploads/documents/ { | |
alias /volume/data/documents/; | |
set $auth_pass "$request_uri"; | |
auth_request /auth/documents; | |
auth_request_set $auth_status "$upstream_status"; | |
} | |
location ^~ /auth/ { | |
internal; | |
proxy_pass "http://back:8080/auth/$auth_pass"; |
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 | |
/** Collection handler for webpage content blocks | |
* | |
* @version SVN: $Id: PageUnitsCollection.php 1231 2018-08-11 19:40:50Z anrdaemon $ | |
*/ | |
namespace AnrDaemon\CcWeb\Helpers; | |
use | |
AnrDaemon\CcWeb\Objects\PageUnit; |
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 | |
namespace AnrDaemon; | |
class Xxx | |
implements \JsonSerializable, \Serializable | |
{ | |
public static function createFromState(array $state) | |
{ | |
$self = new static(); |
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 | |
/** Wrapper for actual thing that do the network talking. | |
This could be encapsulation for curl, Guzzle, Net\Browser, etc. | |
The wrapper offers a known stable interface to external library. | |
*/ | |
class Service\Api\Wrapper | |
{ |
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 | |
class Utility | |
{ | |
public function createValidator($spec) | |
{ | |
list($type, $name) = explode(":", $spec, 2) + ['', '']; | |
$options = ["default" => null]; | |
switch($type) | |
{ |
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 | |
namespace AnrDaemon\CcWeb; | |
use | |
AnrDaemon\CcWeb\Interfaces; | |
class SettingsManager | |
implements Interfaces\SettingsManager | |
{ |
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/sh | |
git status --branch --untracked-files=no --porcelain=2 | ( | |
while IFS=' .' read -r _s _b _name _value; do | |
[ "$_s" = "#" ] || break | |
if [ "$_b" = "branch" ]; then | |
case "$_name" in | |
head|upstream|ab) | |
eval "_$_name='$_value'" | |
;; |
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
@ECHO OFF | |
SET SERVER="%~dp0php-xdebug.btm" | |
:: PARAMETRIZE [name param] | |
ALIAS /L | |
ALIAS PARAMETRIZE=`SET __name=%1 %+ SET __value=%@REREPLACE[^^--.*?=,,%2] %+ IFF "%[__value]" != "%2" THEN %+ SET %[__name]=%[__value] %+ UNSET __name %+ ENDIFF %+ UNSET __value` | |
SET _enc=UTF-8 | |
SET _session=local | |
DO param IN /Q %$ "" |
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
[ | |
{ | |
"str": "Day {day}, " | |
}, | |
{ | |
"if": [ | |
{ | |
"var": "daytime" | |
}, | |
{ |