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
Description
The sub() method embeds a string in a <sub> tag: "<sub>str</sub>".
Examples
Using sub() and sup() methods
The following example uses the sub() and sup() methods to format a string:
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)
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
/etc/ssh 755
/etc/ssh/* 600
~/.ssh/* 600
@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
@QGB
QGB / F.py
Last active March 22, 2023 11:51
QPSU
def hexToBytes(a,split='',ignore_space=True):
T=py.importU().T
if ignore_space and ' ' not in split:a=T.removeAllSpace(a)
it=2
if len(split)>0:it+=len(split)
if it==2 and len(a) % it!=0:return ()
a=a.upper();r=b''
@QGB
QGB / QShell.sh
Created December 19, 2018 02:55
shell@HS8917QC:/ $ [ "$pyPath" != "" ] || echo 233
233
shell@HS8917QC:/ $
shell@HS8917QC:/ $ env|grep qs
qscript=//qshell
qsPath=//
shell@HS8917QC:/ $ unset qsPath
shell@HS8917QC:/ $ [ "$pyPath" != "" ] || echo 233 #不能检测 环境变量
233
shell@HS8917QC:/ $ env|grep qs
@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
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