- gcloud auth application-default loginによって生成したADCを利用してgoogle driveにアクセスしようとすると失敗する。- google calendarへのアクセスは成功する。
 
- GOOGLE_APPLICATION_CREDENTIALSを利用してのgoogle driveへのアクセスは成功する。- google calendarへのアクセスも成功する。
 
  
    
      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/sh | |
| pmset displaysleepnow | 
  
    
      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
    
  
  
    
  | package main | |
| import ( | |
| "os" | |
| "fmt" | |
| "io" | |
| "net/http" | |
| ) | |
| func main() { | 
  
    
      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
    
  
  
    
  | # credentials | |
| service_account_credentials.json | |
| # go | |
| go.sum | 
how_to_poetry
  
    
      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 | |
| function help() { | |
| cat <<EOS | |
| google-cloud-sdkのdocker imageを簡単に利用できるcli。 | |
| \`gcloud (ARGS...)\`の代わりに\`gcp.sh exec (ARGS...)\`で利用できます。 | |
| Usage: | |
| gcp.sh init [--gcp-env <env_name>] | |
| gcp.sh exec [--gcp-env <env_name>] (ARGS...) | 
  
    
      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 findOnCal(cal, date, str) { | |
| var options = { | |
| search: str | |
| } | |
| var events = cal.getEventsForDay(date, options); | |
| return events[0]; | |
| } | |
| function getCapture(reg, str) { | |
| var reg_results = reg.exec(str); | 
local版circleCIのインストール方法は、 https://circleci.com/docs/ja/2.0/local-cli/ を参照ください。