Skip to content

Instantly share code, notes, and snippets.

View QGB's full-sized avatar
💭
unhappy=

Too large to fit in the margin QGB

💭
unhappy=
  • Please
  • Follow me
View GitHub Profile
Discuz! Database Error
(2006) notconnect
PHP Debug
No. File Line Code
1 member.php 37 require(%s)
2 source/module/member/member_activate.php 20 discuz_table_archive->fetch(%s)
3 source/class/discuz/discuz_table_archive.php 29 discuz_table->fetch(%s, false)
4 source/class/discuz/discuz_table.php 94 discuz_database::fetch_first(%s)
/etc/ssh 755
/etc/ssh/* 600
~/.ssh/* 600
root@HS8917QC:/dev # lsof |grep video
mediaserv 551 media 46 ??? ??? ??? ??? /dev/video33
mm-qcamer 588 camera 3 ??? ??? ??? ??? /dev/video0
sdcard 1512 media_rw 18 ??? ??? ??? ??? /data/media/0/Android/data/com.estrongs.android.pop/cache/.duc
ache/.video/journal
com.estro 11966 u0_a241 27 ??? ??? ??? ??? /storage/emulated/0/Android/data/com.estrongs.android.pop/cach
e/.ducache/.video/journal
root@HS8917QC:/dev # lsof |grep video
mediaserv 551 media 46 ??? ??? ??? ??? /dev/video33
mm-qcamer 588 camera 3 ??? ??? ??? ??? /dev/video0
@QGB
QGB / centos6
Created December 14, 2018 09:52
没有网络的情况下可以用这个设置时间
1、date -s
date -s 20181119
date -s 23:40:00
把系统时间写入BIOS时间里。执行命令hwclock -w保存软件时间至硬件时间。
hwclock -w
public void print(Object... args){
String r="";
for (int i = 0; i < args.length; i++) {
r+=args[i].toString()+",";
}
Toast.makeText(this, r, Toast.LENGTH_LONG).show();
AlertDialog.Builder alertDialogBuilder=new AlertDialog.Builder(this);
AlertDialog alertDialog = alertDialogBuilder.create();
alertDialog.setMessage(r);
alertDialog.show();//将dialog显示出来
@QGB
QGB / U9180
Created December 21, 2018 07:58
-rw-r--r-- root root 207 1970-01-01 08:00 default.prop
root@X9180:/ # chmod 647 default.prop
root@X9180:/ # ll default.prop
-rw-r--rwx root root 207 1970-01-01 08:00 default.prop
@QGB
QGB / NDK
Created December 20, 2018 03:26
total 24
drwx------ 6 u0_a81 u0_a81 3488 Dec 20 11:24 .
drwxr-xr-x 14 u0_a81 u0_a81 3488 Dec 20 11:24 ..
drwx------ 2 u0_a81 u0_a81 3488 Dec 20 11:24 arm64-v8a
drwx------ 2 u0_a81 u0_a81 3488 Dec 20 11:24 armeabi-v7a
drwx------ 2 u0_a81 u0_a81 3488 Dec 20 11:24 x86
drwx------ 2 u0_a81 u0_a81 3488 Dec 20 11:24 x86_64
$ cd arm64-v8a/
$ ll
total 8
306 ./aosp-root/aosp/.repo/project-objects/platform/prebuilts/tools.git/objects [3/1953]
306 ./aosp-root/aosp/.repo/project-objects/platform/prebuilts/tools.git/objects/pack
308 ./aosp-root/aosp/development
308 ./aosp-root/aosp/prebuilts/tools/common/m2
308 ./aosp-root/aosp/prebuilts/tools/common/m2/repository
317 ./aosp-root/aosp/out/host/linux-x86/obj
319 ./aosp-root/aosp/.repo/project-objects/platform/prebuilts/gcc/linux-x86
329 ./aosp-root/aosp/.repo/project-objects/platform/cts.git
329 ./aosp-root/aosp/.repo/project-objects/platform/cts.git/objects
329 ./aosp-root/aosp/.repo/project-objects/platform/cts.git/objects/pack
@QGB
QGB / LNMP
Created January 29, 2019 08:25
1: 1 windows (created Mon Jan 21 14:40:13 2019) [197x62] (attached)
root@U1604:~# tmux at
make[1]: Leaving directory '/root/lnmp/src/pure-ftpd-1.0.47/gui'
Making install in m4
make[1]: Entering directory '/root/lnmp/src/pure-ftpd-1.0.47/m4'
make[2]: Entering directory '/root/lnmp/src/pure-ftpd-1.0.47/m4'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/lnmp/src/pure-ftpd-1.0.47/m4'
make[1]: Leaving directory '/root/lnmp/src/pure-ftpd-1.0.47/m4'
@QGB
QGB / Apache
Created February 21, 2019 03:44
/phpstudy/server/httpd/conf/httpd.conf
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used. If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.