Skip to content

Instantly share code, notes, and snippets.

View xianhuazhou's full-sized avatar

xianhua zhou xianhuazhou

View GitHub Profile
Working in the corner
Peeking over shoulders
Waiting for my time to come
Working in the corner
Peeking over shoulders
Waiting for my time to come
Working in the corner
Peeking over shoulders
import android.os.Bundle;
import android.widget.ListView;
import android.widget.Toast;
import android.app.ListActivity;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.TextView;
import android.view.View;
import android.database.sqlite.SQLiteDatabase;
import android.database.Cursor;
ArrayAdapter<String> users = new ArrayAdapter<String>(this, R.layout.user);
if (c != null) {
c.moveToFirst();
while (!c.isAfterLast()) {
users.add(String.valueOf(c.getInt(0)) + ": " + c.getString(1));
c.moveToNext();
}
}
#!/bin/sh
for f in `find /var/www/html/files -name '*.*' -mmin -60`; do /usr/local/bin/clamscan $f | grep $f | grep -v ': OK' >> /var/log/virus.log; done
We couldn’t find that file to show.
// .........
// countDown(739209)
function countDown(time) {
var format = function(d) {
return d > 9 ? d : '0' + d;
}
var showUnit = function(d) {
return d != 1 ? 's' : '';
}
# openssl req -new -x509 -keyout server1.pem -out server1.pem -days 365 -nodes
# chmod 400 server1.pem
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
}
if $HTTP["HOST"] == "a.kom" {
ssl.pemfile = "/usr/local/lighttpd/etc/server1.pem"
for f in `ls *.JPG`; do convert -resize 1024x768 $f target/`echo $f | tr A-Z a-z`; done
Server object error 'ASP 0196 : 80040154'
Cannot launch out of process component
/Global/SimpleFrameWork/SFW_fds_operator.asp, line 187
Only InProc server components should be used. If you want to use LocalServer components, you must set the AspAllowOutOfProcComponents metabase setting. Please consult the help file for important considerations.
Fatal error: Call to undefined function safeBitCheck() in /var/www/hfchina.com/mzag2_hfchina/caches/GUI/Smarty/Compiled/%%C8^C8C^C8CE918D%%detail.fairs.tpl.php on line 117
from: http://www.hmf-china.com/index.php?scriptlet=CMS/Start&tpl=fairs&id=783&cID=15