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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.foo.bar" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<application | |
android:icon="@drawable/ic_launcher" | |
android:label="@string/app_name" | |
android:theme="@style/AppTheme" > | |
<meta-data android:name="roboguice.modules" |
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
#gitlab | |
Host 10.1.1.188 | |
HostName 10.1.1.188 | |
IdentityFile ~/.ssh/id_rsa_gitlab | |
#github | |
Host github.com | |
HostName github.com | |
PreferredAuthentications publickey | |
IdentityFile ~/.ssh/id_rsa_github |
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
server { | |
listen 443; | |
server_name localhost; | |
ssl on; | |
ssl_certificate path/cert.pem; | |
ssl_certificate_key path/cert.key; | |
ssl_session_timeout 5m; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL; | |
ssl_prefer_server_ciphers on; |
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
select | |
nickname, count(id) as cnt | |
from | |
customer | |
group by | |
nickname having cnt > 1 |
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
mysqld --verbose --help | grep -A 1 'Default options' |
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
public interface ClassADAO { | |
@Select("SELECT id, name, description FROM TableA WHERE id = #{id}") | |
@Results({@Result(property = "id", column = "id"), | |
@Result(property = "list", javaType = List.class, column = "id", | |
many = @Many(select = "ClassBDao.getClassBForClassA"))}) | |
ClassA getClassAById(@Param("id") long id); | |
} |
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
netstat -nat|grep 8080|awk '{print $6}' |sort|uniq -c|sort -rn | |
lsof -i:8080|awk '{print $10}' |sort|uniq -c|sort -rn |
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
sudo -u admin /usr/local/java/bin/jps -mlvV |
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
-- 1 week ago | |
SELECT * FROM table WHERE inputtime>DATE_SUB(CURDATE(), INTERVAL 1 WEEK) | |
-- 1 year ago | |
select *,YEAR(dateTime) from table where year(dateTime)=year(date_sub(now(),interval 1 year)); |
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
/** | |
* Static methods for working with types. | |
* | |
* @author Bob Lee | |
* @author Jesse Wilson | |
*/ | |
final class Types { | |
private static final Type[] EMPTY_TYPE_ARRAY = new Type[0]; |
OlderNewer