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 |
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 |
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 |
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 |
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 |
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: |
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 |
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 |
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 | |
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> |