Skip to content

Instantly share code, notes, and snippets.

@edsiper
edsiper / kubernetes_commands.md
Last active April 8, 2025 09:02
Kubernetes Useful Commands
@ssaunier
ssaunier / README.md
Last active July 17, 2018 01:26
Add healthchecks.io to your Rails / Sidekiq project

Depends on the sidekiq-cron gem.

curl https://gist.githubusercontent.com/ssaunier/e2d488bb931b5dc8df0f329c652eac25/raw/health_check_job.rb > app/jobs/health_check_job.rb

You need to set HEALTH_CHECK_URL in the prod ENV.

@smithclay
smithclay / aws.tf
Created July 19, 2017 19:57
Multi-Cloud New Relic Blog Post: Terraform Configuration of AWS, Azure and GCP Load Balancers with Instance Groups (Autoscaling enabled)
variable "aws_region" {
description = "EC2 Region for the VPC"
default = "us-west-2"
}
variable "aws_availability_zones" {
default = "us-west-2a,us-west-2b,us-west-2c"
description = "List of availability zones, use AWS CLI to find your "
}
@foklepoint
foklepoint / .gitlab-ci.yml
Created July 8, 2017 20:25
Build and Push images to GCP Container Registry with Gitlab CI
image: docker:latest
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
variables:
DOCKER_DRIVER: overlay
GCP_PROJECT_ID: CHANGE-TO-GCP-PROJECT-ID
IMAGE_NAME: image_id
services:
@andyshinn
andyshinn / GCLOUD-EXAMPLE.md
Last active August 20, 2018 19:29
Postal on Google Container Engine

Postal on Kubernetes in Google Cloud Platform

Requirements

  1. Google Cloud Platform (GCP) account.
  2. A project in the account (we're using postal-165921 in our example commands).

Infrastructure

  1. Set the defailt zone to use with our gcloud commands: gcloud config set compute/zone us-central1-a
@cgrant
cgrant / about.md
Last active June 18, 2018 15:17
Deploy CF from Google Cloud Shell

These scripts are meant to be run using the Google Cloud Shell

$ curl -o install-director-infrastructure.sh https://gist.githubusercontent.com/raw/2818bdb9ee660d1928c011ac019878a9/install-director-infrastructure.sh && . ./install-director-infrastructure.sh

$ gcloud compute ssh bosh-bastion "curl -o install-director.sh https://gist.githubusercontent.com/raw/2818bdb9ee660d1928c011ac019878a9/install-director.sh && . ./install-director.sh"

then clean up with

$ curl -o destroy-director.sh https://gist.githubusercontent.com/raw/2818bdb9ee660d1928c011ac019878a9/destroy-director.sh && . ./destroy-director.sh
@deleeke
deleeke / JenkinsPullRequestBuilderSetup.md
Last active August 10, 2018 17:52
JenkinsPullRequestBuilderSetup.md

Instructions for setting up a Jenkins job using the GitHub Pull Request Builder plugin

These instructions are for setting up the GitHub Pull Request Builder Plugin from a clean install of Jenkins. If you allready have the plugin installed, jump to: setting up a new job

Please send any questions about this document or report any errors to ibamr-dev@googlegroups.com

Contents

Install the follow plugins

  • GIT plugin
  • Git client plugin
  • Git Parameter Plug-In
  • Git server plugin
  • Github Authentication plugin
  • GitHub Pull Request Plugin
  • GitHub pull requests builder
  • SCM Sync Configuration Plugin
@joekr
joekr / Dockerfile-Nginx
Last active January 9, 2025 12:22
Kubernetes + Rails (NGINX & Unicorn) on GCE
# Set nginx base image
FROM nginx
# Copy custom configuration file from the current directory
COPY nginx.conf /etc/nginx/nginx.conf
@frntn
frntn / gcloud_commands
Last active February 27, 2024 11:10
all gcloud commands
gcloud auth
gcloud auth activate-refresh-token
gcloud auth activate-service-account
gcloud auth git-helper
gcloud auth list
gcloud auth login
gcloud auth print-access-token
gcloud auth print-refresh-token
gcloud auth revoke
gcloud components