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 | |
dest_file="/tmp/my/a.txt" | |
all_ip_file="/tmp/my/ip.txt" | |
result_ip_file="/tmp/my/result.txt" | |
function allIP() { | |
cat $dest_file | awk -F" " '{print $NF}' > $all_ip_file | |
} |
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
http://libre-free.com/detail?id=903 | |
class FindWebView extends WebView { | |
private static final String LOGTAG ="FindWebView"; | |
public ActionMode.Callback callback; | |
private OnScrollChangedListener mOnScrollChangedListener; | |
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
#一个矩阵 | |
G = [[randrange(2) for i in range(n)] for i in range(n)] |
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
rdesktop -r disk:documents=/home/dean/Documents my.remoteserver.net | |
访问 \\tsclient\documents | |
./rdesktop -A -s "C:\seamlessrdp\seamlessrdpshell.exe | |
C:\seamlessrdp\RAM.exe" | |
<IP address> |
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
1.编译时第三方提示警告,某些类有问题。 | |
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)","position":{},"original":"\tat com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)"} | |
http://stackoverflow.com/questions/29255682/execution-failed-for-task-apppredexdebug | |
2.使用命令行打包多个库的aar | |
http://hugozhu.myalert.info/2014/11/05/52-assemble-aar-with-all-dependencies-with-gradle.html |
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
brew info pyqt | |
Python modules have been installed and Homebrew's site-packages is not | |
in your Python sys.path, so you will not be able to import the modules | |
this formula installed. If you plan to develop with these modules, | |
please run: | |
mkdir -p /Users/lijunjie/Library/Python/2.7/lib/python/site-packages | |
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/lijunjie/Library/Python/2.7/lib/python/site-packages/homebrew.pth |
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
ctds=document.getElementsByTagName("td"); | |
var b=""; | |
function a(ctds) { | |
for(i=0;i<ctds.length;i++) { | |
text=ctds[i].innerText; | |
// alert(text); | |
if(ValidateIPaddress(text)) { | |
// alert(text); | |
b=text+";"; | |
console.info(b); |
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 | |
search_key=$1 | |
tmp_file=/tmp/my/a.txt | |
tmp_b_file=/tmp/my/b.txt | |
function writeStrToFile() { | |
str=$1 | |
str_file=$2 |
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
1.管道 | |
# script reverse.py | |
#!/usr/bin/env python | |
import sys | |
for l in sys.stdin.readlines(): | |
sys.stdout.write(l[::-1]) | |
cat reverse.py | ./reverse.py |
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
Q:Too many bind arguments. 5 arguments were provided but the statement needs 4 arguments | |
A:sql中的?加了双引号 |