Skip to content

Instantly share code, notes, and snippets.

View sithumc's full-sized avatar
☁️
automating & innovating solutions in the cloud 📡 📲 🎧 🎮

Sithum sithumc

☁️
automating & innovating solutions in the cloud 📡 📲 🎧 🎮
View GitHub Profile
@sithumc
sithumc / Jenkinsfile
Created October 22, 2017 13:08 — forked from jonico/Jenkinsfile
Example for a full blown Jenkins pipeline script with multiple stages, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, stage timeouts, stage concurrency constraints, ...
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
/*
Please make sure to add the following environment variables:
HEROKU_PREVIEW=<your heroku preview app>
HEROKU_PREPRODUCTION=<your heroku pre-production app>
HEROKU_PRODUCTION=<your heroku production app>
@sithumc
sithumc / angular.html
Created March 13, 2017 06:07
Angular1 minimal setup
<!DOCTYPE html>
<html lang="en-US">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>
<div ng-app="">
<p>Name : <input type="text" ng-model="name"></p>
<h1>Hello {{name}}</h1>
</div>
@sithumc
sithumc / BlockAdobe.txt
Created January 13, 2017 14:32
Adobe drivers etc block hosts
#<block-adobe>
127.0.0.1 activate.adobe.com
127.0.0.1 practivate.adobe.com
127.0.0.1 ereg.adobe.com
127.0.0.1 wip3.adobe.com
127.0.0.1 activate.wip3.adobe.com
127.0.0.1 3dns-3.adobe.com
127.0.0.1 3dns-2.adobe.com
127.0.0.1 adobe-dns.adobe.com
127.0.0.1 adobe-dns-2.adobe.com
@sithumc
sithumc / docker_ubuntu_node
Last active March 27, 2017 10:59 — forked from thom-nic/Dockerfile
Node.js Dockerfile based on ubuntu 14.04. This is a little smaller than dockerfile/nodejs which depends on python
# Node.js app Docker file
FROM ubuntu:14.04
MAINTAINER Thom Nichols "thom@thomnichols.org"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get -qq update
RUN apt-get install -y nodejs npm
@sithumc
sithumc / selenium-docker-compose.yml
Last active March 27, 2017 10:59
seleniun grid docker compose
seleniumhub:
image: selenium/hub
ports:
- 4444:4444
firefoxnode:
image: selenium/node-firefox
ports:
- 5900
links: