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
| Step 1: Add domain entry in hosts file (vim /etc/hosts) | |
| 127.0.0.1 dev.mywebsite.com | |
| Step 2: Add redirection policy in IP-Tables | |
| sudo iptables -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 8888 |
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 gmailSMTP = { | |
| "service": "Gmail", | |
| "username": "usersdn@gmail.com", | |
| "password": "22342@test", | |
| "emailTo": "test.sdn@gmail.com" | |
| }; | |
| var nodemailer = require('nodemailer'); | |
| var transporter = nodemailer.createTransport({ | |
| service: gmailSMTP.service, |
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
| Swagger file need to update for URL & path parameters integration | |
| Here | |
| httpMethod - GET/POST/PUT/DELETE | |
| uri - SWAGGER url | |
| requestParameters - is optional if url contains param like {user_id} | |
| x-amazon-apigateway-integration: | |
| httpMethod: "POST" | |
| uri: "http://54.193.106.251:10010/count/{user_id}" | |
| type: "http" | |
| responses: |
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
| $ git clone https://github.com/awslabs/aws-apigateway-swagger-importer.git | |
| $ cd aws-apigateway-swagger-importer | |
| $ mvn assembly:assembly | |
| Create | |
| $ ./aws-api-import.sh -c <path-to-local-swagger-json> | |
| Update | |
| $ ./aws-api-import.sh -u ze3xxxx9 /myappservices/api/swagger/swagger.yaml |
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
| Download bin, extract archive and add bin folder to the PATH | |
| $ wget http://mirror.fibergrid.in/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip | |
| $ unzip apache-maven-3.3.9-bin.zip | |
| $ export PATH=$PATH:/opt/apache-maven-3.3.9/bin | |
| $ mvn -v | |
| For more info, visit http://maven.apache.org/install.html |
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
| <?php | |
| /* Handle CORS */ | |
| // Specify domains from which requests are allowed | |
| header('Access-Control-Allow-Origin: *'); | |
| // Specify which request methods are allowed | |
| header('Access-Control-Allow-Methods: PUT, GET, POST, DELETE, OPTIONS'); |
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() { | |
| //input calender | |
| $(".app_datepicker").on('focus', function(){ | |
| var $this = $(this); | |
| if(!$this.data('datepicker')) { | |
| $this.removeClass("hasDatepicker"); | |
| $this.datepicker(); | |
| $this.datepicker("show"); | |
| } | |
| }); |
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
| <form action="" method="POST" name="tenants"> | |
| <table class="list"> | |
| <caption>Users</caption> | |
| <thead> | |
| <tr> | |
| <th> </th> | |
| <th>Name</th> | |
| </tr> | |
| </thead> | |
| <tbody> |
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
| <?php | |
| class OSTicketsForAccountsLink extends Link2 | |
| { | |
| /** | |
| * DB | |
| * | |
| * @var DBManager | |
| */ |
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
| <?php | |
| $dictionary["Account"]["fields"]["accounts_ost__tickets_1"] = array ( | |
| 'name' => 'accounts_ost__tickets_1', | |
| 'type' => 'link', | |
| // 'relationship' => 'accounts_ost__tickets_1', | |
| 'source' => 'non-db', | |
| 'module' => 'OST__Tickets', | |
| 'bean_name' => 'OST__Tickets', | |
| 'vname' => 'LBL_ACCOUNTS_OST__TICKETS_1_FROM_OST__TICKETS_TITLE', |