or html refresh

Redirect 301 /

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^$ [OR]
  RewriteCond %{HTTP_HOST} ^$
  RewriteRule (.*)$$1 [R=301,L]

## Redirect to a local site file
## Redirect /path/to/old/file/old.html /path/to/new/file/new.html

## Redirect to an external site file
## Redirect /path/to/old/file/old.html

Redirecting a Single URL
ErrorDocument 404
Redirecting a Single Folder
RedirectMatch 301 /oldpage/ /newpage/

RewriteRule ^/?folder/(.\*)$ /location/$1 [R,L]


Hosting Admins

ODS Stuff

simple contacts, name, addy, email, phone, gifts, notes
not crm
domains, dns, whois
huge list, past and present
websites, webdev, sales, wais
includes active prospecting
code, mtgs, webagent, design
raw from forms, from leads, from CL, referals
quick and dirty
MONEY db ??
billing, webagents, forecasts
** link db's by primary domain, lookup, relate by domain1

Tech Acronyms - Three Letter Naming Convention for IT

dev – development
tst – Testing
stg – Staging
prd – Production

app – Application Server (non-web)
sql – Database Server
ftp – SFTP server
mta – Mail Server
dns – Name Server
cfg – Configuration Management (puppet/ansible/etc.)
mon – Monitoring Server (nagios, sensu, etc.)
prx – Proxy/Load Balancer (software)
ssh – SSH Jump/Bastion Host
sto – Storage Server
vcs – Version Control Software Server (Git/SVN/CVS/etc.)
vmm – Virtual Machine Manager
web – Web Server

email dns config 14400   TXT 

v=DMARC1; p=none; rua=mailto:This email address is being protected from spambots. You need JavaScript enabled to view it..   14400   PTR    14400   TXT 

v=spf1 +a +mx +ip4: ~all





config multiPHP

bsundry300 server - config multiPHP
keep server php5.6.
upgrade to php7.1 using multiPHP
you can reboot as needed, nothing mission critical, however there are 50+ live clients sites

Email DNS

<div>	14400	PTR
<div>	14400	TXT	
v=DMARC1; p=none; rua=mailto:<joomla-hidden-mail  is-link="1" is-email="1" first="d2ViYWdlbnQ=" last="c29jYWxlbWFpbC5jb20=" text="d2ViYWdlbnRAc29jYWxlbWFpbC5jb20=" base="" >This email address is being protected from spambots. You need JavaScript enabled to view it.</joomla-hidden-mail>.

mysql find replace

UPDATE `table_name`
SET `field_name` = replace(same_field_name, 'unwanted_text', 'wanted_text')

update table_name set field_name = replace(
field_name, 'original text',
'replacement text');
update [table_name] set [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]');

git cheat sheet

<!-- git cheat sheet --> 

<a href="/userdata/code/Git-Cheat-Sheet.png" target="_blank"><img src="/userdata/code/Git-Cheat-Sheet.png" width="640" height="452" alt="git cheat sheet" /></a>

php if else

< php
$t = date("H");

if ($t < "10") {
    echo "Have a good morning!";
} elseif ($t < "20") {
    echo "Have a good day!";
} else {
    echo "Have a good night!";

bSundry Technologiesβ„’ | Yorba Linda, CA 92886 | 1-657-859-1338 | This email address is being protected from spambots. You need JavaScript enabled to view it.
All Content Herein is Copyright Β© and Trademarked (TM). | All rights reserved.