Skip to content

Instantly share code, notes, and snippets.

View vincent-zurczak's full-sized avatar

Vincent Zurczak vincent-zurczak

View GitHub Profile
@rafaeltuelho
rafaeltuelho / camel-raw-oauth.java
Created January 18, 2017 12:47
camel snippet using oauth to get an auth token and use it to request a secured rest service
from("timer://scheduler?period=30s")
.log("get access token")
.to("direct:authService");
from("direct:authService").tracing()
.setHeader(Exchange.HTTP_PATH)
.simple("<auth service context>/oauth2/token")
.setHeader("CamelHttpMethod")
.simple("POST")
.setHeader("Content-Type")
@steinermatt
steinermatt / enunciate.xml
Created October 16, 2014 15:06
enterprise-granny: enunciate.xml
<?xml version="1.0"?>
<enunciate label="Enterprise Granny" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.28.xsd">
<namespaces>
<namespace id="Addressbook" uri="http://api.enterprise-granny.samples.cloud.sap.com/model" />
</namespaces>
<services>
<rest defaultRestSubcontext="/api/v1" />
wiredep = require( 'wiredep' )
path = require 'path'
# Karma configuration
module.exports = ( config ) ->
config.set
# enable / disable watching file and executing tests whenever any file changes
autoWatch: true
# base path, that will be used to resolve files relative to this file
@Thermionix
Thermionix / userDefineLang_Groovy.xml
Last active January 18, 2024 21:20
Groovy user defined language for notepad++
<NotepadPlus>
<UserLang name="Groovy" ext="groovy" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">03/* 04*/ 00// 01 02</Keywords>
<Keywords name="Keywords1">abstract break case catch continue default do else extends final finally for if implements instanceof native new private protected public return static switch synchronized throw throws transient try volatile while strictfp package import false null super this true</Keywords>
<Keywords name="Keywords2">as assert def mixin property test using in it</Keywords>
@eleco
eleco / Item.java
Last active December 26, 2015 04:08
hide exception
package com.company;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Item {
Logger log = Logger.getLogger("ItemLogger");
public boolean function(String param) {
@hgomez
hgomez / upload2bintray.sh
Last active March 24, 2017 08:58
Sample script to upload RPM package to bintray
#!/bin/sh
#
# You should define BINTRAY_ACCOUNT and BINTRAY_APIKEY here or from the outside
# BINTRAY_ACCOUNT is you Bintray account and BINTRAY_APIKEY, API Key generated under your Bintray profile
# Redefine following variables to match your own usage
RPMS_DIR=RPMS/noarch
BINTRAY_ACCOUNT=hgomez
BINTRAY_REPO=devops-incubator-rpm