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'; |
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 |
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" |
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() |
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 |
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' |