htaccess

 

or html refresh

.htaccess
Redirect 301 / https://example.com/

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

## 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 https://www.example.com/new/file/new.html

Redirecting a Single URL
ErrorDocument 404 https://example.com/
Redirecting a Single Folder
RedirectMatch 301 /oldpage/ /newpage/

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

 
 

Hosting Admins

ODS Stuff

 
 
 
 
 
 
 
BSCRM
 
PEOPLE db
simple contacts, name, addy, email, phone, gifts, notes
not crm
 
DOMAINS db
domains, dns, whois
huge list, past and present
 
THEPIPE db
websites, webdev, sales, wais
includes active prospecting
code, mtgs, webagent, design
 
 
LEADS db
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

 

_dmarc.bsundry.com. 14400   TXT 

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

 

 

108.101.180.107.in-addr.arpa..bsundry.com.   14400   PTR 

bsundry.com

 

 

bsundry.com.    14400   TXT 

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

 

 

 

 

config multiPHP

bsundry300 server - config multiPHP
 
https://132.148.23.139:2087/
root
yNGav52FbV!@!#
 
keep server php5.6.
upgrade homesandlandofca.com to php7.1 using multiPHP
you can reboot as needed, nothing mission critical, however there are 50+ live clients sites
 
 
 

Email DNS


<div>
 108.101.180.107.in-addr.arpa.jasonhoblin.com.	14400	PTR	
bsundry.com
 </div>
<div>
 _dmarc.jasonhoblin.com.	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>.
 </div>

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.