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
# Setting for job sequence. | |
# List up for job groups. | |
stages: | |
- upload | |
# Jobs | |
pdf: | |
# Setting for Docker image |
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 | |
// https://stackoverflow.com/questions/9261916/php-postgresql-pdo-copy-from-stdin より | |
function executeMetaCommand($dbUser, $dbName, $dbHost, $dbPort, $command) | |
{ | |
$command = sprintf( | |
"psql -U %s -h %s -p %s -d %s -f - <<EOT\n%s\nEOT\n", | |
$dbUser, $dbHost, $dbPort, $dbName, $command | |
); | |
$streams = array( |
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
using System; | |
using System.Collections.Generic; | |
using System.Windows.Forms; | |
using YamlDotNet.Serialization; | |
namespace yamltest | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() |
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
# Import the SDK | |
import boto3 | |
import datetime | |
import os | |
rds = boto3.client('rds', region_name='us-east-1') | |
db_instance_identifier = "mysql-db" | |
log_base_path = "./log/" |
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
var AWS = require('aws-sdk'); | |
require('date-utils'); | |
var db_instance_identifire = "mysql-db"; //RDSインスタンス名 | |
var log_base_path = "./log/"; | |
AWS.config.update({region:"us-east-1"}); | |
var rds = new AWS.RDS(); | |
//ログを取得 | |
var params = { |
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
exports.handler = (event, context, callback) => { | |
console.log('Received event:', JSON.stringify(event, null, 2)); | |
var message = event.Records[0].Sns.Message; | |
var sns_json = JSON.parse(message); | |
if (sns_json.notificationType == 'Bounce') { | |
sns_json.bounce.bouncedRecipients.forEach(function(bounce_mail){ | |
console.log("mail:" + bounce_mail.emailAddress); | |
}) | |
} |
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
FROM zabbix/zabbix-web-apache-pgsql:ubuntu-latest | |
USER root | |
RUN apt-get clean && apt-get update && \ | |
apt-get -y install fonts-ipafont && \ | |
rm -f /etc/alternatives/zabbix-frontend-font && \ | |
rm -f /usr/share/zabbix/assets/fonts/DejaVuSans.ttf && \ | |
update-alternatives --install /usr/share/zabbix/assets/fonts/DejaVuSans.ttf zabbix-frontend-font /usr/share/fonts/opentype/ipafont-gothic/ipagp.ttf 50 && \ | |
update-alternatives --set zabbix-frontend-font /usr/share/fonts/opentype/ipafont-gothic/ipagp.ttf && \ | |
chown -R www-data:www-data /usr/share/zabbix/assets/ && \ | |
chmod -R 744 /usr/share/zabbix/assets && \ |
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
# -*- coding: utf-8 -*- | |
# | |
# STS動作確認サンプルその2 | |
# 要 AWS SDK for Ruby V3 | |
require 'aws-sdk-core' | |
require 'aws-sdk-ec2' | |
require 'aws-sdk-s3' | |
require 'yaml' | |
require 'pp' |
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
# -*- coding: utf-8 -*- | |
# | |
# AWS Organizationsを利用したアカウント作成の自動化(https://aws.amazon.com/jp/blogs/news/account-management-automation-using-aws-organizations/) | |
# をRubyに焼き直していくつか改善したもの。 | |
# 要 AWS SDK for Ruby V3 | |
require 'aws-sdk-core' | |
require 'aws-sdk-organizations' | |
require 'aws-sdk-sns' | |
require 'aws-sdk-cloudwatch' |
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
# -*- coding: utf-8 -*- | |
# | |
# ACMに登録された証明書を出力するサンプルスクリプトです。 | |
# 要 AWS SDK for Ruby V3 | |
require 'aws-sdk-core' | |
require 'aws-sdk-acm' # V3になって個別ロードになった。 | |
require 'yaml' | |
require 'pp' |