101TECH is a South Florida based I.T Solution Provider.
We Deliver Enterprise Class I.T Solutions For Small , Mid-Market Business and Startup Companies.

We Can help you :
  • Maintain Your Existing Computers and Network.
  • Evaluate & recommend technology solutions.
  • Secure your vital business information and infrastructure.
  • Assist in establishing business continuity plans.
  • Monitor and Tune your Servers and Applications
  • Design and Maintain your Web site.
  • Host your Servers , Email and Other Web Services.

ubuntu – openvpn client does not update resolve.conf

August 20th, 2009 No comments

install resolvconf :

sudo apt-get install resolvconf

add to your openvpn client config :

up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

Linux HA – CRM commands

July 22nd, 2009 No comments

Small reminder as I always tend to forget these :

Dump the CRM cib db :

cibadmin -Q > cib.backup.xml

Modify a resource , dump the cib, modify the xml for the resources and then import using cibadmin -M

cibadmin -V -M -o resources -x modified_resources.xml

Add a resource , create the xml for the resource and them use -C

cibadmin -V -C -o resources -x new_resource.xml

Move resource from one location to another, -f to force it …

crm_resource -M -r resource -H host
crm_resource -M -r resource -H host -f

php form field – safty

July 12th, 2009 No comments
        $value = htmlentities(stripslashes(strip_tags($value)));

swaks – mail server testing tool

July 8th, 2009 No comments

If you dont like using telnet to test a remote or local smtp server , swaks is a neat little tool to do the job for you.
its also available ( suprise suprise … ) in the freebsd ports : /usr/ports/mail/swaks.

found it first here

control ip access to apache via .htaccess

July 6th, 2009 No comments

1. Allow only specific ip address :

order allow,deny
deny from all
allow from 192.168.1.1
allow from 192.168.1.2

2. Block specific ip address :

order deny,allow
allow from all
deny from 192.168.1.1
deny from 192.168.1.2

you can substitute ip for :

subnet -> deny from 192.168.1.0/24
subnet wild cards -> deny from 192.168.*.*
domain -> deny from domain\.com

you can also combine ip’s on one line:

deny from 192.168.1.1 192.168.2.1