realpath path/to/file
Show task usage details
./gradlew -q help --task tasks
https://docs.gradle.org/current/userguide/command_line_interface.html
ruby -rsecurerandom -e "puts SecureRandom.alphanumeric(16)" | pbcopy
ruby -rsecurerandom -e "puts SecureRandom.random_number(10000)" | pbcopy
$ gem i webrick
$ ruby -run -e httpd -- --port 8000 .
[2023-05-17 22:52:46] INFO WEBrick 1.8.1
[2023-05-17 22:52:46] INFO ruby 3.2.1 (2023-02-08) [x86_64-linux]
[2023-05-17 22:52:46] INFO WEBrick::HTTPServer#start: pid=70048 port=8000
[2023-05-17 22:52:46] INFO To access this server, open this URL in a browser:
[2023-05-17 22:52:46] INFO http://127.0.0.1:8000
https://docs.ruby-lang.org/ja/latest/class/Rake=3a=3aTestTask.html
rake test TESTOPTS=--verbose
rake test TEST=path/to/test_target.rb
https://docs.ruby-lang.org/ja/latest/method/Rake=3a=3aTestTask/i/options.html
find . -user root -not -path "./tmp/*" -exec sudo chown $(whoami):$(whoami) {} \
This file contains hidden or 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
| function init(e) { | |
| const props = PropertiesService.getScriptProperties().getProperties(); | |
| if (props.SLACK_VERIFICATION_TOKEN != e.parameter.token) { | |
| throw new Error('Invalid token'); | |
| } | |
| const params = parseParams(e.parameter.text); | |
| return { props, params }; |
This file contains hidden or 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/bash | |
| # This script is for the following tutorial procedure. | |
| # https://cloud.google.com/ruby/rails/run?hl=ja#gcloud_5 | |
| # | |
| # Setup | |
| # | |
| # gloud auth login | |
| # gloud config set project PROJECT_ID |