Skip to content

Instantly share code, notes, and snippets.

View tonit's full-sized avatar
🍼
Growing Developer Culture

Toni Menzel tonit

🍼
Growing Developer Culture
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tonit on github.
  • I am tonit (https://keybase.io/tonit) on keybase.
  • I have a public key ASChNSxCcg7wNKVcjPKa-TwkeDYzwji5cFg0GXgD5ezQuwo

To claim this, I am signing this object:

@tonit
tonit / Dockerfile
Last active November 22, 2019 10:42
This is an example of turning a potentially more complex build into a docker build which is very repeatable and ready to be used in cloud build engines
FROM maven:3.5-jdk-8-alpine as builder
# Copy local code to the container image.
WORKDIR /app
COPY pom.xml .
COPY src ./src
# Build a release artifact.
RUN mvn package -DskipTests
@tonit
tonit / mac_dev_setup.sh
Created August 15, 2018 13:50 — forked from captainsafia/mac_dev_setup.sh
A set of commands I use to configure my Mac for development
# Create a global gitignore for macOS
curl https://raw.githubusercontent.com/github/gitignore/master/Global/macOS.gitignore >> ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
# Send screenshots to a directory that isn't the desktop
mkdir -p ~/Screenshots
defaults write com.apple.screencapture location ~/Screenshots
# Show all hidden files (like dotfiles)
defaults write com.apple.finder AppleShowAllFiles YES; killall Finder;
@Designate( //
ocd = Configuration.class)
@Component( //
name = Connection.PID, service = { Other.class }, //
immediate = true, //
configurationPolicy = ConfigurationPolicy.REQUIRE)
public class ConnectionDefinition implements Other {
@ObjectClassDefinition(name = "My Config")
public @interface Configuration {
{
"service.pid": "org.ops4j.pax.logging",
"log4j.rootLogger" : "DEBUG, CONSOLE",
"log4j.appender.CONSOLE": "org.apache.log4j.ConsoleAppender",
"log4j.appender.CONSOLE.layout":"org.apache.log4j.PatternLayout",
"log4j.appender.CONSOLE.layout.ConversionPattern":"%d %-5p [%t] %C{2} (%F:%L) - %m%n",
"log4j.logger.org.eclipse.jetty":"WARN",
"log4j.logger.org.apache.felix":"DEBUG"
}
Export-Package: \
org.neo4j.graphdb;version=${Bundle-Version},\
org.neo4j.graphdb.config;version=${Bundle-Version},\
org.neo4j.graphdb.event;version=${Bundle-Version},\
org.neo4j.graphdb.factory;version=${Bundle-Version},\
org.neo4j.graphdb.index;version=${Bundle-Version},\
org.neo4j.graphdb.traversal;version=${Bundle-Version},\
org.neo4j.helpers;version=${Bundle-Version},\
org.neo4j.helpers.collection;version=${Bundle-Version},\
org.neo4j.helpers.progress;version=${Bundle-Version},\
@tonit
tonit / install.sh
Created August 20, 2012 11:07
Chef Omnibus for Mac OS X 10.8
#!/bin/bash
# This is the current stable release to default to, with Omnibus patch level (e.g. 10.12.0-1)
# Note that the chef-full template downloads 'x.y.z' not 'x.y.z-r' which should be a duplicate of the latest -r
release_version="10.12.0-1"
use_shell=0
# Check whether a command exists - returns 0 if it does, 1 if it does not
exists() {
if command -v $1 &>/dev/null
154 [main] INFO org.ops4j.pax.exam.spi.DefaultExamSystem - Pax Exam System (Version: 2.3.0) created.
178 [main] INFO org.ops4j.pax.exam.spi.DefaultExamSystem - Pax Exam System (Version: 2.3.0) created.
Jan 5, 2012 1:39:35 PM org.ops4j.pax.runner.Run start
INFO: Using only arguments from command line
Jan 5, 2012 1:39:36 PM org.ops4j.pax.scanner.internal.ProvisionServiceImpl scan
INFO: Scan bundles from [scan-bundle:link:classpath:META-INF/links/org.ops4j.pax.exam.rbc.link@update@2]
Jan 5, 2012 1:39:36 PM org.ops4j.pax.scanner.internal.ProvisionServiceImpl scan
INFO: Scan bundles from [scan-bundle:link:classpath:META-INF/links/org.ops4j.pax.exam.inject.link@update@2]
Jan 5, 2012 1:39:36 PM org.ops4j.pax.scanner.internal.ProvisionServiceImpl scan
INFO: Scan bundles from [scan-bundle:link:classpath:META-INF/links/org.ops4j.pax.extender.service.link@update@2]
@tonit
tonit / gist:998752
Created May 30, 2011 11:22
oss.sonatype.org release failed
[INFO] [DEBUG] (f) packaging = pom
[INFO] [DEBUG] (f) pomFile = /Users/tonit/devel/oss/exxam/target/checkout/pom.xml
[INFO] [DEBUG] (f) updateReleaseInfo = false
[INFO] [DEBUG] -- end configuration --
[INFO] [INFO] Installing /Users/tonit/devel/oss/exxam/target/checkout/pom.xml to /Users/tonit/.m2/repository/org/ops4j/pax/exam-reactor/2.1.0/exam-reactor-2.1.0.pom
[INFO] [DEBUG] Installing org.ops4j.pax:exam-reactor/maven-metadata.xml to /Users/tonit/.m2/repository/org/ops4j/pax/exam-reactor/maven-metadata-local.xml
[INFO] [INFO] Installing /Users/tonit/devel/oss/exxam/target/checkout/target/exam-reactor-2.1.0.pom.asc to /Users/tonit/.m2/repository/org/ops4j/pax/exam-reactor/2.1.0/exam-reactor-2.1.0.pom.asc
[INFO] [DEBUG] Installing org.ops4j.pax:exam-reactor/maven-metadata.xml to /Users/tonit/.m2/repository/org/ops4j/pax/exam-reactor/maven-metadata-local.xml
[INFO] [INFO]
[INFO] [INFO] --- maven-deploy-plugin:2.5:deploy (default-deploy) @ exam-reactor ---
@tonit
tonit / gist:996674
Created May 28, 2011 06:58
Eclipse Helios Fedora Crash
[tonit@fazu eclipse]$ ./eclipse
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x007e3afc, pid=6432, tid=3077768896
#
# JRE version: 6.0_22-b22
# Java VM: OpenJDK Client VM (20.0-b11 mixed mode linux-x86 )
# Derivative: IcedTea6 1.10.1
# Distribution: Fedora release 15 (Lovelock), package fedora-57.1.10.1.fc15-i386