We’re always trying to reduce the number of HTTP queries to our servers, hence trying to utilize various CDN solutions. One of these is Amazon CloudFront which is a part of AWS infrastructure. In this article we are going to upload all our static content, such as JS, CSS files, images, to Amazon S3, create a CloudFront distribution and point it to the S3 bucket…
Author: admin
Installing and configuring virtual ubuntu server using Vagrant
What is Vagrant? Vagrant is free and open-source software. It is used for creating and using virtual development environments. Vagrant is a wrapper between VirtualBox (or other virtualization software) and configuration management. Why do we need it? Usually, each developer in team has own development environment, which configured for his needs. But this may become troublesome. The same web application may work as expected in one environment,…
Automating SQL injection analysis with PHP, sqlmap, Gearman
If you’re in web development area, you certainly know about SQL injection attack. There is also a well-known joke about it on xkcd: There is a tool for automating SQL injection discovery, called sqlmap, you can find it on github
PHP Website Scraping using Chrome Web Driver
Sometimes it happens that there is a complex website that is can’t be parsed with so called “regular” cURL + DOM xpath technique. People tend to protect their data with Javascript techniques, nowadays there are pure-Javascript sites popular, and, as you know, one can’t interpret JS using PHP or any other language you’re using for scraping (unless you scrape with nodejs, but I haven’t tried…
AWS EC2: how to attach your root volume to another instance
It happens sometimes with an AWS EC2 instance that you made a mistake in network configuration or just your instance is inaccessible via SSH for some other reason. In this case the recommended solution is attaching your root volume of your instance to another one (most likely micro instance – who wants to pay more?) and editing the files on it. Below you can find…