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 | |
IMAGE="gcr.io/cloud-devrel-public-resources/owlbot-php:latest" | |
COMMON_PROTOS_PHP=~/Code/common-protos-php | |
GOOGLEAPIS_GEN=~/Code/googleapis-gen | |
docker run --rm --user $(id -u):$(id -g) \ | |
-v $COMMON_PROTOS_PHP:/repo -v $GOOGLEAPIS_GEN:/googleapis-gen -w /repo \ | |
--env HOME=/tmp \ | |
gcr.io/cloud-devrel-public-resources/owlbot-cli:latest copy-code \ |
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 | |
IMAGE="gcr.io/cloud-devrel-public-resources/owlbot-php:latest" | |
COMMON_PROTOS_PHP=~/Code/common-protos-php | |
GOOGLEAPIS_GEN=~/Code/googleapis-gen | |
docker run --rm --user $(id -u):$(id -g) \ | |
-v $COMMON_PROTOS_PHP:/repo -v $GOOGLEAPIS_GEN:/googleapis-gen -w /repo \ | |
--env HOME=/tmp \ | |
gcr.io/cloud-devrel-public-resources/owlbot-cli:latest copy-code \ |
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 | |
COMPONENT_NAME="" | |
if [ "$#" -eq 1 ]; then | |
# Component name must match the directory where the component lives in google-cloud-php, e.g. "AlloyDb" | |
COMPONENT_NAME=" -name $1 " | |
elif [ "$#" -ne 0 ]; then | |
echo "usage: generate-gapic-services.sh [COMPONENT]" | |
exit 1; | |
fi |
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 | |
# Make sure you clone the discovery-artifact-manager repo in the directory outside of this one: | |
# $ git clone https://github.com/googleapis/discovery-artifact-manager | |
SERVICES=("abusiveexperiencereport" "acceleratedmobilepageurl" "accessapproval" "accesscontextmanager" "adexchangebuyer2" "adexperiencereport" "admin" "admob" "adsense" "adsensehost" "alertcenter" "analytics" "analyticsadmin" "analyticsdata" "analyticshub" "analyticsreporting" "androiddeviceprovisioning" "androidenterprise" "androidmanagement" "androidpublisher" "apigateway" "apigee" "apigeeregistry" "apikeys" "appengine" "area120tables" "artifactregistry" "assuredworkloads" "authorizedbuyersmarketplace" "baremetalsolution" "batch" "beyondcorp" "bigquery" "bigqueryconnection" "bigquerydatatransfer" "bigqueryreservation" "bigtableadmin" "billingbudgets" "binaryauthorization" "blogger" "books" "businessprofileperformance" "calendar" "certificatemanager" "chat" "chromemanagement" "chromepolicy" "chromeuxreport" "civicinfo" "classroo |
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
const { Octokit, App } = require("octokit"); | |
async function run() { | |
const github = new Octokit(); | |
// fetch tree head and look for /discoveries folder's tree SHA | |
const { | |
data: tree | |
} = await github.rest.git.getTree({ | |
owner: "googleapis", | |
repo: "discovery-artifact-manager", |
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
<?php | |
require 'vendor/autoload.php'; | |
use Google\Cloud\Compute\V1\Disk; | |
use Google\Cloud\Compute\V1\Instance; | |
use Google\Cloud\Compute\V1\AttachedDisk; | |
use Google\Cloud\Compute\V1\NetworkInterface; | |
$instancesClient = new Google\Cloud\Compute\V1\InstancesClient(); | |
$disksClient = new Google\Cloud\Compute\V1\DisksClient(); |
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
commit c79529943b7aa11ac328b1de6ac10173da35b453 | |
Author: Julien Deniau <[email protected]> | |
Date: Wed Sep 5 14:38:59 2018 +0200 | |
add test to prevent lint from failing | |
diff --git a/vendor/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php b/vendor/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php | |
index 6819124..4c981d0 100644 | |
--- a/vendor/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php | |
+++ b/vendor/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php |
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
<?php | |
class NullSessionHandler implements SessionHandlerInterface | |
{ | |
public function open($savePath, $sessionName) | |
{ | |
return true; | |
} | |
public function close() | |
{ | |
return true; |
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
<?php | |
// Static list provides security against URL injection by default. | |
switch (@parse_url($_SERVER['REQUEST_URI'])['path']) { | |
case '/': | |
require 'homepage.php'; | |
break; | |
case 'admin.php': | |
require 'admin.php'; | |
break; |
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 | |
if [ "$1" = "" ] || [ "$2" != "" ]; then | |
echo "usage: phplink [version]" | |
exit | |
fi | |
if [ $(stat -f '%Su' /usr/local/bin/) != "$USER" ]; then | |
sudo chown $USER /usr/local/bin /usr/local/etc /usr/local/share/man /usr/local/share/man/* /usr/local/sbin /usr/local/share/doc | |
fi |
NewerOlder