Skip to content

Instantly share code, notes, and snippets.

View yas-okadatech's full-sized avatar

Yas Okada yas-okadatech

View GitHub Profile
@yas-okadatech
yas-okadatech / docker system prune --volumes で消せない無駄なボリュームを消す
Last active March 13, 2025 05:29
docker system prune --volumes で消せない無駄なボリュームを消す
docker volume ls -f dangling=true --format "{{ .Name }}" | grep -E '^[a-z0-9]{64}$' | xargs --no-run-if-empty docker volume rm
or
docker volume rm $(docker volume ls -qf dangling=true)
参考: https://qiita.com/PND/items/dd9ffdc45953cb1b8c13
@yas-okadatech
yas-okadatech / .gitconfig
Last active October 1, 2024 00:29
git sign
[user]
signingkey = [[YOUR SIGNING PUBLIC KEY または /PATH/TO/.SSH/KEY.PUB]]
[commit]
gpgsign = true
[gpg]
format = ssh
@yas-okadatech
yas-okadatech / show_openssl_ver.rb
Created May 25, 2023 22:30
show OpenSSL version on ruby
ruby -e 'require "openssl"; puts OpenSSL::OPENSSL_VERSION'
@yas-okadatech
yas-okadatech / rolllback
Created May 15, 2023 06:49
[rails] 特定バージョンのrollback
bundle exec rails db:migrate:down VERSION=
@yas-okadatech
yas-okadatech / rails_new
Created November 8, 2021 07:02
rails new
rails new APP_PATH --skip-turbolinks --skip-bundle --database=mysql
rails new APP_PATH --skip-turbolinks --skip-bundle --database=postgresql
@yas-okadatech
yas-okadatech / xcode-select
Created March 7, 2021 09:33
xcode-select
xcode-select --install
@yas-okadatech
yas-okadatech / ssh-keygen
Created January 1, 2021 07:56
ssh-keygen
ssh-keygen -t ed25519 -C "your_email@example.com"
or (for legacy systems)
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Keybase proof

I hereby claim:

  • I am yas-okadatech on github.
  • I am yas_okadatech (https://keybase.io/yas_okadatech) on keybase.
  • I have a public key ASDL9pZuebIAri8a1DLTyXF7OZS9bkfmDJhgn-TUs-s65Qo

To claim this, I am signing this object:

config.logger = ActiveSupport::Logger.new(STDOUT)
config.log_level = :info
@yas-okadatech
yas-okadatech / vuex_store_module.js
Last active August 3, 2018 00:56
vuex store module
const state = () => ({
status: 'initial',
})
const mutations = {
mutationA(state, {valueA}) {
}
}
const actions = {