This file contains hidden or 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
Jenkins 2.19.4 | |
Criar uma maquina linux com ubuntu | |
putty | |
puttygen | |
pegar nome publico | |
------------------------ | |
sudo apt-get install python-software-properties | |
------------------------ | |
sudo add-apt-repository ppa:openjdk-r/ppa | |
------------------------ |
This file contains hidden or 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
Rails + Docker | |
* docker run -it -v "%cd%":/usr/src/app -w /usr/src/app rails rails new --skip-bundle my_awesome_app | |
---- | |
Dockerfile | |
FROM ruby:2.3 | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/mvc | |
http://www.springframework.org/schema/beans/spring-mvc.xsd | |
http://www.springframework.org/schema/context |
This file contains hidden or 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
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.wpg</groupId> | |
<artifactId>brewer</artifactId> | |
<version>1.0.0-SNAPSHOT</version> |
This file contains hidden or 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
function encryptDecrypt(input) { | |
var key = ['K', 'C', 'Q']; //Can be any chars, and any size array | |
var output = []; | |
for (var i = 0; i < input.length; i++) { | |
var charCode = input.charCodeAt(i) ^ key[i % key.length].charCodeAt(0); | |
output.push(String.fromCharCode(charCode)); | |
} | |
return output.join(""); | |
} |
This file contains hidden or 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
spring.jpa.database=MYSQL | |
spring.datasource.url=jdbc:mysql://127.0.0.1/moneyapi?useSSL=false | |
spring.datasource.username=root | |
# spring.datasource.password=root | |
spring.jpa.show-sql=true | |
flyway: | |
enable: true | |
baselineOnMigrate: true |
This file contains hidden or 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
---https://www.w3schools.com/sql/trysql.asp?filename=trysql_op_in | |
--- | |
SELECT ContactName, Address, City FROM Customers; | |
---- | |
SELECT * FROM Customers WHERE CustomerID > 50 | |
--- | |
SELECT * FROM Customers WHERE CustomerID >= 50 | |
--- | |
SELECT * FROM Customers WHERE CustomerID <= 50 | |
--- |
This file contains hidden or 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
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEnconding>UTF-8</project.reporting.outputEnconding> | |
<failOnMissingWebXml>false</failOnMissingWebXml> | |
<java.version>1.8</java.version> | |
<maven-compiler-plugin-version>3.2</maven-compiler-plugin-version> | |
</properties> | |
This file contains hidden or 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
INSERT INTO `products` (`id`, `name`, `image_full`, `image_thumb`, `price`, `description`, `short_description`) VALUES | |
(2, 'Aromatherapy and Essential Oil', 'product_large_02.jpg', 'product_thumb_02.jpg', '30', 'Suspendisse eleifend ac nisi non rutrum. Praesent pulvinar ex at luctus luctus. Ut fermentum condimentum nibh. Cras vitae lorem a nulla euismod dapibus. Duis tempor, odio eu cursus lobortis, velit turpis tristique lorem, in vehicula velit mi ut ipsum. Nullam sed sapien velit. Sed justo urna, consectetur sed rhoncus ut, tempor et lectus. Nulla a pulvinar lectus. Sed tempor dignissim convallis.\r\n\r\nMorbi a condimentum neque. Nam lectus lorem, molestie tincidunt tincidunt sit amet, commodo eget justo. Aenean et molestie neque. Nulla tincidunt suscipit metus at consequat. Fusce tincidunt nec ipsum eu auctor. Ut rutrum ligula vitae pretium congue. Nam placerat risus metus, nec consequat sem viverra vel. Aenean consectetur tortor purus, ut luctus leo molestie eu. Praesent tristique elit sit amet sapien p |
This file contains hidden or 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
// const myName = 'Well'; | |
// console.log(myName); | |
// myName = 'Manu'; | |
// console.log(myName); | |
// function printMyName(name){ | |
// console.log(name); | |
// } |