This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir .ethereum | |
nohup geth > .ethereum/geth.log 2>&1 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo `date` | |
ps -fe|grep geth |grep -v grep # 查看进程是否存在 | |
if [ $? -ne 0 ] | |
then | |
/root/geth.sh # 进程不存在的话调用启动脚本 | |
else | |
echo "running....." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<script src="jsnetworkx.js"></script> | |
<script src="d3.min.js"></script> | |
<body> | |
<div id='canvas'></div> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |