Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl
use strict;
use warnings;
use feature qw(:5.10);
use utf8;
# ipはダミー
my $WEBARENA_IPV4 = "203.0.113.1";
my $RESULT_FILE = "./out/rsync.csv";
#!/usr/bin/perl
use strict;
use warnings;
use feature qw(:5.10);
use utf8;
use List::Util;
# ipはダミー
my $WEBARENA_IPV4 = "203.0.113.1";
my $WEBARENA_IPV6 = "2001:db8::1";
import {
CloudWatchClient,
PutMetricDataCommand,
} from "@aws-sdk/client-cloudwatch";
const cw = new CloudWatchClient({ region: "ap-northeast-1" });
async function putcloudwatch(name, count) {
const metricname = `${ENV}:${name}`;
const params = {
MetricData: [
<?xml version="1.0" encoding="UTF-8" ?>
<feedback>
<report_metadata>
<org_name>google.com</org_name>
<email>noreply-dmarc-support@google.com</email>
<extra_contact_info>https://support.google.com/a/answer/2466580</extra_contact_info>
<report_id>10525435579337670012</report_id>
<date_range>
<begin>1664064000</begin>
<end>1664150399</end>
#!/usr/bin/perl
use strict;
use warnings;
use feature qw(:5.10);
use utf8;
use JSON::PP;
use HTTP::Tiny;
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>slide</title>
</head>
<body>
<p>
<span id="val"></span>
<input type="text" size="4" id="input" />
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>slide</title>
</head>
<body>
<p>
<span id="val"></span>
<input type="text" size="4" id="input" />
FROM debian:bullseye
RUN apt-get update && apt-get install -y \
apt-transport-https ca-certificates gnupg curl openssh-client jq liburi-perl
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | \
tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \
apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && \
apt-get update -y && apt-get install google-cloud-sdk -y
apiVersion: apps/v1
kind: Deployment
metadata:
name: debug-container
labels:
app: debug
spec:
replicas: 1
selector:
matchLabels:
apiVersion: networking.gke.io/v1
kind: ManagedCertificate
metadata:
name: managed-cert
spec:
domains:
- budibase.example.jp
---
apiVersion: networking.gke.io/v1beta1
kind: FrontendConfig