Skip to content

Instantly share code, notes, and snippets.

View eagleon's full-sized avatar
🌴
On vacation

eagleon eagleon

🌴
On vacation
View GitHub Profile
@eagleon
eagleon / server.xml
Created February 26, 2015 02:27
tomcat多域名配置
<?xml version='1.0' encoding='utf-8'?>
<!--
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
@eagleon
eagleon / .bashrc
Created February 11, 2015 06:47
shell常用配置
alias json="python -mjson.tool"
@eagleon
eagleon / anquan.md
Created February 1, 2015 07:46
网络安全
@eagleon
eagleon / git.md
Last active November 6, 2015 08:38
Git常用技巧

#Git常用技巧

##1. windows下使用git,如何保存push到远程仓库时使用的密码: push到远程仓库时,不同系统下面如何去保存验证信息。其中提到了一个软件:git-credential-winstore
把git-credential-winstore放到git\bin下,然后执行:

  git config --global credential.helper winstore 

git 2.0后

@eagleon
eagleon / db2.md
Last active August 29, 2015 14:10
db2 常见操作

db2 常见操作

  1. 删除当前schema下所有表:

DB2不提供命令删除某个schema下的数据,但可以通过脚本来做。

  db2 "select 'drop table ' || rtrim(tabschema) ||'.' ||tabname || ';' from syscat.tables where tabschema='testschema' " > droptable.ddl
  
 db2 connect to 
@eagleon
eagleon / gist:2639977bb42c3ad90697
Last active August 29, 2015 14:10 — forked from plucury/gist:3009512
git log / git lg
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
@eagleon
eagleon / ExcelUtil.java
Created November 26, 2014 16:35
poi excel util
package com.hp.idm.util;
import org.apache.poi.ss.usermodel.Sheet;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
@eagleon
eagleon / BigGridDemo.java
Created November 26, 2014 16:29
poi 导出大量数据 , 使用xml方式输出
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.util.Calendar;
@eagleon
eagleon / jdk_download.sh
Last active January 22, 2021 07:03 — forked from P7h/jdk_download.sh
# Shell script to download Oracle JDK from command prompt / terminal.
# You can download all the binaries one-shot by just giving the BASE_URL.
## Features:
# Resumes a broken [previous] download, if any.
# Renames the file to a proper name with platform adding platform info.
# Downloads all the following from Oracle Website with one shell invocation.
# a. Windows 64 and 32 bit;
# b. Linux 64 and 32 bit; and
# c. API Docs.
@eagleon
eagleon / form.html
Created November 20, 2014 08:01
支付宝捐赠页面
<form action="https://shenghuo.alipay.com/send/payment/fill.htm" id="juanzeng" method="post" name="juanzeng" target="_blank" style="display:inline">
<input type="image" src="http://icloud.b0.upaiyun.com/zeng/juanzeng03_new.jpg" border="0" name="submit" alt="支付宝捐赠" />
<input name="optEmail" type="hidden" value="[email protected]" />
<input name="memo" type="hidden" value="对书格留言:" />
<input id="payAmount" name="payAmount" type="hidden" value="" />
<input id="title" name="title" type="hidden" value="捐赠支持书格" />
</form>
http://v2ex.com/t/148013#reply2