根据模版文件生成配置文件 frep

码农软件 · 软件分类 · 常用工具包 · 2019-08-13 16:57:41

软件介绍

frep 是一个根据模版文件生成相应的配置文件功能,相关数据可以从环境变量,json,yaml,toml文件中获取。

比如根据 nginx.conf.in 模版文件 和 动态数据 data.json,动态生成 nginx.conf

frep nginx.conf.in --load data.json

具体帮助参考:

NAME:
   frep - Generate file using template

USAGE:
   frep [options] input-file[:output-file] ...

VERSION:
   1.2.0-50

AUTHORS:
   Guoqiang Chen 

OPTIONS:
   -e name=value, --env name=value   set variable name=value, can be passed multiple times
   --json jsonstring                 load variables from json object string
   --load file                       load variables from json/yaml/toml file
   --overwrite                       overwrite if destination file exists
   --dryrun                          just output result to console instead of file
   --delims value                    template tag delimiters (default: {{:}})
   --help                            print this usage
   --version                         print version information

EXAMPLES:
   frep nginx.conf.in -e webroot=/usr/share/nginx/html -e port=8080
   frep nginx.conf.in:/etc/nginx.conf -e webroot=/usr/share/nginx/html -e port=8080
   frep nginx.conf.in --json '{"webroot": "/usr/share/nginx/html", "port": 8080}'
   frep nginx.conf.in --load config.json --overwrite

本文地址:https://codercto.com/soft/d/12288.html

有趣的二进制

有趣的二进制

[ 日] 爱甲健二 / 周自恒 / 人民邮电出版社 / 2015-10 / 39.00元

《有趣的二进制:软件安全与逆向分析》通过逆向工程,揭开人们熟知的软件背后的机器语言的秘密,并教给读者读懂这些二进制代码的方法。理解了这些方法,技术人员就能有效地Debug,防止软件受到恶意攻击和反编译。本书涵盖的技术包括:汇编与反汇编、调试与反调试、缓冲区溢出攻击与底层安全、钩子与注入、Metasploit 等安全工具。 《有趣的二进制:软件安全与逆向分析》适合对计算机原理、底层或计算机安全......一起来看看 《有趣的二进制》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具