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
-- Jota Freitas Jr - Remover tabelas para controle de Spring Batch | |
DROP TABLE BATCH_STEP_EXECUTION_CONTEXT ; | |
DROP TABLE BATCH_JOB_EXECUTION_CONTEXT ; | |
DROP TABLE BATCH_STEP_EXECUTION ; | |
DROP TABLE BATCH_JOB_EXECUTION_PARAMS ; | |
DROP TABLE BATCH_JOB_EXECUTION ; | |
DROP TABLE BATCH_JOB_INSTANCE ; | |
DROP SEQUENCE BATCH_STEP_EXECUTION_SEQ ; |
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
-- Jota Freitas Jr - Criar tabelas para controle de Spring Batch | |
CREATE TABLE BATCH_JOB_INSTANCE ( | |
JOB_INSTANCE_ID NUMBER(19,0) NOT NULL PRIMARY KEY , | |
VERSION NUMBER(19,0) , | |
JOB_NAME VARCHAR2(100) NOT NULL, | |
JOB_KEY VARCHAR2(32) NOT NULL, | |
constraint JOB_INST_UN unique (JOB_NAME, JOB_KEY) | |
) ; |
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
class CustomException extends Exception { | |
private String message = null; | |
public CustomException() { | |
super(); | |
} | |
public CustomException(String message) { | |
super(message); |
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 | |
# Moving a repo by Jota Jr | |
echo "Script to migrate a repository to a new origin" | |
echo "Enter the git repository path: " | |
read path_repo |
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 | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
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 | |
#Script to create a SSH Tunnel by Jota Freitas Jr | |
clear | |
echo "SSH Tunnel - Create a Connection" | |
echo "Let's Config our Dynamic Connection!" | |
read -p "Enter hostname/IP that you want to connect: " host |
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
Byobu Commands | |
============== | |
byobu Screen manager | |
Level 0 Commands (Quick Start) | |
------------------------------ | |
<F2> Create a new window |
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
#include <iostream> | |
#include <map> | |
#include <string> | |
#include <iterator> | |
int main() | |
{ | |
std::map<std::string, int> mapaParametros; | |
// Inserindo dados |
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
/** | |
* example C code using libcurl and json-c | |
* to post and return a payload using | |
* http://jsonplaceholder.typicode.com | |
* | |
* Requirements: | |
* | |
* json-c - https://github.com/json-c/json-c | |
* libcurl - http://curl.haxx.se/libcurl/c | |
* |
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
//: Playground - noun: a place where people can play | |
var str = "Hello, playground" | |
print(str) | |
// Inicio dos estudos de swift | |
var optionalString: String? = "Hello" | |
print(optionalString == nil) |
NewerOlder