Skip to content

Instantly share code, notes, and snippets.

View startupsandcode's full-sized avatar
😄
Coding and writing tutorials

John Mann startupsandcode

😄
Coding and writing tutorials
View GitHub Profile
@startupsandcode
startupsandcode / ReadMe.md
Last active May 19, 2022 14:44
Kubernetes on GKE with Nginx

Kubernetes Configuration

I have included a .env, ingress-nginx.yaml, controller-nginx.yaml, and bash script that will build your cluster and deploys everything in your folder you specifify in the parameter for the bash script parameters

To deploy from your cloud-config/staging folder and create the cluster do this:

./deploy.sh staging y

If you want to upgrade your existing app deployment, simply remove the y

function DoSomething(a,b){
var x = a * b;
console.log(x);
}
DoSomething(3,8);
for(var i=0; i < 10; i++){
console.log('Count it:' + i);
}
document.write('hello world');
console.log('hello world');
document.getElementById('myOutput').innerHTML = 'hello world';
@startupsandcode
startupsandcode / .js
Created May 8, 2016 12:18
Write Output from Input
var results = document.getElementById('test').value;
document.getElementById('results').innerHTML = results;
@startupsandcode
startupsandcode / 0_reuse_code.js
Created May 31, 2014 20:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console