View git_mergetool_opt.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#execute without tests | |
mvn clean install -Dmaven.test.skip=true |
View upload_rest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Instalando as depedencias da POC: | |
sudo pip install requests | |
sudo pip install requests_toolbelt | |
''' | |
import os | |
import json | |
import requests | |
import logging |
View setVersionsMaven.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set the same version for all modules | |
mvn versions:set -DnewVersion=1.91-RELEASE |
View access_network_windows.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Press "Ctrl + L" for to open mode URL and write: | |
smb://machine-ip + enter | |
#example | |
smb://out/out |
View send_parameters_mule.RAML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
/user: | |
post: | |
description: Insert User | |
queryParameters: | |
name: | |
required: true | |
type: string | |
example: "Felipe Lima" | |
status: |
View create Base64.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -n 'felipe.souza.lima:senha'| base64 | |
exit: | |
ZmVsaXBlLnNvdXphLmxpbWE6YXJpem9uYTEy |
View kill_port.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Kill open port ubuntu | |
sudo netstat -nltpu | grep 'portNumber' | |
kill -9 portnumber |
View connect_url.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 | |
View addSessionVariable.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="get:/user/{username}:api-config"> | |
<set-session-variable variableName="username" value="#[flowVars['username']]" doc:name="Session Variable"/> | |
<set-payload value="#[payload]" doc:name="payload"/> | |
<scripting:component doc:name="Groovy"> | |
<scripting:script engine="Groovy"><![CDATA[ | |
def root = [:]; | |
root.user = sessionVars['username'] | |
def jsonContent = new groovy.json.JsonBuilder(root); | |
return jsonContent.toPrettyString(); | |
]]></scripting:script> |