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 | |
/** | |
* $php -S localhost:8088 server.php | |
*/ | |
error_log(file_get_contents('php://input')); | |
echo "OK"; |
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/bash | |
# | |
# Usage | |
# $ source <(./set-session-token.sh arn:aws:iam::123456789012:mfa/msysyamamoto 123456) | |
# | |
serial_number=$1 | |
token_code=$2 | |
unset AWS_ACCESS_KEY_ID | |
unset AWS_SECRET_ACCESS_KEY |
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
sub | group | pre | post | |
---|---|---|---|---|
1 | control | 35 | 40 | |
2 | control | 40 | 23 | |
3 | control | 39 | 28 | |
4 | control | 18 | 46 | |
5 | control | 22 | 47 | |
6 | control | 41 | 42 | |
7 | control | 41 | 27 | |
8 | control | 47 | 33 | |
9 | exp | 35 | 36 |
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import re | |
RED = '\033[31m' | |
END = '\033[0m' | |
BOLD = '\033[1m' | |
def emphasis_print(text): |
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
/** | |
* Show value of networkaddress.cache.ttl | |
*/ | |
public class NetworkaddressCacheTtl { | |
public static void main(String[] args) { | |
System.out.println( | |
String.valueOf( | |
sun.net.InetAddressCachePolicy.get() | |
) | |
); |
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
resource "aws_elastic_beanstalk_environment" "sample_env" { | |
setting { | |
namespace = "aws:elasticbeanstalk:application:environment" | |
name = "DATASOURCE_PASSWORD" | |
value = "${data.aws_ssm_parameter.rds_password.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
ExUnit.start | |
ExUnit.configure [exclude: :case] | |
defmodule SampleTest do | |
use ExUnit.Case | |
test "this is sample" do; :ok end | |
end |
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 SomeClass | |
{ | |
public function doSomething() {} | |
} | |
class SomeTest extends PHPUnit_Framework_TestCase | |
{ | |
/** | |
* @dataProvider provider |
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
import Data.Array | |
data Dir = ToY | ToZ | |
deriving (Eq, Ord, Enum, Ix) | |
data Node = Y | A | B | C | Z | |
deriving (Eq, Ord, Enum, Ix) | |
data Stat = Stat Int Dir Node | |
deriving (Eq, Ord, Ix) |
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
defmodule HelloPhoenix.Memcached.Supervisor do | |
use Supervisor | |
def start_link do | |
Supervisor.start_link(__MODULE__, []) | |
end | |
def init([]) do | |
pool_options = [ | |
name: {:local, :memcached_pool}, |
NewerOlder