View test_google_bigtable_grpc.php
This file contains 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\Bigtable\BigtableClient; | |
$project_id = 'my-project-id'; | |
$instance_id = 'my-instance-id'; | |
$table_id = 'my-table-id'; | |
$credential_file_path = './credential.json'; | |
$transport = 'grpc'; |
View Gmail: filter to select old email
This file contains 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
label:audit before:2019/04/01 |
View stackdriver-instance-log-filter.txt
This file contains 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
resource.type="gce_instance" | |
logName="projects/my-project-name/logs/apache-error" | |
labels."compute.googleapis.com/resource_name":"-web-" | |
textPayload:"execution time" |
View mysql2cloudsql.py
This file contains 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 | |
import subprocess | |
import os | |
import datetime | |
# Get list of views from MySQL | |
getViews = subprocess.Popen(['mysql', 'core'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) | |
views = getViews.communicate("SHOW FULL TABLES IN core WHERE TABLE_TYPE LIKE 'VIEW';")[0].strip() |
View gcs.service
This file contains 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
# https://github.com/GoogleCloudPlatform/gcsfuse | |
[Unit] | |
Description=Google Cloud Storage FUSE mounter | |
After=local-fs.target network-online.target google.service sys-fs-fuse-connections.mount | |
Before=shutdown.target | |
[Service] | |
Type=forking | |
User=apache |
View fabfile.py
This file contains 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
from fabric.api import env, local, run | |
def vagrant(): | |
"""USAGE: | |
fab vagrant uname | |
Note that the command to run Fabric might be different on different | |
platforms. | |
""" | |
# change from the default user to 'vagrant' |