Skip to content

Instantly share code, notes, and snippets.

Avatar
😀
Not updating github status

Michael Neale michaelneale

😀
Not updating github status
View GitHub Profile
View Jenkinsfile
def honeycomb_setup() {
script {
env.STEP_START = sh(script:'date +%s', returnStdout: true).trim()
env.STEP_SPAN_ID = sh(script:'uuidgen', returnStdout: true).trim()
}
}
def install_buildevents() {
sh"""
curl -L -o buildevents https://github.com/honeycombio/buildevents/releases/latest/download/buildevents-linux-amd64 curl -L -o buildevents https://github.com/honeycombio/buildevents/releases/latest/download/buildevents-linux-amd64
chmod 755 buildevents
View streamlit.py
import streamlit as st
import pandas as pd
import altair as alt
import urllib
from streamlit.server.server import Server
from streamlit.report_thread import get_report_ctx
@st.cache
def get_UN_data():
View Google Cloud Functions IAM sample.py
import base64
import os
from google.oauth2 import service_account
import googleapiclient.discovery
def hello_pubsub(event, context):
View bws.py
# need to install stuff - selenium/webdriver/firefox driver/gecko or something, I forget now.
# Just mash the keyboard until it works.
my_url='https://bws.com.au/spirits/gin'
from selenium import webdriver
options = webdriver.FirefoxOptions()
options.add_argument('-headless')
View PSConfig.groovy
//def ConfigEnviroment = [:]
//ConfigEnviroment['fromEmail'] = "noreply@adobe.com"
def info(message) {
echo "INFO: ${message}"
}
def warning(message) {
echo "WARNING: ${message}"
}
View Jenkinsfile
pipeline {
stages {
stage('cypress - test') {
agent {
docker {
image 'cypress/base:8'
}
}
View gist:48d032ee6a0cc4d61e6456e80db4ad27
apiVersion: v1
items: []
kind: List
metadata:
resourceVersion: ""
selfLink: ""
View gist:29aa81ee3617b17c540bcd20fe7a21d4
pipeline {
agent {
docker {
image 'node:6-alpine'
args '-p 3000:3000'
}
}
environment {
CI = 'true'
}
View gist:f9f514f5dc2929e5ff98a752494bbef1
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y libxml2-utils
RUN apt-get install -y default-jdk
RUN apt-get install -y maven
RUN apt-get install -y firefox=45.0.2+build1-0ubuntu1
RUN apt-get install -y xvfb
RUN apt-get install -y curl wget
View ATH
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y libxml2-utils
RUN apt-get install -y default-jdk
RUN apt-get install -y maven
RUN apt-get install -y firefox=45.0.2+build1-0ubuntu1
RUN apt-get install -y xvfb
RUN apt-get install -y curl wget