Skip to content

Instantly share code, notes, and snippets.

View 88250's full-sized avatar
🎸
Talk less, code more.

D 88250

🎸
Talk less, code more.
View GitHub Profile
@88250
88250 / geth.sh
Created March 13, 2018 08:41
geth 启动
#!/bin/bash
mkdir .ethereum
nohup geth > .ethereum/geth.log 2>&1 &
@88250
88250 / supervisor.sh
Created March 13, 2018 08:39
进程守护脚本
#!/bin/bash
echo `date`
ps -fe|grep geth |grep -v grep # 查看进程是否存在
if [ $? -ne 0 ]
then
/root/geth.sh # 进程不存在的话调用启动脚本
else
echo "running....."
@88250
88250 / sample-12.html
Created July 23, 2014 09:51
标签图生成 - JavaScript 部分
<!DOCTYPE html>
<html>
<script src="jsnetworkx.js"></script>
<script src="d3.min.js"></script>
<body>
<div id='canvas'></div>
<script>
@88250
88250 / Main.java
Created July 23, 2014 09:49
标签图生成 - Java 部分
package tags;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.commons.io.IOUtils;
import org.json.JSONArray;