Make squid to mark cache hits and misses (rpm package for Fedora 5)

Squid is a proxy server and web cache daemon. It has a wide variety of uses, from speeding up a web server by caching repeated requests, to caching web, DNS and other computer network lookups for a group of people sharing network resources, to aiding security by filtering traffic. Although primarily used for HTTP and FTP, Squid includes limited support for several other protocols including TLS, SSL, Internet Gopher and […]

Read more →

 

Convert WMV into AVI with Ubuntu

Actually this tip is applicable to any Linux distribution mencoder can be run at (like Ubuntu, Debian, Fedora, Suse and even Slackware ) MEncoder is a free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs Here […]

Read more →

 

Disable double hyphen to dash wordpress replacements

As we know latest wordpress.org blog publishing system includes feature that allows to replace double hyphens into single dash: — into — or –. It’s rather trivial issue but Linux Screw blog contains a lot of shell code examples like sudo apt-get remove mc –purge and I was wondering how to disable it for a long time To disable this you should edit /wp-includes/formatting.php: to disable only replacement — into […]

Read more →

 

Network Traffic Generator: hping

hping3 is a network tool able to send custom TCP/IP packets and to display target replies like ping program does with ICMP replies. hping3 handles fragmentation, arbitrary packets body and size and can be used in order to transfer files encapsulated under supported protocols. Using hping3 you are able to perform at least the following stuff: Test firewall rules Advanced port scanning Test net performance using different protocols, packet size, […]

Read more →

 

Dump ipcad output into sqlite3

ipcad is IP accounting daemon with Cisco-like ip accounting export. It runs in background, listens traffic on the specified interfaces, and records the traffic for later retrieval and analysis. Here is a piece of shell code that allows to export ipcad output into sqlite3 database format: echo “create table traffic (src, dst, pkt, bt);” | sqlite3 /tmp/throttle.db rsh 127.0.0.1 show ip accounting | grep “^ ” | grep -vi source […]

Read more →