Skip to content

Instantly share code, notes, and snippets.

@luisffc
luisffc / jenkins-update.sh
Created May 16, 2017 15:12
A simple script to update Jenkins war
#! /bin/bash
set -e
JENKINS_BASE_PATH=/usr/share/jenkins/
CURRENT_VERSION=$1
NEW_VERSION=$2
help(){
echo "Usage: \n\t$0 current_version new_version"
@luisffc
luisffc / muleface.xml
Created April 25, 2016 02:43
Get Facebook posts using Mule ESB
<facebook:config-with-oauth name="Facebook"
consumerKey="${consumerKey}" consumerSecret="${consumerSecret}"
doc:name="Facebook" scope="user_posts">
<facebook:oauth-callback-config domain="localhost"
localPort="${http.port}" remotePort="${http.port}" path="fbcallback" />
</facebook:config-with-oauth>
<http:listener-config name="HTTP_Listener_Configuration"
host="localhost" port="${http.port}" doc:name="HTTP Listener Configuration" />
@luisffc
luisffc / gist:2ca19f540a515f9b17f4
Created September 30, 2014 12:54
Property with id inside Spring XML context file
<util:properties id="webProperties" location="classpath:life-web.properties"/>
<bean name="..." class="...">
<constructor-arg value="#{webProperties['email.smtp']}"/>
</bean>
@luisffc
luisffc / gist:4e0bdb2fcba9d905ba81
Created September 29, 2014 19:33
A Maven resource witch retrivies folder content depending on the envirolment
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>development/*</exclude>
<exclude>test/*</exclude>
<exclude>stage/*</exclude>
</excludes>
</resource>
<resource>