$ ansible-playbook -i hosts -c local playbook.yml
PLAY [main[0]] *******************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
ok: [127.0.0.1]
TASK [command] *******************************************************************************************************************************************************************************************************************************
changed: [127.0.0.1]$ ansible-playbook -i hosts -c local playbook.yml
PLAY [main[0]] *******************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
ok: [127.0.0.1]
TASK [debug] *********************************************************************************************************************************************************************************************************************************
ok: [127.0.0.1] => {
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
| #!/bin/bash | |
| ansible-playbook -i "localhost," -c local playbook.yml |
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
| package com.mageddo; | |
| import org.hibernate.annotations.Type; | |
| import javax.persistence.Column; | |
| import javax.persistence.Entity; | |
| import javax.persistence.Id; | |
| import javax.persistence.Table; | |
| @Table(name = "CUSTOMER") |
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
| import org.springframework.beans.BeansException; | |
| import org.springframework.context.ApplicationContext; | |
| import org.springframework.context.ApplicationContextAware; | |
| import org.springframework.context.annotation.Configuration; | |
| @Configuration | |
| public class ApplicationContextProvider implements ApplicationContextAware { | |
| private static ApplicationContext 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
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>React Hello World</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script> | |
| <script type="text/babel" > | |
| ReactDOM.render( |
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
| class List extends React.Component { | |
| constructor(props){ | |
| super(); | |
| this.props = props; // todas as propriedades setadas no List virao para ca | |
| } | |
| render() { | |
| return ( | |
| <ul {...this.props} > // todas as propriedades setadas no List setarao aqui |
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
| # roles/common/tasks/main.yml | |
| --- | |
| - import_tasks: tasks.yml | |
| when: tasks | default('no') | bool |
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
| import java.util.Scanner; | |
| public class HexToDecimal { | |
| public static void main(String[] args) { | |
| System.out.println(Integer.parseInt(new Scanner(System.in).nextLine(), 16)); | |
| } | |
| } | |
| import java.util.Locale; | |
| import java.util.Objects; |
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
| import org.apache.http.Header; | |
| import org.apache.http.client.CookieStore; | |
| import org.apache.http.impl.client.BasicCookieStore; | |
| import org.apache.http.impl.cookie.BasicClientCookie; | |
| import org.apache.http.impl.cookie.RFC6265StrictSpec; | |
| import javax.ws.rs.client.ClientRequestContext; | |
| import javax.ws.rs.client.ClientRequestFilter; | |
| import javax.ws.rs.client.ClientResponseContext; | |
| import javax.ws.rs.client.ClientResponseFilter; |