Assumes that path/to/subdir
is directory containing composer.json
and composer.lock
files.
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
------- Foo --------- | |
Expected: { | |
"under_me": [ | |
{ | |
"foo": "BAR" | |
}, | |
{ | |
"baz": "BAM" | |
} | |
] |
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
diff --git a/craft/app/etc/web/WebApp.php b/craft/app/etc/web/WebApp.php | |
index 7d68344..504007a 100644 | |
--- a/craft/app/etc/web/WebApp.php | |
+++ b/craft/app/etc/web/WebApp.php | |
@@ -118,6 +118,7 @@ class WebApp extends \CWebApplication | |
if ($validationKey = $this->config->get('validationKey')) | |
{ | |
$this->security->setValidationKey($validationKey); | |
+ $this->getComponent('securityManager')->setValidationKey($validationKey); | |
} |
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 | |
if ($argc < 2) fail(); | |
switch ($argv[1]) { | |
case "genkey": | |
printKey(); | |
break; | |
case "enc": | |
case "encrypt": | |
if ($argc != 4) fail(); |
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 | |
$secEnv = []; | |
function bootstrapSecEnv($key) { | |
global $secEnv; | |
foreach ($_SERVER as $name => $value) { | |
if (is_string($value) && strpos($value, 'ENC:') === 0) { | |
$secEnv[$name] = decryptEnv($key, substr($value, 4)); | |
} |
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
diff --git a/README.md b/README.md | |
index b971bc8..0c1a433 100644 | |
--- a/README.md | |
+++ b/README.md | |
@@ -40,11 +40,13 @@ $schemes = [ | |
'StorageClass' => 'REDUCED_REDUNDANCY', | |
], | |
- 'protocol' => 'https', // Will be autodetected based on the current request. | |
+ 'protocol' => 'https', // Will be autodetected based on the current request. |
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 | |
// app/Console/Commands/EncryptEnvCommand.php | |
namespace Ictus\Hub\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Encryption\Encrypter; | |
use Symfony\Component\Console\Input\InputArgument; |
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
#!/usr/bin/perl | |
# | |
# Freezes all versions found in glide.lock by setting commiot as version in glide.yaml | |
# for each package which does not explicitly has a version | |
# | |
use strict; | |
use warnings; |
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 | |
// composer require aws/aws-sdk-php ">=3" | |
require_once __DIR__ . "/vendor/autoload.php"; | |
$key = '{{your-aws-s3-key}}'; | |
$secret = '{{your-aws-s3-secret}}'; | |
$region = '{{your-aws-s3-region}}'; | |
$bucket = '{{your-aws-s3-bucket}}'; |
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
############################################################################### | |
# Hello ZERYNTH | |
# | |
# Created by ZERYNTH Team 2015 CC | |
# Authors: G. Baldi, D. Mazzei | |
############################################################################### | |
# import the streams module, it is needed to send data around | |
import streams | |
import requests |
OlderNewer