SQL infomix 添加自增字段
SQL infomix 添加自增字段
Create autoserial column in informix
alter table my_table add id integer before some_field;
create sequence myseq;
update my_table set id = myseq.nextval;
drop sequence myseq;
alter table my_table modify (id serial not null);
iOS 忘记登录密码
iOS 忘记登录密码
1. 进入恢复模式
方法分为iPhone 8 及之后, iPhone 7 还有 iPhone 6 及之前
2. 恢复系统
Reference
If you forgot the passcode on your iPhone, or your iPhone is disabled
Android 环境配置
Android 环境配置
Linux Deploy
Linux deploy 超详细入门教程
BuseBox & Tcpdump
# 重新挂载/system
mount -o remount,rw /system
android安装busybox
Android 下网络抓包实现
Android 刷机
Android 刷机
** 刷机前一定做好系统备份, 特别是recovery 刷包, 不然又要刷官方recovery 刷底包, 来回折腾 **
进入fastboot模式方法:
1. 按住音量下键, 插入数据线
2. 按住音量下键和电源键, 插入数据线
1. Android 刷机前需要解锁
进入fastboot模式
// 查看是否解锁
fastboot oem get-bootinfo
// 解锁
fastboot oem unlock 1109463729125518
2. 选择ROM
ATH-UL00
机锋
ROM之家
这些ROM刷机不太可靠,并且必须保证机型和型号对应, 注意机器的网络版本(全网通,双网通)
3. ...
Javaweb 上传及下载文件
Javaweb 上传及下载文件
1. 下载文件
1. Controller
@RequestMapping(value = "/t20/reportDownload", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
@ResponseBody
public String reportDownload(HttpServletRequest request, HttpServletResponse response) {
return t20Service.reportDownload(request, response);
}
2. Response
response.se...
Java html转pdf
Java itext
html转pdf
1. 代码
<!--pdf-->
<dependency>
<groupId>org.xhtmlrenderer</groupId>
<artifactId>core-renderer</artifactId>
<version>R8</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>...
Linux WSL
Linux WSL
1. 使用xrdp
Run Kali Linux on Windows 10
1.
wget https://kali.sh/xfce4.sh
chmod -x xfce4.sh
sudo ./xfce4.sh
sudo /etc/init.d/xrdp start
#!/bin/bash
echo "[+] Installing XFCE4, this will take a while"
apt-get update
apt-get dist-upgrade -y --force-yes
apt-get --yes --force-yes install kali-desktop-xfce xorg xrdp
echo "[+] Configuring...
463 post articles, 58 pages.