Skip to content

Instantly share code, notes, and snippets.

Avatar
😀

Felipe Lima felipebizz

😀
View GitHub Profile
@felipebizz
felipebizz / git_mergetool_opt.sh
Created Sep 24, 2015
File for to use in Tutorial MELD
View git_mergetool_opt.sh
#!/bin/bash
#
BASE=$1
LOCAL=$2
REMOTE=$3
MERGED=$4
# echo "Base (b), Local: (l), Remote: (r)"
# echo -n "which file to choose [b/l/r]: "
# read opt
View maven_util.sh
#execute without tests
mvn clean install -Dmaven.test.skip=true
@felipebizz
felipebizz / upload_rest.py
Created Sep 8, 2015
Upload via REST to Nuxeo with python
View upload_rest.py
'''
Instalando as depedencias da POC:
sudo pip install requests
sudo pip install requests_toolbelt
'''
import os
import json
import requests
import logging
@felipebizz
felipebizz / setVersionsMaven.sh
Created Jul 22, 2015
[Maven] - Set Version in pom.xml
View setVersionsMaven.sh
#set the same version for all modules
mvn versions:set -DnewVersion=1.91-RELEASE
@felipebizz
felipebizz / access_network_windows.sh
Created Jul 17, 2015
Access network Windows by ubuntu
View access_network_windows.sh
#Press "Ctrl + L" for to open mode URL and write:
smb://machine-ip + enter
#example
smb://out/out
@felipebizz
felipebizz / send_parameters_mule.RAML
Last active Aug 29, 2015
[Mule] Send parameters via API RAML
View send_parameters_mule.RAML
#
/user:
post:
description: Insert User
queryParameters:
name:
required: true
type: string
example: "Felipe Lima"
status:
@felipebizz
felipebizz / create Base64.bash
Created Jul 7, 2015
create base64 of user/pass in terminal by example
View create Base64.bash
echo -n 'felipe.souza.lima:senha'| base64
exit:
ZmVsaXBlLnNvdXphLmxpbWE6YXJpem9uYTEy
@felipebizz
felipebizz / kill_port.bash
Created Jun 25, 2015
Kill open port ubuntu
View kill_port.bash
# Kill open port ubuntu
sudo netstat -nltpu | grep 'portNumber'
kill -9 portnumber
@felipebizz
felipebizz / connect_url.bash
Created Jun 24, 2015
[Mule] Url JTDS jdbc Connect with SQL
View connect_url.bash
#Squirrel
jdbc:jtds:sqlserver://192.168.0.112:1433;databaseName=BASE_DEV
#MULE
jdbc:jtds:sqlserver://192.168.0.7:1433;databaseName=BASE_DEV;user=user;password=pass
@felipebizz
felipebizz / payload.groovy
Last active Aug 29, 2015
[Mule] Create JSON with Groovy from a payload Mule
View payload.groovy
<scripting:component doc:name="Groovy">
<scripting:script engine="Groovy"><![CDATA[
def list = [];
def issue = [:];
for(i = 0 ; i < payload.size(); i++){
issue.id = 'arizona.jobdone.processo.' + payload[i].JOB_ID + '-' + payload[i].PROCESS_ID;
issue.key = 'arizona.jobdone.processo.' + payload[i].JOB_ID + '-' + payload[i].PROCESS_ID;
issue.fields = [:];
issue.fields.summary = payload[i].JOB_ID + '|' + payload[i].PROCESS_ID + '| Desd.3 |' + payload[i].CLIENTE + '|' + payload[i].AGENCIA + '| capas | PRINT |' + payload[i].PROCESS_NAME
issue.fields.project = [:];