Category: Uncategorized

  • sed/sh/awk removing a section in multiple files

    All of my scripts are in ~/bin, I’m replacing a marked section with my google adsense code, contained in a separate file. remove_topstart.sh:#!/bin/shfind . -name ‘*.html’ | while read xdo   cat $x | awk -f ~/bin/remove_topstart.awk >> $x.$$   cp $x.$ $x   rm $x.$done remove_topstart.awk:BEGIN { outsideTop = 1 }/<!–TOPSTART–>/ { outsideTop = 0 }/<!–TOPEND–>/ { outsideTop = 1…

  • IE 4 Linux

    Internet Explorer on Linuxhttp://webexpose.org/2007/01/07/internet-explorer-7-on-linux/ http://www.tatanka.com.br/ies4linux/page/InstallationIEs 4 Linux needs two packages: cabextract and Wine. You can install them using your Linux package manager (synaptic, apt-get, yum, emerge etc) or go to their sites. wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gztar zxvf ies4linux-latest.tar.gzcd ies4linux-*./ies4linux

  • Research on adding a wireless card using WPA in Ubuntu

    I’ve just begun to research WPA + PCI wireless card in Ubuntu. Follow installation instructions for ndiswrapper:http://ndiswrapper.sourceforge.net/mediawiki/index.php/Installation Using a ZyXEL card:http://ndiswrapper.sourceforge.net/mediawiki/index.php/List#Z Tools to use: iwconfig – to configure wireless network interface. iwlist wlan0 scan – scan for access points using wlan0 interface WPA with ndiswrapper:http://ndiswrapper.sourceforge.net/mediawiki/index.php/WPA