HTML 浏览器直接打印,表格自动分页代码。

<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Test</title> <style type="text/css"> table { page-break-inside:auto ...

2017/09/12 00:27
1.8K
OSX下递归搜索指定目录下的图片文件,并copy到指定的目录下。

递归搜索指定目录下的图片文件,并copy到指定的目录下。 find . -name "*.jpg" | xargs -J % cp -rp % /Users/user/Downloads/done...

Enabling memory and swap accounting for Docker on opensuse 42.2

The following error is generated when the Docker host kernel does not take memory and swap accounting into consideration: WARNING: Your kernel does not support cgroup swap limit...

Debain 8.* 下安装最新版本的nginx(1.10.*)

$ sudo sh -c "echo 'deb http://nginx.org/packages/debian/ `lsb_release -cs` nginx' >> /etc/apt/sources.list" $ sudo sh -c "echo 'deb-src http://nginx.org/packages/debian/ `lsb_r...

2016/12/18 21:28
268
Ubuntu 16.04 LTS下安装淘宝Tengine

1 安装前准备: apt install build-essential apt install libpcre3-dev libpcre3 libssl-dev libssl1.0.0 2. 下载jemalloc,https://github.com/jemalloc/jemalloc/releases 3. 安装 jema...

git库清理

java -jar bfg.jar --strip-blobs-bigger-than 5M my-repo.git java -jar bfg.jar --no-blob-protection --delete-files '*.{jar,zip,war,out,log}' my-repo.git cd my-repo.git git reflog...

git
2016/10/26 03:37
158
ssh 连接非22端口服务器的方法

创建公私钥: ssh-keygen -t ed25519 -C "121@ct" ssh 连接非22端口服务器的方法: ssh -p 29966 root@远程ssh服务器的ip #小写p scp 远程拷贝非22端口的服务器文件的方法: 上传文件到服务器...

ubuntu下使用pg_upgrade从PostgreSQL9.5升级到PostgreSQL9.6

更新apt sudo apt update sudo apt upgrade 安装PostgreSQL9.6 sudo apt install postgresql-9.6 停止PostgreSQL sudo service postgresql stop 修改/etc/postgresql/9.5/main/pg_hba.conf,...

PostgreSQL 备份与恢复

使用PostgreSQL内建格式(custom格式) /Library/PostgreSQL/9.6/bin/pg_dump --host localhost --port 5432 --username "postgres" --password --format custom --blobs --encoding UTF8 -...

2016/10/15 19:57
877
java中,几种字符串类型主键生成算法性能比较。

参与比较的三种: 1)java内置的 java.util.UUID 2) com.eaio.uuid.UUID 3) mongodb的java驱动中的ObjectId 生成数量为1000万个id,测试两轮,测试机器的CPU为Intel Core i7,测试结果如下:...

OSX下制作USB启动盘

1)插上U盘,然后执行以下命令,一般会看到新挂载的U盘,例如/dev/disk3 diskutil list 2)卸载U盘,例如卸载disk3 diskutil unmountDisk /dev/disk3 3)写入iso文件, sudo dd of=/dev/rdisk3 b...

2016/04/06 11:35
399
通过SSH通道跨机访问直接不可达服务(以MySQL为例)

创建公私钥: ssh-keygen -t ed25519 -C "121@ct" 约定:A代表本机,B代表可以ssh登陆的跳板机,C代表目标机(通过某个端口开通服务),C可以是B,也可以是其它B可以连接的主机 现状:C机器安...

OpenSUSE Leap 42.1 改用国内源并更新系统

OpenSUSE Leap 42.1 改用国内源

2016/02/13 04:49
2.6K
tomcat post请求参数长度限制

<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" maxPostSize="-1" /> tomcat7 开始 -1 是不限制,0 是不允许提交任何数据。 若使用 nginx的话,...

PostgreSQL中将Integer类型的字段转换成Varchar类型的字段

PostgreSQL中将Integer类型的字段转换成Varchar类型的字段

Log4j显示异常的奇怪问题

Log4j加载配置文件优先级造成的显示异常的奇怪问题

2015/09/06 05:36
336
jfinal-scheduler 极简JFinal任务插件

基于cron4j以及ScheduledThreadPoolExecutor实现的简单的任务调度插件。

没有更多内容

加载失败,请刷新页面