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.1.1 | |
pipelines: | |
default: | |
- step: | |
script: | |
- apt-get update && apt-get install -y unzip git rsync | |
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
- composer install | |
- php deploy.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
<?php | |
$servers = [ | |
['10.0.0.1', 11211], | |
['10.0.0.1', 11212], | |
]; | |
$id = 1; | |
$timeout = 50; | |
$mc = new \Memcached($id); |
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 |
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 | |
/** @var \Illuminate\Filesystem\FilesystemAdapter $fs */ | |
$fs = \Storage::disk('object_storage'); | |
/** @var \League\Flysystem\Filesystem $driver */ | |
$driver = $fs->getDriver(); | |
/** @var \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter */ | |
$adapter = $driver->getAdapter(); |
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
<?php | |
// application/config/hooks.php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
/* | |
| ------------------------------------------------------------------------- | |
| Hooks | |
| ------------------------------------------------------------------------- | |
| This file lets you define "hooks" to extend CI without hacking the core |
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 ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
// Store in `application/libraries/MY_Log.php` | |
// this class is adapted from system/libraries/Log.php | |
/** | |
* CodeIgniter | |
* | |
* An open source application development framework for PHP 5.1.6 or newer | |
* |
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
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
package common | |
import ( | |
"crypto" | |
"crypto/ecdsa" | |
"crypto/rsa" | |
"crypto/tls" | |
"crypto/x509" | |
"encoding/pem" | |
"fmt" |