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
| { | |
| "name":"com.example/library1", | |
| "version":"1.0.0", | |
| "description":"Some library", | |
| "deps":[ | |
| "com.example/library2", | |
| "com.example/library3" : "=1.2.1" | |
| ], | |
| "classMap":["src/","lib/"], | |
| "repository":{ |
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
| select * from table1; | |
| select * from table1 as tbl; | |
| select * from table1 tbl; | |
| select tbl.* from table1 tbl; | |
| select tbl.* from table1 as tbl; | |
| select id, tbl.name from table1 as tbl; | |
| select `id`, `tbl`.`name` from `table1` as tbl; | |
| select tbl.* from table1 as tbl where tbl.add_date>'2016-01-01' order by tbl.id desc; |
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
| /* | |
| * Licensed to the Apache Software Foundation (ASF) under one | |
| * or more contributor license agreements. See the NOTICE file | |
| * distributed with this work for additional information | |
| * regarding copyright ownership. The ASF licenses this file | |
| * to you under the Apache License, Version 2.0 (the | |
| * "License"); you may not use this file except in compliance | |
| * with the License. You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
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 | |
| global $url; | |
| $url = $_SERVER['argv'][1]; | |
| $botId= $_SERVER['argv'][2]; | |
| echo "Use url=${url}\n"; | |
| echo "Use botId=${botId}\n"; | |
| $updateId=0; |
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 | |
| $vars = array( | |
| 'CLIENT_LONG_PASSWORD', | |
| 'CLIENT_FOUND_ROWS', | |
| 'CLIENT_LONG_FLAG', | |
| 'CLIENT_CONNECT_WITH_DB', | |
| 'CLIENT_NO_SCHEMA', | |
| 'CLIENT_COMPRESS', | |
| 'CLIENT_ODBC', |
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
| keytool -v -list -storetype pkcs12 -keystore PassType.p12 |
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
| You could use Jadira's scaffolding for this. | |
| You can subclass AbstractUserTypeHibernateIntegrator from Jadira, and register your Integrator in META-INF/services/org.hibernate.integrator.spi.Integrator in your Jar. | |
| Disclaimer: I maintain Jadira. | |
| http://stackoverflow.com/questions/21020603/hibernate-custom-type-autoregistration |
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 | |
| until nc -z postgres 5432; do | |
| echo "$(date) - waiting for postgres..." | |
| sleep 1 | |
| done |
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
| <reporting> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>cobertura-maven-plugin</artifactId> | |
| <version>2.4</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> |
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 | |
| FROM=$1 | |
| sed -r 's/<\?(php)?\s*echo/<?=/' ${FROM} |sed -r 's/<\?=\s*/<?=/g' > 1.out | |
| mv 1.out ${FROM} |