Skip to content

Instantly share code, notes, and snippets.

View jmelchio's full-sized avatar
💻

Joris Melchior jmelchio

💻
  • Toronto, Ontario
  • 21:24 (UTC -04:00)
View GitHub Profile
@jmelchio
jmelchio / .tmux.conf
Last active December 7, 2020 20:23
tmux config customizations
# tmux configuration customaizations
# allow for reload on the fly
unbind r
bind r source-file ~/.tmux.conf \; display 'Reload tmux config'
# allow use of mouse
# set -g mouse on
# set -g mouse-ut8 on
@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
@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.
#!/usr/bin/env bash
docker run --rm --link docker-postgres:postgres postgres createdb -U postgres -h postgres vetlab
# 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 !!
@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 !!
#!/bin/bash
docker images | grep '<none>' | awk '{print $3}' | xargs docker rmi
@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
sed -f pathtofork.sed -i tmp (find . -name "*.go")
s/github.com\/concourse\/semver-resource/github.com\/jmelchio\/semver-resource/