Skip to content

Instantly share code, notes, and snippets.

@BUNotesAI
BUNotesAI / 00 [A brief example of protocols and records in Clojure].md
Created April 11, 2018 06:14
A brief example of protocols and records in Clojure clj
@BUNotesAI
BUNotesAI / 00 [shell脚本实现使用find和xargs删除隐藏的全部git子目录].md
Created April 11, 2018 06:01
shell脚本实现使用find和xargs删除隐藏的全部git子目录

shell脚本实现使用find和xargs删除隐藏的全部git子目录

@BUNotesAI
BUNotesAI / _ [searching github code].md
Last active April 11, 2018 05:53
searching github code [search]

我常用的几个

in:file

language:clojure

user:foxlog

org:google

@BUNotesAI
BUNotesAI / 00 [merge multiple csv files into one file with jdk8].md
Last active April 11, 2018 02:14
merge multiple csv files into one java

合并多个文件到一个csvn文件。

跳过第一行即可.

@BUNotesAI
BUNotesAI / 00 [java oracle数据库驱动ojdbc的不同版本].md
Last active April 11, 2018 02:17
oracle ojdbc driver java jdk 1.6 兼容
@BUNotesAI
BUNotesAI / 00 [查看java class文件的jdk版本].md
Last active April 11, 2018 02:18
查看 java class version jdk

使用 UE 打开 class 文件,第一行内容: 00000000h: CA FE BA BE 00 00 00 32 00 A9 07 00 02 01 00 37 ; 漱壕...2.?....7 前四个字节为固定的 CA FE BA BE ,接下来的四个字节为次版本号(0000)和主版本号(0032)。

33:JDK1.7
32:JDK1.6
31:JDK1.5 
30:JDK1.4 
@BUNotesAI
BUNotesAI / 00 [在mac上安装卸载不同版本的jdk].md
Last active September 7, 2018 17:22
install uninstall jdk 1.6 1.7 1.8 on Mac

see here:https://www.java.com/en/download/faq/java_6.xml

核心: 要安装1.6的版本必须首先卸载掉所有的新版本.

Where can I get the latest version of Java 6?

We highly recommend downloading and installing the latest Java version. The latest release for Java contains many new features, performance enhancements, and bug fixes to improve the running of Java applets or applications.

Java SE 6 End of Public Updates NoticeOracle no longer posts updates of Java SE 6 to its public download sites. All Java 6 releases up to and including 6u45 have been moved to the Java Archive on the Oracle Technology Network, where they will remain available but not receive further updates. Oracle recommends that users migrate to the latest Java version in order to continue receiving public updates and security enhancements.

@BUNotesAI
BUNotesAI / 00 [jxls in Clojure].clj
Last active April 11, 2018 02:21
jxls in Clojure [excel process clj] from: http://bit.ly/2GJ72aF
:dependencies [[org.clojure/clojure "1.8.0"]
[org.jxls/jxls "2.4.2"]
[org.jxls/jxls-poi "1.0.13" :exclusions [org.jxls/jxls]]])
(import [org.jxls.util JxlsHelper])
(import [org.jxls.common Context])
(require '(clojure.java [io :as io]))
;; http://jxls.sourceforge.net/xls/object_collection_template.xls
@BUNotesAI
BUNotesAI / [AIX系统安装JDK].md
Last active April 11, 2018 02:22
AIX系统安装JDK [smit 命令, jdk, jre]
@BUNotesAI
BUNotesAI / 可以代替tmux的ssh工具 mosh.md
Last active April 11, 2018 02:24
可以代替tmux的ssh工具 mosh
mosh --ssh="ssh -p 2222" figrindan