Skip to content

Instantly share code, notes, and snippets.

John Kriter johnrkriter

  • Accenture
Block or report user

Report or block johnrkriter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@johnrkriter
johnrkriter / install.sh
Created Mar 9, 2018 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
View install.sh
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@johnrkriter
johnrkriter / Ionic Framework push with Jenkins Declarative.md
Created Mar 9, 2018
Ionic Framework push with Jenkins Declarative
View Ionic Framework push with Jenkins Declarative.md

Ionic Framework push with Jenkins Declarative

This gist has been created to document one successful way I have found to use Declarative pipeline + nodeJS + Ionic Framework and preview the work through the Ionic SaaS Platform. More on this can be found on the Ionic website

Prerequisites

  • Jenkins/Jenkins:LTS
  • Amazon EC2 plugin:1.38
  • NodeJS Plugin:1.2.4
  • NodeJS 8.9.4
View Ionic Framework push with Jenkins Declarative.md

Ionic Framework push with Jenkins Declarative

This gist has been created to document one successful way I have found to use Declarative pipeline + nodeJS + Ionic Framework and preview the work through the Ionic SaaS Platform. More on this can be found on the Ionic website

Prerequisites

  • Jenkins/Jenkins:LTS
  • Amazon EC2 plugin:1.38
  • NodeJS Plugin:1.2.4
  • NodeJS 8.9.4
@johnrkriter
johnrkriter / EC2-Stopped-Tagged-Lambda.py
Created Mar 28, 2018 — forked from mlapida/EC2-Stopped-Tagged-Lambda.py
Using a lambda function, stop all instances that are tagged appropriately.
View EC2-Stopped-Tagged-Lambda.py
import boto3
import logging
#setup simple logging for INFO
logger = logging.getLogger()
logger.setLevel(logging.INFO)
#define the connection
ec2 = boto3.resource('ec2')
@johnrkriter
johnrkriter / README.md
Created Oct 4, 2018 — forked from superseb/README.md
Deploy kubernetes-dashboard on Rancher 2.0 cluster exposed using NodePort
View README.md

Deploy kubernetes-dashboard on Rancher 2.0 cluster exposed using NodePort

Requirements

Step 1: Generate kubeconfig from the UI

Generate the kubeconfig file for your cluster using the Kubeconfig File button in the Cluster view of your cluster. Save the generated file as $HOME/.kube/config and run kubectl get nodes to verify it works.

You can’t perform that action at this time.