Skip to content

Instantly share code, notes, and snippets.

donchan922 donchan922

Block or report user

Report or block donchan922

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View active_storage.sh
$ rails new project --skip-active-storage
View active_storage
$ rails routes
Prefix Verb URI Pattern Controller#Action
rails_service_blob GET /rails/active_storage/blobs/:signed_id/*filename(.:format) active_storage/blobs#show
rails_blob_representation GET /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations#show
rails_disk_service GET /rails/active_storage/disk/:encoded_key/*filename(.:format) active_storage/disk#show
update_rails_disk_service PUT /rails/active_storage/disk/:encoded_token(.:format) active_storage/disk#update
rails_direct_uploads POST /rails/active_storage/direct_uploads(.:format) active_storage/direct_uploads#create
View env.sh
$ ruby -v
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18]
$ rails -v
Rails 5.2.3
View finder.sh
$ defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder
View finder.sh
$ defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder
View remote-debug.sh
$ java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar demo-0.0.1-SNAPSHOT.jar
View env.sh
- IntelliJ IDEA 2019.2 (Community Edition)
- Java 8
- Spring Boot 2.1.7
View Vagrantfile
Vagrant.configure("2") do |config|
...
config.vm.network "private_network", ip: "192.168.33.10"
...
end
View chef.sh
# クックブックを格納するディレクトリを作成する
$ mkdir cookbooks
# helloクックブックを作成する
$ chef generate cookbook cookbooks/hello
# レシピを作成する(ファイルの中身を、以下に書き換える)
$ vi cookbooks/hello/recipes/default.rb
log "Hello, World!"
You can’t perform that action at this time.