Hello friends. Today we'll face with new programming pattern. This is decorator. It is wrapper around your function. Frankly speaking, there are a lot of infromation about decorators in python and I'll not explain how it works. Please find great explanation of decorators in useful links. There are two links, one to stackoverflow and second one is habrahabr russian variant. I thought that it would be nice if I'll create some nice decorator from real life. So... let's create files, let's say with 200 Mb size, in three different file system (ext4, ext4 without journaling and btrfs) and check time of execution of file creation process. I'll do it on my Vbo...
Published ago by ochirkov

There could be situations when you should copy files or block device to another system via network. There are a few methods to do it.   1. Copy files with ssh:   scp -r /home/user/testdir /etc/init.d/my_init_file user@   -r means recursively copy directories First part of command is what exactly we copy (files and dirs), second is where we copy. Two points after ip address means that we want to copy to home dir of user.   2. Copy block device with netcat:   on server where copy: nc -l -p 5555 | dd of=/dev/sdc   Firstly, execute this command on remote machine that netcat open socket and listen. -l opt...
Published ago by ochirkov

Like many Linux command line tools, dd operates silently unless something unexpected happens. Its lack of visual progress feedback is a nice feature for scripting. However, it can leave you wondering about its progress if you are interactively dd-copying a large disk. To illustrate, you run the following (valid, but perhaps not very useful) dd copy: $ dd if=/dev/zero of=/dev/null bs=1K count=100   To get a progress report while dd is running, you need to open another virtual terminal, and then send a special USR1 signal to the dd process. First, find out the process id of the dd process by running the following in the new...
Published ago by ochirkov

Web development
Review Linux
Provisioning CVS
Windows AWS
Continuous Integration
NoSql Logging Web Servers FileSystems Scala
accurev ansible apach2 apache api application approaches architecture archivation argparse arguments artifactory automation awk aws backup bash batch-scripting beaver block build built-in caching call captcha cartridge case certificates cgi chain client cloud cloudformation cluster cmd coding collections command-line commands compression conditionals conversion convert cookbook copy counter cron crud css cut cygwin daemon datatype date dd debpackage decorator delattr deploy deque dict distributed-file-systems django DNS domain driver dropbox dump elasticcache elasticsearch encryption exit ext4 extra-tags failover file filename filters for form format freetds functions gerrit getattribute gid git globals glusterfs hardware hook iam indexing inheritance init install job-interview jquery ldap linux list locals logging logs logstash lookup magicmethods mail main-menu metadata metalogger mongodb moosefs mount mssql multiplatform multithreading mysql netcat nginx nosql open-ssh openldap openshift os packaging parse partition path pattern patterns permissions pid pil pip pipe playbook pool post post-commit processes production provisioning proxy putty python python-mysql recursively redirection redis register replication repr restore return review rotation scala script search selenium server setattr settings setup shipper signals singleton slots snapshot socket splunk ssh ssh-key ssl storage str string style subprocess sugar super switch syntactic syntaxhighlighter systeminfo tail tar templatetags time tls tune2fs tuple ubuntu unicode unique unix unixodbc usage usecases uuid uwsgi variable vars version vi virtualenv volume web web-server windows with_items __getattr__