Skip to content

Instantly share code, notes, and snippets.

Avatar

Chirag Nayyar chiragnayyar

View GitHub Profile
@chiragnayyar
chiragnayyar / cloud_sql_flags.md
Created May 27, 2017
Cloud SQL Second Generation Tuned Flags for MySQL InnoDB
View cloud_sql_flags.md

Important Notice

  • All flags and settings described here are subject to change without any notice.
  • Last update: March 2017

Introduction

This document describes a set of MySQL flags that have been tuned in Google Cloud SQL (Second Generation) to make the out-of-box experience better on Google Cloud. This is for your reference only, with the hope that some of the settings might also be useful outside the Google Cloud environment.

innodb_buffer_pool_size

@chiragnayyar
chiragnayyar / gist:661eefb7dd0115fe9c1cd6e795cf5dd8
Created May 21, 2016
Install code deploy agent on ubuntu server
View gist:661eefb7dd0115fe9c1cd6e795cf5dd8
#!bin/bash
sudo apt-get -y update
sudo apt-get install -y python-pip
sudo apt-get install -y ruby2.0
sudo pip install awscli
cd /home/ubuntu
sudo aws s3 cp s3://aws-codedeploy-us-east-1/latest/install . --region us-east-1; sudo chmod +x ./install;sudo ./install auto
sudo service codedeploy-agent status
@chiragnayyar
chiragnayyar / gist:51d9c649298e546657791c9392c7acfe
Created May 21, 2016 — forked from mikepfeiffer/gist:4d9386afdcceaf29493a
EC2 UserData script to install CodeDeploy agent
View gist:51d9c649298e546657791c9392c7acfe
#!/bin/bash
yum install -y aws-cli
cd /home/ec2-user/
aws s3 cp 's3://aws-codedeploy-us-east-1/latest/codedeploy-agent.noarch.rpm' . --region us-east-1
yum -y install codedeploy-agent.noarch.rpm