Software

Select and move files by mask with Windows command line

Figure 2. The result of command Get-SPLogEvent

During previous 5 years I have downloaded files from FTP server. Those were texts and images, that had been downloaded from FTP resources. During these 5 years its quantity became enormous – over 150 000 items in each folder. It worked automatically, that’s why I hadn’t paid attention to disc size and quantity of files. […] Read more»

Windows

PowerShell script to remove old IIS log files

Application logs can stop your machine if you do not control their size. By default, webserver IIS doesn’t clean IIS logs and stores them in c:\inetpub\logs. If your server is high loaded, logs of IIS can get critical size in 2-3 weeks. Read more»

Web server

Get PID of application pool (w3wp process) using AppCmd

Figure 5. IIS window

Application pool allows you to isolate your applications from one another in case if they are running on the same server. According to this, if there are errors in one application, they will not influence other web applications executing on the same server or the IIS server itself. But if your w3wp process has 100% […] Read more»

Windows

Truncate NGINX log files in Linux (Debian, Ubuntu, CentOs)

Midnight Commander in Putty looks fine

In Linux OS (Debian, Ubuntu, CentOs) log files of web server can grow and grow. According to web server activity, they can grow to a very big size. To remove files is a bad solution because they won’t be restored and you loose new logs. Read more»

Web server

Array in PowerShell – create and read

This is an manual how to work with arrays in PowerShell – how to create them, fill and read. You can initialize array this way: Read more»

Windows

How to save load test results in Visual Studio 2013

Figure 1. "Open and Mange Results" button

When you execute load test in Visual Studio, you may want to see previous results or to move results to another machine if you need to make report. I had to spend some time to look for the buttons to manage results of Load test in Visual Studio 2013. Read more»

Windows

How to get physical path of shared folder

There are at least 2 ways to find physical path of shared folder in Windows (server or client OS – not important) – from command line console or from Snap-In “Shared Folders” in MMC. Read more»

Windows

Основные принципы работы с редактором VIM в консоли Linux (SSH)

Рис.1. Режим редактирования в VIM

Открывая в Midnight commander текстовый файл для редактирования, запускается редактор VIM. Возможно, я б выбрал другой, но хостер установил этот. Это бесплатный редактор, особенность которого в том, что в VIM нужно вручную переключать режимы ввода – командный и текстовый. Т.е. чтоб ввести текст нужно включить один режим, а чтоб его сохранить – переклчюить режим на командный. […] Read more»

Linux

Popular Posts