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
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: AWS::Serverless-2016-10-31 | |
Description: > | |
Lambda Template | |
Globals: | |
Function: | |
Runtime: python3.10 | |
Timeout: 30 | |
Tracing: Active |
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
# | |
# IPアドレスで制限がかかっているWebサーバへ踏み台サーバを経由して接続する(CIなどでの利用を想定しています) | |
# | |
# 踏み台サーバの名前解決 | |
echo '172.16.0.1 bastion' >> /etc/hosts | |
# SSH鍵で接続できるように | |
eval $(ssh-agent -s) | |
mkdir -p ~/.ssh |
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/sh -eux | |
# /docker-entrypoint.d/100-crond.sh | |
# see https://docs.docker.com/config/containers/multi-service_container/ | |
busybox crond -f & | |
busybox crontab -l | |
exit 0 |
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
<source> | |
@type tail | |
path "/var/log/nginx/access.log" | |
tag nginx.access.log | |
<parse> | |
@type json | |
time_format %iso8601 | |
# time field を残すため | |
keep_time_key true | |
</parse> |
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 | |
namespace App\Console; | |
use Illuminate\Console\Command as BaseCommand; | |
use Illuminate\Support\Carbon; | |
use Illuminate\Support\Facades\Cache; | |
abstract class Command extends BaseCommand | |
{ |
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
server { | |
listen 80; | |
server_name localhost; | |
if ($time_iso8601 ~ "^(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})") {} | |
access_log /var/log/nginx/access-$year-$month-$day.log main; | |
location / { | |
root /usr/share/nginx/html; | |
index index.html index.htm; |
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
export CONTAINER_TASK_ID=$(curl -s ${ECS_CONTAINER_METADATA_URI}/task | jq -r '.TaskARN | split("/") | .[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
mkdir config | |
docker run -d --name gitlab-runner --restart always \ | |
-v ${PWD}/config:/etc/gitlab-runner \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
gitlab/gitlab-runner:latest | |
docker exec gitlab-runner gitlab-runner register \ | |
--non-interactive \ | |
--url "https://gitlab.com/" \ |
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
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-versions" | |
tap "homebrew/core" | |
brew "awscli" | |
brew "composer" | |
brew "git" | |
brew "htop" | |
brew "jq" | |
brew "mysql-client" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder