I hereby claim:
- I am pschultz on github.
- I am pschultz (https://keybase.io/pschultz) on keybase.
- I have a public key whose fingerprint is B205 720D 1FCC CC80 938D 40E6 0C80 1A7A 602C FED2
To claim this, I am signing this object:
func GenCA(name string) (certPEM, keyPEM []byte, err error) { | |
now := time.Now().UTC() | |
tmpl := &x509.Certificate{ | |
SerialNumber: big.NewInt(1), | |
Subject: pkix.Name{CommonName: name}, | |
NotBefore: now, | |
NotAfter: now.Add(caMaxAge), | |
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth}, | |
KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign, | |
IsCA: true, |
I hereby claim:
To claim this, I am signing this object:
<?php declare(strict_types=1); | |
require 'library.php'; | |
public_library_function(); | |
services: | |
twig.extension.text: | |
class: Twig_Extensions_Extension_Text | |
tags: | |
- { name: twig.extension } |
<?php | |
/** | |
* LRU is a system which cache data used last recently. | |
* see more: http://www.slideshare.net/t_wada/tddbc-exercise | |
*/ | |
class LRU | |
{ | |
protected $_cache = array(); |
{ | |
"require": { | |
"ext-imap": "*", | |
"swiftmailer/swiftmailer": "~5.0" | |
} | |
} |
var parser = require('url'); | |
var handlers = {}; | |
var Handler = function(callback) { | |
this.process = function(req, res) { | |
params = null; | |
return callback.apply(this, [req, res, params]); | |
} | |
} |
package main | |
import ( | |
"encoding/json" | |
"log" | |
"net/http" | |
"os" | |
"time" | |
) |
diff --git a/lib/kitchen/provisioner/chef_base.rb b/lib/kitchen/provisioner/chef_base.rb | |
index 79235d4..bb4fccf 100644 | |
--- a/lib/kitchen/provisioner/chef_base.rb | |
+++ b/lib/kitchen/provisioner/chef_base.rb | |
@@ -102,9 +102,7 @@ module Kitchen | |
end | |
def init_command | |
- dirs = %w{cookbooks data data_bags environments roles}. | |
- map { |dir| File.join(config[:root_path], dir) }.join(" ") |
<?php | |
namespace Classmarkets\Api; | |
use Guzzle\Service\Command\OperationCommand; | |
class ItemCollection extends \Doctrine\Common\Collections\ArrayCollection | |
{ | |
// This is the method Guzzle is looking for | |
public static function fromCommand(OperationCommand $command) |