Skip to content

Instantly share code, notes, and snippets.

View magick93's full-sized avatar
💩
Focusing

magick93

💩
Focusing
View GitHub Profile
#!/usr/bin/groovy
@Library('github.com/fabric8io/fabric8-pipeline-library@master')
def localItestPattern = ""
try {
localItestPattern = ITEST_PATTERN
} catch (Throwable e) {
localItestPattern = "*KT"
}
Started by user anonymous
> /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> /usr/bin/git config remote.origin.url https://gitlab.com/myco/myrepo.git # timeout=10
Fetching upstream changes from https://gitlab.com/myco/myrepo.git
> /usr/bin/git --version # timeout=10
using GIT_ASKPASS to set credentials
> /usr/bin/git fetch --tags --progress https://gitlab.com/myco/myrepo.git +refs/heads/*:refs/remotes/origin/*
> /usr/bin/git rev-parse refs/remotes/origin/feature/10-endpoint-for-updates^{commit} # timeout=10
> /usr/bin/git rev-parse refs/remotes/origin/origin/feature/10-endpoint-for-updates^{commit} # timeout=10
#!/bin/bash
TAG=hughestech/lightning
set -ex
PARENT_DIR=$(basename "${PWD%/*}")
CURRENT_DIR="${PWD##*/}"
IMAGE_NAME="$TAG"
@magick93
magick93 / IFMLCodeGenerator-Main.xtend
Created April 27, 2017 21:24 — forked from acerosalazar/IFMLCodeGenerator-Main.xtend
A template for creating an Xtend based CodeGenerator using the Ecore implementation of the IFML metamodel and a sample model.
package generator
// This code is based on this stackoverflow answer:http://stackoverflow.com/questions/12458852/load-emf-model-instance-in-xtend
import org.eclipse.emf.common.util.URI
import org.eclipse.emf.ecore.resource.Resource
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl
import org.eclipse.emf.ecore.EPackage
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.4.0/protoc-3.4.0-linux-x86_64.zip
# Unzip
unzip protoc-3.4.0-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
@magick93
magick93 / acmecontroller.log
Created September 11, 2017 11:01
Log from Acme Controller
2017-09-09T03:32:02.567487505Z INFO Starting controller
2017-09-09T03:32:02.568120346Z INFO ACME server url is 'https://acme-staging.api.letsencrypt.org/directory'
ERROR: logging before flag.Parse: W0909 03:32:02.568167 1 client_config.go:481] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
2017-09-09T03:32:02.569424298Z INFO AcmeController bootstraping DB
2017-09-09T03:32:02.569451026Z TRACE AcmeController bootstraping DB finished duration=255.79878ms start=2017-09-09T03:32:02.569451141Z end=2017-09-09T03:32:02.825249921Z
2017-09-09T03:32:02.825314019Z INFO AcmeController initializing
2017-09-09T03:32:02.825342972Z INFO AcmeController started
2017-09-09T03:32:02.825456625Z INFO Http-01: server listening on http://[::]:5000/
2017-09-09T03:32:02.983957969Z INFO RouteController initializing
2017-09-09T03:32:02.983988563Z INFO RouteController started
@magick93
magick93 / grpc docker - not working
Created September 14, 2017 07:38
Dockerfile (i386) based on working (64bit) Dockerfile
FROM i386/ubuntu:17.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
build-essential autoconf libtool \
git \
pkg-config \
&& apt-get clean
Submodule path 'third_party/benchmark': checked out '44c25c892a6229b20db7cd9dc05584ea865896de'
Submodule path 'third_party/boringssl': checked out 'be2ee342d3781ddb954f91f8a7e660c6f59e87e5'
Submodule path 'third_party/boringssl-with-bazel': checked out '886e7d75368e3f4fab3f4d0d3584e4abfc557755'
Submodule path 'third_party/cares/cares': checked out '7691f773af79bf75a62d1863fd0f13ebf9dc51b1'
Submodule path 'third_party/gflags': checked out '30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e'
Submodule path 'third_party/googletest': checked out 'ec44c6c1675c25b9827aacd08c02433cccde7780'
Submodule path 'third_party/protobuf': checked out '80a37e0782d2d702d52234b62dd4b9ec74fd2c95'
Submodule path 'third_party/zlib': checked out 'cacf7f1d4e3d44d871b605da3b647f07d718623f'
[MAKE] Generating /var/local/git/grpc/libs/opt/pkgconfig/grpc.pc
[MAKE] Generating /var/local/git/grpc/libs/opt/pkgconfig/grpc_unsecure.pc
Step 14 : RUN ./installgrpc.sh
---> Running in d655726e38c6
+ git clone -b v1.6.0 --single-branch https://github.com/grpc/grpc /var/local/git/grpc
Cloning into '/var/local/git/grpc'...
Note: checking out 'b45b83ca2798126781fc878f459090ab881dcdf0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
@magick93
magick93 / protobuf-error
Created September 15, 2017 12:37
compile error protobuf 3.0.0
make[2]: Entering directory '/var/local/git/protobuf-3.0.0/src'
depbase=`echo google/protobuf/compiler/main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
/usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/compiler/main.o -MD -MP -MF $depbase.Tpo -c -o google/protobuf/compiler/main.o google/protobuf/compiler/main.cc &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo google/protobuf/stubs/atomicops_internals_x86_gcc.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../libtool --tag=CXX --mode=compile /usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/stubs/atomicops_internals_x86_gcc.lo -MD -MP -MF $depbase.Tpo -c -o google/protobuf/stubs/atomicops_internals_x86_gcc.lo google/protobuf/stubs/atomicops_internals_x86_gcc.cc &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: /usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-comp