yuli's blog

Signing files using gpg

GPG or GnuPG is an open source alternative for PGP used in the Linux environment. I had to install this application for some research.

After creating key pair for myself, I imported a number of keys used by my friends. I decided to encrypt file. When I tried to encrypt the file I got the following error:

There is no assurance this key belongs to the named user

Removing files that used most space

Today I had the following problem. One of the production servers when out of free disk space. I had to delete few big files and directories. I decided to compose this post to cover basic steps you can use to find files that use the most space.

Getting DirBuster to work at Ubuntu

DirBuster is a great tool. It can be used reconstruct remove website structure. I think it is a required tool for every penetration tester. Today I decided to install this application on my Ubuntu box.

Installation process was not that smooth. I had to do some hacking. As a result, I decided to create this tutorial.

OpenADS / OpenX / phpAdsNew performance issue

One of my friends works for a company that has very popular website. This company decided to install OpenAds (also know as OpenX and phpAdsNew) to run banner advertising campaign. OpenAds is a great open source tool used manage online ads.

After project launched, it turns out that dedicated server hosting ads is not able to serve all requests. The server load is too heavy. It is a new server with a bunch of CPU cores.

Perl: Converting GMT to EST

Today I encounter the following issue. I had to convert GMT date to EST date format. In general it is 5 hours difference. I didn't find any Perl function to do it automatically. So, I ended up writing the following code:

Unix shell tricks - sort and uniq

I have read a great article about sorting command tricks and would like to share one of the tricks with you.

Let's say you have non-unique, textual file from which you need to remove duplicate strings preserving file order. One will suggest to do it in Perl, though it could be done using basic shell commands:

cat file.txt | nl | sort -k2 -u | sort -n | cut -f2 > result.txt

Run the above shell command as follows:

  1. Read the file.txt file.
  2. Line numbers are added to each line of the original file.

Getting Drupal to work with Images

I spend almost whole day today trying to undestand how I can easily upload images to Drupal blog.

Finally I found a good resource on this subject.

You can get it here:

http://mybesinformatik.com/tinymce-and-drupal5

 

Downloading Content from Password Protected Websites

I research online security for a living. Sometimes, for my research I need to download massive amounts of content from password-protected websites. I can do it manually using Internet Explorer, though it becomes a problem when downloading large amounts of pages. Manually, it is a tedious task, which can be completely automated.

Syndicate content