Skip to content

Instantly share code, notes, and snippets.

Luis Cavalcante luisffc

Block or report user

Report or block luisffc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@luisffc
luisffc / jenkins-update.sh
Created May 16, 2017
A simple script to update Jenkins war
View jenkins-update.sh
#! /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 Apr 25, 2016
Get Facebook posts using Mule ESB
View muleface.xml
<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 Sep 30, 2014
Property with id inside Spring XML context file
View gist:2ca19f540a515f9b17f4
<util:properties id="webProperties" location="classpath:life-web.properties"/>
<bean name="..." class="...">
<constructor-arg value="#{webProperties['email.smtp']}"/>
</bean>
@luisffc
luisffc / gist:4e0bdb2fcba9d905ba81
Created Sep 29, 2014
A Maven resource witch retrivies folder content depending on the envirolment
View gist:4e0bdb2fcba9d905ba81
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>development/*</exclude>
<exclude>test/*</exclude>
<exclude>stage/*</exclude>
</excludes>
</resource>
<resource>
You can’t perform that action at this time.