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
. | |
├── Makefile # (1) | |
└── terraform | |
├── aws | |
│ ├── Makefile # (2) | |
│ └── main.tf | |
└── heroku | |
├── Makefile # (3) | |
└── main.tf |
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
--- Makefile.orig 2020-03-26 22:38:05.000000000 +0900 | |
+++ Makefile 2020-03-26 22:39:57.000000000 +0900 | |
@@ -1,9 +1,10 @@ | |
+DIRENV := direnv | |
MAKE := make | |
TARGETS := aws heroku | |
define make-r | |
@for i in $(TARGETS); do \ | |
- $(MAKE) -w -C terraform/$$i $(1) || exit $$?; \ |
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
require: | |
- ./lib/rubocop/cop/hoge |
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
# @abstract One-shot 関連のジョブは必ずこの class を継承し、 | |
# キーワード引数に :global_executions を要求する #perform を実装すること | |
class OneshotBaseJob < ApplicationJob | |
class << self | |
# Retry the One-shot job due to the exception | |
# | |
# @param job [OneshotBaseJob] A One-shot job class to retry | |
# @return [void] | |
# | |
# @note See ActiveJob::Exceptions::ClassMethods#retry_on for the parameters except to `job` |
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
if (/esa\.io\/#path=%2FArchived%2F/.test(location.href)) { | |
location.href = location.href.replace(/#path=%2FArchived%2F/, '#path=%2F'); | |
} else if (/esa\.io\/#path=%2F/.test(location.href)) { | |
location.href = location.href.replace(/#path=%2F/, '#path=%2FArchived%2F'); | |
} |
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
machine: | |
environment: | |
PATH: $HOME/.terraform:$PATH | |
TERRAFORM_VERSION: 0.7.7 | |
dependencies: | |
cache_directories: | |
- ~/.terraform | |
pre: | |
- script/dependencies.sh |
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 | |
# You can get on https://api.slack.com/methods/emoji.list/test | |
endpoint='https://slack.com/api/emoji.list?token=<SECRET>&pretty=1' | |
json=$(curl -s $endpoint) | |
keys=$(echo $json | jq -r '.emoji | keys[]') | |
mkdir -p images |
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
remote: Compressing source files... done. | |
remote: Building source: | |
remote: | |
remote: -----> Node.js app detected | |
remote: | |
remote: -----> Creating runtime environment | |
remote: | |
remote: NPM_CONFIG_LOGLEVEL=error | |
remote: NODE_ENV=production | |
remote: NODE_MODULES_CACHE=true |
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
(defun my-lisp-load (filename) | |
"Load lisp from FILENAME" | |
(let ((fullname (expand-file-name (concat "spec/" filename) user-emacs-directory)) | |
lisp) | |
(when (file-readable-p fullname) | |
(with-temp-buffer | |
(progn | |
(insert-file-contents fullname) | |
(setq lisp | |
(condition-case nil |
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
# For issues | |
workflow "issues" { | |
on = "issues" | |
resolves = ["Add an issue to project"] | |
} | |
action "Add an issue to project" { | |
uses = "docker://masutaka/github-actions-all-in-one-project" | |
secrets = ["GITHUB_TOKEN"] |