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
#!/usr/bin/env python | |
# vim:fileencoding=utf-8 | |
import os | |
import requests | |
import datetime | |
import boto3 | |
from dateutil.relativedelta import relativedelta | |
dt = datetime.datetime.now() |
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
#!/bin/bash | |
if [ -z "${AWS_DEFAULT_PROFILE}" ]; then | |
export AWS_DEFAULT_PROFILE=default | |
fi | |
set -e | |
set -u | |
START_TIME=$(date -u +%Y-%m-%dT00:00:00Z -d "1 day ago") |
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
curl -sfL https://api.github.com/repos/nestjs/nest/git/refs/tags/ | jq -r ".[].ref" | perl -nle "s/^refs\/tags\/// && print if /^refs\/tags\/(v\d{1,2}\.\d{1,2}\.\d{1,2})$/" |
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
curl -sfL https://api.github.com/repos/vercel/next.js/git/refs/tags/ | jq -r ".[].ref" | perl -nle "s/^refs\/tags\/// && print if /^refs\/tags\/(v\d{1,2}\.\d{1,2}\.\d{1,2})$/" |
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
curl -sfL https://www.openssl.org/source/ | perl -nle 'print $1 if /<a href=\"openssl\-(.*)\.tar\.gz\">.*/' |
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
curl -sfL https://openresty.org/en/download.html |perl -nle 'print $1 if /<a href=\"https:\/\/openresty\.org\/download\/openresty\-(.*)\.tar\.gz\" .*>.*/' | sort -k1,1 -k2,2 -k3 -t"." -n |
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
curl -sfL https://nodejs.org/download/release/ | perl -nle 'print $1 if /^<a href=\"(.*)\/\">.*/' | egrep "^v" | sed -e "s/^v//" | sort -k1,1 -k2,2 -k3 -t"." -n | perl -nlpe 's/^(.*)$/v$1/' |
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
curl -sfL https://nginx.org/download/ | grep nginx | egrep -v "(patch|trace_process|.asc|.zip)" | perl -npe 's/^<a href=\"nginx\-(.*)\.tar\.gz\">.*/$1/' | sort -k1,1 -k2,2 -k3 -t"." -n |
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
curl -s "https://ip-ranges.amazonaws.com/ip-ranges.json" |jq -r '.prefixes | map(select(.service == "CLOUDFRONT").ip_prefix) | "set_real_ip_from" + " " + .[] + ";"' |
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
" バックアップ | |
set nobackup | |
"set noundofile | |
"set noswapfile | |
" タブの画面上での幅(rubyは2がよい) | |
" | |
set tabstop=4 | |
set shiftwidth=4 | |
" タブをスペースに展開する (noexpandtab:展開しない) |