wget 'http://www.atoomnet.net/./php/php-5.2.17/php-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-bcmath-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-cli-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-common-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-dba-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-devel-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-eaccelerator-5.2.17_0.9.6.1-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-gd-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-imap-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-ldap-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-mbstring-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-mcrypt-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-mhash-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-mssql-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-mysql-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-ncurses-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-odbc-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-pdo-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-pgsql-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-readline-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-snmp-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-soap-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-tidy-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-xml-5.2.17-1.x86_64.rpm' wget 'http://www.atoomnet.net/./php/php-5.2.17/php-xmlrpc-5.2.17-1.x86_64.rpm' yum -y install autoconf automake net-snmp libc-client libmcrypt libmhash libsybdb unixODBC freetds mysql-server rpm -Uvh *.rpm
20110912
PHP 5.2.17 on CentOS 5.6 Final
I'm running Citrix Xen Server and have a 5.6 VM. However, the PHP that's on CentOS 5.6 is currently 5.1.x. Here's a script that downloads and installs the required packages to run PHP 5.2.17 (I need 5.2.17 because I'm running Wordpress 3.0.6.
20110908
20110907
Blocking machines on Cisco 2960 via MAC address
mac-address-table static 1caf.f735.411e vlan 1 drop
where 1caf.f735.411e is the MAC address of the machine you want to block.
20110804
Stuck on ROMMON
1. rommon #0> PORT=Ethernet0/0
Ethernet0/0
Link is UP
MAC Address: 001b.d554.512a
2. rommon #1> ADDRESS=10.10.10.1
3. rommon #2> SERVER=10.10.10.2
4. rommon #3> GATEWAY=10.10.10.2
5. rommon #4> IMAGE=asa804-23-k8.bin
6. rommon #5> tftp
After booting:
1. ciscoasa(config)# format flash
2. ciscoasa(config)# write mem
3. ciscoasa(config)# interface ethernet 0/0
4. ciscoasa(config-if)# ip address 10.10.10.1 255.0.0.0
5. ciscoasa(config-if)# no shut
6. ciscoasa(config-if)# name if outside
7. ciscoasa(config-if)# security-level 100
8. ciscoasa(config)# ip route 0.0.0.0 0.0.0.0 10.10.10.2
9. ciscoasa# copy tftp: flash:
10. ciscoasa# write mem
Ethernet0/0
Link is UP
MAC Address: 001b.d554.512a
2. rommon #1> ADDRESS=10.10.10.1
3. rommon #2> SERVER=10.10.10.2
4. rommon #3> GATEWAY=10.10.10.2
5. rommon #4> IMAGE=asa804-23-k8.bin
6. rommon #5> tftp
After booting:
1. ciscoasa(config)# format flash
2. ciscoasa(config)# write mem
3. ciscoasa(config)# interface ethernet 0/0
4. ciscoasa(config-if)# ip address 10.10.10.1 255.0.0.0
5. ciscoasa(config-if)# no shut
6. ciscoasa(config-if)# name if outside
7. ciscoasa(config-if)# security-level 100
8. ciscoasa(config)# ip route 0.0.0.0 0.0.0.0 10.10.10.2
9. ciscoasa# copy tftp: flash:
10. ciscoasa# write mem
20110413
Clear ASA Configuration
rommon #1>confreg 0x41
rommon #2>boot
ciscoasa > en [when asked for password just press enter]
ciscoasa # conf t
ciscoasa (config)# config-register 0x01
ciscoasa (config)# copy run start
ciscoasa (config)# reload
20101028
20100529
20100413
Sending mail using mutt
mutt -s "subject" -a filename1 -a filename2 email@example.com -c ccdemail@example.com -i filenamecontainingmessage.txt
20100319
20100318
Removing leading zero using awk
Had to extract data from rrdtool and feed it to Zabbix. Problem was I kept getting leading zero variables. This removes any leading zero:
to test it yourself:
rrdtool fetch lighttpd.rrd AVERAGE -s -60s \
| grep -v nan \
| grep -v Requests \
| awk '{printf "%d",$2}' \
| awk '{print $1 + 0}'
to test it yourself:
echo 000000105 | awk '{ print $1 + 0}'
20100316
Look for folders with world write bit on
$FIND $DIRNAME -xdev -perm +o=w ! \( -type d -perm +o=t \) ! -type l -print
20091226
20091224
Debian/Ubuntu Perl Building
apt-get install dh-make-perl
dh-make-perl --cpan Your::CPAN::Package --install
Subscribe to:
Posts (Atom)