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
| # update_pr_desc.py | |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import requests | |
| import time | |
| import json | |
| import sys | |
| import os |
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
| steps: | |
| - name: gcr.io/cloud-builders/gcloud | |
| id: 'setup_ssh' | |
| entrypoint: 'bash' | |
| args: | |
| - '-c' | |
| - | | |
| <ここに秘密鍵をSecret Managerなどから取ってくる処理> | |
| git config --global url."[email protected]:".insteadOf "https://github.com/" | |
| volumes: |
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
| service: <YOUR SERVICE NAME> | |
| runtime: python27 | |
| api_version: 1 | |
| threadsafe: false | |
| skip_files: | |
| - .git/* | |
| handlers: | |
| - url: /(.*\.css) |
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 ( | |
| "encoding/json" | |
| // "encoding/base64" | |
| "fmt" | |
| "net/http" | |
| "strings" | |
| "bytes" | |
| "io" |
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 | |
| set -eu | |
| atexit() { | |
| [[ -n $tmpdir ]] && rm -fr "$tmpdir" | |
| [[ -n $sslconf ]] && rm -fr "$sslconf" | |
| } | |
| tmpdir=`mktemp -d` | |
| sslconf=`mktemp` | |
| trap atexit EXIT | |
| trap 'trap - EXIT; atexit; exit -1' SIGHUP SIGINT SIGTERM |
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 | |
| rm -rf testdata/* | |
| for i in {0..10};do | |
| mkdir testdata/dir${i} | |
| for j in {0..50};do | |
| mkfile 50m testdata/dir${i}/test-${j}.txt | |
| done | |
| done |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import urllib2 as request | |
| from bs4 import BeautifulSoup | |
| import re | |
| import urllib | |
| import datetime | |
| import json |
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
| machine: | |
| environment: | |
| GO15VENDOREXPERIMENT: 1 | |
| GOROOT: "/home/ubuntu/go" | |
| PATH: "/home/ubuntu/go/bin:$PATH" | |
| dependencies: | |
| cache_directories: | |
| - "/home/ubuntu/.go" | |
| pre: |
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
| machine: | |
| environment: | |
| GO15VENDOREXPERIMENT: 1 | |
| GOROOT: "/home/ubuntu/go" | |
| PATH: "/home/ubuntu/go/bin:$PATH" | |
| dependencies: | |
| cache_directories: | |
| - "/home/ubuntu/go" | |
| pre: |
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 ( | |
| "bytes" | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "net/url" | |
| "os" |
NewerOlder