Skip to content

Instantly share code, notes, and snippets.

Setup Postgres for Jenkins

sudo -u postgres psql -c "CREATE ROLE jenkins WITH SUPERUSER LOGIN;" 
sudo -u postgres psql -c "ALTER ROLE jenkins WITH CREATEDB;"

Modify the postgres pg_hba.conf to enable trusted local authentication for the jenkins user:

@inspire12
inspire12 / mesos-on-ubuntu.md
Created May 3, 2018 14:50 — forked from EronWright/mesos-on-ubuntu.md
Setup Mesos on Ubuntu 16 (Dev Setup)

Configure Mesos

These instructions are derived from those in the Mesos Community Documentation.

Do the below as root.

Install

cat <<EOF >> /etc/apt/sources.list.d/mesosphere.list
deb http://repos.mesosphere.com/ubuntu xenial main
@inspire12
inspire12 / README-Template.md
Created April 11, 2018 02:17 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@inspire12
inspire12 / kruskal.py
Created August 25, 2017 18:14 — forked from msAzhar/kruskal.py
Kruskal's Algorithm (Python)
parent = dict()
rank = dict()
def make_set(vertice):
parent[vertice] = vertice
rank[vertice] = 0
def find(vertice):
if parent[vertice] != vertice:
parent[vertice] = find(parent[vertice])