Skip to content

Instantly share code, notes, and snippets.

View thesandlord's full-sized avatar

Sandeep Dinesh thesandlord

View GitHub Profile
/**
* @license
* Copyright 2018, Google, Inc.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@thesandlord
thesandlord / deployment.yaml
Last active February 25, 2019 07:27
Federated Ingress on Google Container Engine
// Copyright 2017, Google, Inc.
// Licensed under the Apache License, Version 2.0 (the "License")
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: web
spec:
replicas: 12
template:
metadata:
@thesandlord
thesandlord / keybase.md
Created February 8, 2017 21:09
keybase.md

Keybase proof

I hereby claim:

  • I am thesandlord on github.
  • I am thesandlord (https://keybase.io/thesandlord) on keybase.
  • I have a public key whose fingerprint is FB3B 7AFA CC81 A624 3647 37D7 181B D6B8 5E97 DC40

To claim this, I am signing this object:

@thesandlord
thesandlord / Dockerfile
Last active April 17, 2021 23:18
ConfigMaps and Secrets with Kubernetes
# Copyright 2017, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
FROM node:6-onbuild
EXPOSE 3000
ENV LANGUAGE English
ENV API_KEY 123-456-789
var gcloud = require('gcloud')({
keyFilename: '/path/to/keyfile.json',
projectId: '<YOUR-PROJECT-HERE>'
});
var vision = gcloud.vision();
var image = 'image.jpg';
vision.detectText('image.jpg', function(err, text, apiResponse) {
// text = ['This was text found in the image']
@thesandlord
thesandlord / mongodb-replica-set-using-pod-ip.js
Created February 4, 2016 00:49
Sample Code showing how you can use the kubernetes-pod-ip-finder to connect to a MongoDB Replica Set
/*
Copyright 2016, Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,