Skip to content

Instantly share code, notes, and snippets.

version: '3.7'
services:
redis:
restart: always
image: sameersbn/redis:4.0.9-2
command:
- --loglevel warning
deploy:
# 巨大なリポジトリのバックアップを作ろうとするとBackup::Repositoryでエラーになるのでコネクションを明示的に取得するためのモンキーパッチ
# (lib/tasks/gitlab/backup.rake よりも後にloadされてほしいのでわざとz_を付与)
# https://gitlab.com/gitlab-org/gitlab-ce/blob/v12.2.4/lib/backup/repository.rb
# FIXME: gitlab-ceにMRを投げてマージされたら削除したい
task :backup_repository_monkey_patch do
module BackupRepositoryMonkeyPatch
MAX_RETRY_COUNT = 1
def backup_custom_hooks(project)
@sue445
sue445 / .gitlab-ci.yml
Last active June 23, 2019 06:25
Example: deployment gitpanda using GitLab CI c.f. https://inside.pixiv.blog/sue445/7256
stages:
- test
- deploy
.default: &default
image: sue445/awscli-all
variables:
GITPANDA_VERSION: v0.3.4
AWS_DEFAULT_REGION: ap-northeast-1
@sue445
sue445 / flowchart.svg
Last active March 17, 2019 23:39
六大異変攻略作戦 《輝く湖タークディアバーブ》のフローチャート (for PlantUML)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sue445
sue445 / git update
Created March 2, 2019 12:54
git update
#!/bin/sh -e
if [ -n "$1" ]; then
master=$1
else
master=`git remote show origin | grep 'HEAD branch:' | cut -d : -f 2 | tr -d '[[:space:]]'`
fi
current=`git branch | grep '*' | cut -f 2 -d ' '`
@sue445
sue445 / clash_log.txt
Last active December 30, 2018 10:52
SEGV on ruby 2.6.0 and 2.7.0-dev
Process: ruby [38736]
Path: /Users/USER/*/ruby
Identifier: ruby
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [12607]
Responsible: ruby [38736]
User ID: 501
Date/Time: 2018-12-30 19:37:37.242 +0900
@sue445
sue445 / README.md
Created December 3, 2018 11:31
CircleCIバグレポート下書き
@sue445
sue445 / README.md
Last active December 3, 2018 15:09
CircleCIに対する雑な要望

Registoryに欲しい機能

DockerHubと比べると色々足りてない

特定のorgやuserの一覧

ソースコード(GitHubなど)へのリンクを貼る場所

  • PRの送り先が分かりやすいと便利
  • registoryには書けない詳細な使い方をGitHubに書く用途
@sue445
sue445 / Gemfile
Last active August 20, 2018 03:26
gem "other_gem", github: "sue445/other_gem", branch: "rails_6_0"
-gem "rails", "5.2.0"
+gem "rails", "5.2.1"