Skip to content

Instantly share code, notes, and snippets.

View felipebizz's full-sized avatar
🤔

Felipe Lima felipebizz

🤔
View GitHub Profile
@felipebizz
felipebizz / kill_port.bash
Created June 25, 2015 14:24
Kill open port ubuntu
# Kill open port ubuntu
sudo netstat -nltpu | grep 'portNumber'
kill -9 portnumber
@felipebizz
felipebizz / setVariable.groovy
Created June 26, 2015 22:15
[Mule] Set variable value inside Groovy
<flow name="get:/setVariable:api-config">
<set-variable variableName="username" value="" doc:name="username"/>
<scripting:component doc:name="Groovy">
<scripting:script engine="Groovy">
<![CDATA[
String value = 'felipe'
message.setInvocationProperty('username', value)
]]></scripting:script>
</scripting:component>
@felipebizz
felipebizz / create Base64.bash
Created July 7, 2015 21:58
create base64 of user/pass in terminal by example
echo -n 'felipe.souza.lima:senha'| base64
exit:
ZmVsaXBlLnNvdXphLmxpbWE6YXJpem9uYTEy
@felipebizz
felipebizz / send_parameters_mule.RAML
Last active August 29, 2015 14:25
[Mule] Send parameters via API RAML
#
/user:
post:
description: Insert User
queryParameters:
name:
required: true
type: string
example: "Felipe Lima"
status:
@felipebizz
felipebizz / access_network_windows.sh
Created July 17, 2015 19:18
Access network Windows by ubuntu
#Press "Ctrl + L" for to open mode URL and write:
smb://machine-ip + enter
#example
smb://out/out
@felipebizz
felipebizz / setVersionsMaven.sh
Created July 22, 2015 13:50
[Maven] - Set Version in pom.xml
#set the same version for all modules
mvn versions:set -DnewVersion=1.91-RELEASE
@felipebizz
felipebizz / upload_rest.py
Created September 8, 2015 17:49
Upload via REST to Nuxeo with python
'''
Instalando as depedencias da POC:
sudo pip install requests
sudo pip install requests_toolbelt
'''
import os
import json
import requests
import logging
@felipebizz
felipebizz / maven_util.sh
Created September 10, 2015 14:26
Maven Utils
#execute without tests
mvn clean install -Dmaven.test.skip=true
@felipebizz
felipebizz / hibernate.md
Last active March 21, 2016 14:00
Active hibernate Log
Add property inside of application.properties

spring.jpa.show-sql=true

#####or in file persistence.xml Activate the property for True

@felipebizz
felipebizz / meld.bash
Last active September 24, 2015 20:26
Configuration Meld on Git
#install the Meld in your terminal
apt-get install meld
#Do Download of file git_mergetool_opt.sh
https://gist.github.com/felipebizz/a7a54b4f6a3e091925f5
#Let this file in ~/
#open your file gitconfig and add this piece of code
[mergetool "git_mergetool_opt"]