Skip to content

Instantly share code, notes, and snippets.

View tarumzu's full-sized avatar
☀️
ほどほどにやれることをやりきる

Wataru Mizukami tarumzu

☀️
ほどほどにやれることをやりきる
View GitHub Profile
@pocari
pocari / delete_old_application_versions.sh
Last active December 19, 2019 01:21
beanstalkの指定したアプリケーション内のアプリケーションバージョンを削除するshell関数
# --dry-run ... 実際に実行はせず削除コマンドの表示だけ行う
# --keep n ... 直近N個のみ保持しそれ以外は削除
# --target regexp ... regexpにマッチするアプリケーションバージョン名のみを対象
# --v-target regexp ... regexpにマッチしないアプリケーションバージョン名のみを対象
# 例)
# productionが含まれるバージョンを直近20件のみ保持
# $ delete_old_application_versions karada-yosozu --target "production" --keep 20
#
# production, staging以外のバージョンを直近20件のみ保持
# $ delete_old_application_versions karada-yosozu --v-target "staging|production" --keep 20
@olalonde
olalonde / boot2docker-use-nfs.sh
Last active December 4, 2023 12:07
Script to mount /Users with nfs instead of vboxsf in boot2docker
#!/bin/bash
#
# This script will mount /Users in the boot2docker VM using NFS (instead of the
# default vboxsf). It's probably not a good idea to run it while there are
# Docker containers running in boot2docker.
#
# Usage: sudo ./boot2docker-use-nfs.sh
#