Skip to content

Instantly share code, notes, and snippets.

View eatgrass's full-sized avatar
🌴
On vacation

Eatgrass eatgrass

🌴
On vacation
View GitHub Profile
@eatgrass
eatgrass / query dupicate.sql
Last active November 18, 2016 02:15
MySql snippets
select
nickname, count(id) as cnt
from
customer
group by
nickname having cnt > 1
@eatgrass
eatgrass / Nginx SSL HTTPS
Created November 8, 2016 06:11
nginx.conf add ssl certificate
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;
@eatgrass
eatgrass / config
Created October 4, 2015 06:04
ssh config file for muti keypairs
#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
@eatgrass
eatgrass / AndroidManifest.xml
Created September 21, 2015 10:00
Roboguice 3 Integration
<?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"