Skip to content

Instantly share code, notes, and snippets.

View geoHeil's full-sized avatar

geoHeil geoHeil

View GitHub Profile
@geoHeil
geoHeil / gist:816ffe2be3e8557aaa59
Created May 25, 2015 19:51
Verifying I am +geoheil on my passcard. https://onename.com/geoheil
Verifying I am +geoheil on my passcard. https://onename.com/geoheil
@geoHeil
geoHeil / gist:4c431456356b65af2f53
Created May 26, 2015 06:15
Verifying I am +geoheil on my passcard. https://onename.com/geoheil
Verifying I am +geoheil on my passcard. https://onename.com/geoheil
\documentclass[11pt]{article}
\usepackage{fancyvrb}
\begin{document}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Duis autem vel eum iriure dolor in hendrerit in vulputate veli
vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'jimmidyson/centos-7.1' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: = 1.2.6
==> default: Loading metadata for box 'jimmidyson/centos-7.1'
default: URL: https://atlas.hashicorp.com/jimmidyson/centos-7.1
==> default: Adding box 'jimmidyson/centos-7.1' (v1.2.6) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/jimmidyson/boxes/centos-7.1/versions/1.2.6/providers/virtualbox.box
==> default: Successfully added box 'jimmidyson/centos-7.1' (v1.2.6) for 'virtualbox'!
@geoHeil
geoHeil / concourse slack notification
Created March 1, 2016 12:29
concourse ci slack notification
---
name: concourse
director_uuid: <%= `bosh status --uuid` %>
releases:
- name: concourse
version: latest
- name: garden-linux
version: latest
@geoHeil
geoHeil / gist:21ee41bd5e7cfd7b0d5d
Created March 22, 2016 09:40
Nexus 3 M7 installation failing
FROM centos:centos7
MAINTAINER Georg Heiler
# Install Nexus 3 Milestone 7.
ENV NEXUS_VERSION 3.0.0-m7
ENV SONATYPE_WORK /sonatype-work
ENV JAVA_HOME /opt/java
@geoHeil
geoHeil / Camel Autodiscovery
Created March 25, 2016 19:43
Could not get @springboot Annotation to work with camel auto discovery
@ComponentScan
@EnableAutoConfiguration
public class RebeatPrototype {
private static final Logger LOGGER = Logger.getLogger(RebeatPrototype.class);
public static void main(String[] args) {
LOGGER.info("INIT CONTEXT");
// CREATE SPRING-CAMEL CONTEXT (PROPERTIES REPLACEMENT, AUTOLOADING COMPONENTS,...)
FROM centos:7
MAINTAINER Georg Heiler <georg.heiler@convista.com>
# Install Essentials
RUN yum update -y && \
yum clean all
# Install Packages
RUN yum install -y git && \
yum install -y wget && \
FROM phusion/baseimage
MAINTAINER Georg Heiler
ENV NEXUS_DATA /nexus-data
ENV NEXUS_VERSION 3.0.0-03
RUN \
apt-get update; apt-get upgrade -y -qq; \
apt-get install -y -qq wget; \
apt-get install -y -qq curl; \
@geoHeil
geoHeil / gist:3dff11860ae042792cea6970447c4592
Created April 16, 2016 14:22
Spark window function fails in SQL
import org.apache.spark.sql.{ Row, SQLContext }
import org.apache.spark.sql.expressions.Window
val sql = new org.apache.spark.sql.SQLContext(sc)
val dataset = Seq(
("Thin", "cell phone", 6000),
("Normal", "tablet", 1500),
("Mini", "tablet", 5500),
("Ultra thin", "cell phone", 5000),
("Very thin", "cell phone", 6000),