Category: Bash

How to copy only directory structure

For example you have defined directory structure with a lot of files. And task to copy only directory structure without files. So, How to copy only directory structure ?

Let’s copy directory tree from old_tree to new_tree:



Read more

Random byte generation in PHP

Here is my small 5 minute php script for random byte generation.

Could be useful for checking your random numbers quality. 🙂

Read more

Script for import Zabbix Templates through API

Here is small script for import Zabbix template or host through API. Templates stored in special directory with *.json file. Zabbix templates have to special prepared in json format for api requests. Script:

Zabbix script + sample + test template: zabbix_import_template.tar

Read more