Scripting

Howto decompose a SWF Adobe Flash file

This post describes howto decompose a SWF Flash-file using linux and a program named swfextract. The post came to life because I had to do some changes to one of my flash presentations but I had deleted all the source files. After searching the Internet i doscovered swfextract. SWF Tools is a collection of SWF […]

Read More
Linux

HowTo use lftp as a sftp client

lftp is a file transfer program that allows sophisticated ftp, http and other connections to other hosts. If site is specified then lftp will connect to that site otherwise a connection has to be established with the open command. Basic usage lftp sftp://[domain name] lftp sftp://example.com Use a different user name than the one you […]

Read More
Network

Using DynDNS to access a server with dynamic IP-addresses

This post describes how you can access your server using a host name instead of the dynamic IP addresses (from DHCP) it has assigned at the moment. I’m going to describe how to use DynDNS, but this also applies to other services like EasyDNS, DSLreports.com and ZoneEdit. This tutorial has been tested on my Ubuntu […]

Read More
Linux

Create a empty file using dd

How to create a empty/null file with a specified size # dd if=/dev/zero of=destinationfile.bin bs=1024k count=100 This command creates a 100MB (1024k * 100) sized file.

Read More
Linux

Replace specific HTML tags using sed and regular expression

In this post I would like to replace all <embed> HTML tags in a HTML file with a <strong> tag. # sed -e ‘s/<embed[^>]*>/<strong>/g’ filename.html > newfile.html And if you would like to remove the <embed> tag altogether # sed -e ‘s/<embed[^>]*>//g’ filename.html > newfile.html To remove all HTML tags in a file # sed […]

Read More