sitemap-generators使用实例

sitemap-generators是一款Sitemap生成工具,使用它可以生成符合sitemap.org规范的Sitemap文件,以便于提交给各个网站工具平台。

阅读更多

Dropbox脚本工具DropboxUploader

Dropbox Uploader是一款专为Dropbox开发的BASH脚本,可以实现上传、下载、删除、列出文件清单、在线分享、同步和备份等功能。

阅读更多

Linux下批量转换PNG和JPG

我们用到的软件名为imagemagick,一款强大的图片处理软件。

Debian系使用apt-get install imagemagick来安装,Fedora系通过yum install imagemagick来安装。

阅读更多

p7zip使用实例

以下是CentOS77za的使用实例,CentOS下安装p7zip可以参考此文

[root@localhost ~]# 7za

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,1 CPU x64)

Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...]
       [<@listfiles...>]

<Commands>
  a : Add files to archive
  b : Benchmark
  d : Delete files from archive
  e : Extract files from archive (without using directory names)
  h : Calculate hash values for files
  i : Show information about supported formats
  l : List contents of archive
  rn : Rename files in archive
  t : Test integrity of archive
  u : Update files to archive
  x : eXtract files with full paths

<Switches>
  -- : Stop switches parsing
  -ai[r[-|0]]{@listfile|!wildcard} : Include archives
  -ax[r[-|0]]{@listfile|!wildcard} : eXclude archives
  -ao{a|s|t|u} : set Overwrite mode
  -an : disable archive_name field
  -bb[0-3] : set output log level
  -bd : disable progress indicator
  -bs{o|e|p}{0|1|2} : set output stream for output/error/progress line
  -bt : show execution time statistics
  -i[r[-|0]]{@listfile|!wildcard} : Include filenames
  -m{Parameters} : set compression Method
    -mmt[N] : set number of CPU threads
  -o{Directory} : set Output directory
  -p{Password} : set Password
  -r[-|0] : Recurse subdirectories
  -sa{a|e|s} : set Archive name mode
  -scc{UTF-8|WIN|DOS} : set charset for for console input/output
  -scs{UTF-8|UTF-16LE|UTF-16BE|WIN|DOS|{id}} : set charset for list files
  -scrc[CRC32|CRC64|SHA1|SHA256|*] : set hash function for x, e, h commands
  -sdel : delete files after compression
  -seml[.] : send archive by email
  -sfx[{name}] : Create SFX archive
  -si[{name}] : read data from stdin
  -slp : set Large Pages mode
  -slt : show technical information for l (List) command
  -snh : store hard links as links
  -snl : store symbolic links as links
  -sni : store NT security information
  -sns[-] : store NTFS alternate streams
  -so : write data to stdout
  -spd : disable wildcard matching for file names
  -spe : eliminate duplication of root folder for extract command
  -spf : use fully qualified file paths
  -ssc[-] : set sensitive case mode
  -ssw : compress shared files
  -stl : set archive timestamp from the most recently modified file
  -stm{HexMask} : set CPU thread affinity mask (hexadecimal number)
  -stx{Type} : exclude archive type
  -t{Type} : Set type of archive
  -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName] : Update options
  -v{Size}[b|k|m|g] : Create volumes
  -w[{path}] : assign Work directory. Empty path means a temporary directory
  -x[r[-|0]]{@listfile|!wildcard} : eXclude filenames
  -y : assume Yes on all queries

压缩文档

[root@localhost oneinstack]# du -sh     ##当前目录大小
1.8M    .
[root@localhost oneinstack]# 7za a oi.7z *   ##将当前目录所有文件压缩保存为oi.7z

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,1 CPU x64)

Scanning the drive:
7 folders, 128 files, 1541017 bytes (1505 KiB)

Creating archive: oi.7z

Items to compress: 135


Files read from disk: 128
Archive size: 131726 bytes (129 KiB)
Everything is Ok
[root@localhost oneinstack]# ls -lh oi.7z  ###压缩后大小
-rw-r--r-- 1 root root 129K Jun 16 15:59 oi.7z

p7zip默认使用7z格式,当然它还支持一些通用的压缩格式,如7z, lzma, cab, zip, gzip, bzip2, Z 和tar等等……

阅读更多

一加3/3T工具包

工具菜单如下:

	Title OnePlus 3/3T Unified ToolKit v5.0U by @ahmed_radaideh
	
	
	
			======================
			=        Menu        =
			======================
	
	
	Enter a Number to select a Task.
	
	1)  Install USB Drivers On PC
	2)  Unlock - ReLock Bootloader
	3)  Check Device Status
	4)  Check Bootloader Status
	5)  Flash - Boot TWRP Recovery
	6)  Flash - Boot Stock Recovery
	7)  Push Systemless Root
	8)  Push Debloater Script
	9)  Wipe Cache Your Device
	10) Force Decryption Device [WIPE]
	11) Get Logs your Device
	12) Restart Menu
	
	13) Check for new Version
	14) XDA Thread
	15) Donate!
	00) Exit

下载地址在此OnePlus3T-ToolKit-v4.7.7zXDA贴地址在这里

阅读更多