Skip to content

Instantly share code, notes, and snippets.

@stainboy
stainboy / findup.sh
Created September 26, 2017 10:34
Find duplicated classes in WAR file
#!/usr/bin/env bash
# set -ex
function process {
local jar=$1
unzip -l $jar | grep .class | awk '{print $4" '$jar'"}' >> wtf.txt
}
export -f process
function findup {
@stainboy
stainboy / cpp-manipulate-excel-2010.cpp
Last active October 14, 2018 17:52
Working with Excel via C++
// 包含ATL库
#include <atlbase.h>
// 导入Office库
#import "C:\Program Files\Common Files\Microsoft Shared\OFFICE14\MSO.DLL" \
rename( "RGB", "MSORGB" )
using namespace Office;
// 导入VB库
#import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"