PG+PGPOOL docker compose file
version: '2'
networks:
my-network:
driver: bridge
services:
pg-0:
# How to use | |
# Make sure you install curl. By running curl -v to test it. | |
# Provide your Gmail username and password and who you need to send email to. | |
# For password it is not your Gmail password but it is App passwords https://support.google.com/mail/answer/185833. Please go to your Gmail account setting and create it. | |
# chmod -R 777 send-email-gmail-thai.com | |
# ./send-email-gmail-thai.com | |
# Your Gmail username (email) (Required) | |
SENDER_GMAIL_USERNAME= | |
# Your App password (Required) |
# How to use | |
# Make sure you install curl. By running curl -v to test it. | |
# Provide your Gmail username and password and who you need to send email to. | |
# For password it is not your Gmail password but it is App passwords https://support.google.com/mail/answer/185833. Please go to your Gmail account setting and create it. | |
# chmod -R 777 send-email-gmail.com | |
# ./send-email-gmail.com | |
# Your Gmail username (email) (Required) | |
SENDER_GMAIL_USERNAME= | |
# Your App password (Required) |
function getJSON(aUrl,sheetname) { | |
//var sheetname = "test"; | |
//var aUrl = "http://pipes.yahoo.com/pipes/pipe.run?_id=286bbb1d8d30f65b54173b3b752fa4d9&_render=json"; | |
var response = UrlFetchApp.fetch(aUrl); // get feed | |
var dataAll = JSON.parse(response.getContentText()); // | |
var data = dataAll.value.items; | |
for (i in data){ | |
data[i].pubDate = new Date(data[i].pubDate); | |
data[i].start = data[i].pubDate; | |
} |
FROM php:7-fpm-alpine | |
RUN apk --update add --virtual build-dependencies build-base openssl-dev autoconf \ | |
&& pecl install mongodb \ | |
&& docker-php-ext-enable mongodb \ | |
&& apk del build-dependencies build-base openssl-dev autoconf \ | |
&& rm -rf /var/cache/apk/* | |
# Time Zone | |
RUN echo "date.timezone=${PHP_TIMEZONE:-UTC}" > $PHP_INI_DIR/conf.d/date_timezone.ini |
package main | |
import ( | |
"bytes" | |
"crypto/aes" | |
"crypto/cipher" | |
"encoding/hex" | |
"fmt" | |
) |
PG+PGPOOL docker compose file
version: '2'
networks:
my-network:
driver: bridge
services:
pg-0:
ini_set('soap.wsdl_cache_enabled', 0); | |
ini_set('soap.wsdl_cache_ttl', 900); | |
ini_set('default_socket_timeout', 15); | |
$params = array('param1'=>$param1); | |
$wsdl = 'http://service_url/method?WSDL'; |
<?php | |
/** | |
* CodeBook.php | |
* @version 0.2.1 | |
* @see http://0-oo.net/sbox/php-tool-box/code-book | |
* @copyright 2009-2011 [email protected] | |
* @license http://0-oo.net/pryn/MIT_license.txt (The MIT license) | |
*/ | |
class CodeBook { | |
/** PKCS#5でパディング */ |
<?php | |
class Aes | |
{ | |
private static $key = 'your_key'; | |
private static $iv = 'your_iv'; | |
public static function encrypt($data) | |
{ |