Skip to content

Instantly share code, notes, and snippets.

View jmelchio's full-sized avatar
💻

Joris Melchior jmelchio

💻
  • Toronto, Ontario
  • 21:04 (UTC -04:00)
View GitHub Profile
@jmelchio
jmelchio / bumpme
Last active September 27, 2017 14:10
Wed Sep 27 14:10:19 UTC 2017
s/github.com\/concourse\/semver-resource/github.com\/jmelchio\/semver-resource/
sed -f pathtofork.sed -i tmp (find . -name "*.go")
@jmelchio
jmelchio / atom-packages.txt
Created March 31, 2018 14:06
Packages to load in Atom editor (install with `apm install --packages-file <filename>`
file-icons
color-picker
pigments
platformio-ide-terminal
teletype
linter
linter-ui-default
intentions
busy-signal
hyperclick
#!/bin/bash
docker images | grep '<none>' | awk '{print $3}' | xargs docker rmi
@jmelchio
jmelchio / dump_from_docker.sh
Last active March 30, 2019 18:35
Sample of the creation of a postgres dumpfile using a docker container for running docker and running pg_dump
#!/usr/bin/env bash
docker run -it --rm --link docker-postgres:postgres \
-v"/home/joris/devel/go/src/github.com/jmelchio/vetlab/repository/ddl":"/tmp/dump" \
postgres pg_dump -h postgres -U postgres --schema-only --dbname=vetlab -f /tmp/dump/vetlab_dump.sql
# That's All Folks !!
@jmelchio
jmelchio / docker_postgres.sh
Last active March 30, 2019 17:50
Start a docker postgres image running exposed on localhost
#!/usr/bin/env bash
docker run --name docker-postgres --rm -p5432:5432 -d postgres
# That's all folks !!
#!/usr/bin/env bash
docker run --rm --link docker-postgres:postgres postgres createdb -U postgres -h postgres vetlab
# That's All Folks !!
@jmelchio
jmelchio / Instructions.txt
Last active February 10, 2019 17:29
Quick start configuration for Spinnaker with CloudFoundry support on k8s
*** Disclaimer: Config and instructions supplied 'as is'. No suitability for use implied and by using these instructions
users assume responsibility for any outcomes of the use of these configuration files and instructions ***
Acknowledgements:
* kube-spinnaker-demo.yml has been derived from quickstart instructions and samples from the spinnaker.io site.
* service.yml, storage.yml and elasticsearch.yml have been copied (with minor modifications) from the elasticsearch instructions from the spinnaker.io site. (https://www.spinnaker.io/guides/user/tagging/)
Quick instructions for getting an environment up and running with support for k8s, CloudFoundry and entity tagging. Setup is
based on the quickstart file provided on the spinnaker.io website.
Familiarity with Kubernetes is assumed. This was tested out on GKE.
@jmelchio
jmelchio / ConverterTestConfiguration.java
Last active October 29, 2018 00:46
Sample for testing in project. Not complete, needs some mocks to be useful.
/*
* Copyright 2018 Pivotal, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software