あまりCPU負荷のかかってないVPSなどにいれて、ウィルスの解析に役立てましょう。
$ wget https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v7.5/fahclient_7.5.1_amd64.deb
$ sudo dpkg -i fahclient_7.5.1_amd64.deb
SSHのポートフォワードを使うと便利です。
#!/usr/bin/env perl | |
# ----------------- | |
# コンテナの/app/log/production.logに特定文字列がでてきたらSlackCatをつかって通知する | |
# 実行 nohup ./log-monitor.pl & | |
# ----------------- | |
use feature 'say'; | |
use strict; | |
use warnings; | |
$|=1; |
#!/bin/bash | |
set -eu | |
# 実行ファイルのあるディレクトリ | |
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
# 実行ファイルの一階層下のディレクトリ | |
# BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" | |
# 実行可能コマンド |
#!/bin/bash | |
set -eu | |
# ECRにログイン | |
# Version2にはレポジトリパスが必要 | |
ecr_login() { | |
local awscli_version="$( aws --version | perl -nlE 'say $1 if (m#aws-cli/(\d)\.#)' )" | |
case "$awscli_version" in | |
"1" ) | |
aws ecr get-login --no-include-email --region ap-northeast-1 | sh |
RUN set -xe && \ | |
curl -Lo /tmp/node.tar.xz https://nodejs.org/dist/v12.16.2/node-v12.16.2-linux-x64.tar.xz && \ | |
curl -Lo /tmp/yarn.tar.gz https://yarnpkg.com/latest.tar.gz && \ | |
tar Jx --strip-components 1 -f /tmp/node.tar.xz -C /usr/local && \ | |
tar zx --strip-components 1 -f /tmp/yarn.tar.gz -C /usr/local && \ | |
rm /tmp/node.tar.xz && \ | |
rm /tmp/yarn.tar.gz |
#!/bin/bash | |
set -eu | |
get_meta_data() { | |
curl --retry 3 --silent --fail http://169.254.169.254/latest/meta-data/$1 | |
} | |
PUB_MAC=$( get_meta_data mac ) | |
for i in $( ls /sys/class/net ); do | |
if [ "$i" == "lo" ]; then continue; fi |
https://nextjs.org/learn/basics/getting-started/setup
$ mkdir hello-next && cd hello-next
$ yarn init -y
$ yarn add -D react react-dom next
$ mkdir pages
$ cat > tmp << 'EOS'