Create a text file showing the differences between two sets of files.
diff -qr foldera folderb | grep -v -e 'DS_Store' -e 'Thumbs' | sort > diffs.txt
Remove only files:
find . -name "._*" -type f -exec rm -vf {} \;
Remove only folders:
find . -name ".svn" -type d -exec rm -vrf {} \;
Remove either:
find . -name ".svn" -exec rm -vrf {} \;
- Convert entities to characters excluding tags
- Strip trailing spaces.
- Find/Replace "
\.\ +
" with ".
" to remove stupid period and double spaces. - Find/Replace "
\n{3,}
" with "\n\n
" to remove places with multiple linebreaks, eg more than one. - Find/Replace "
^&#?[A-Za-z0-9]+;\s
" with "-
" to make bullets from entities.
For Folders:
find ./ -type d -exec chmod 755 {} \;
For Files:
find ./ -type f -exec chmod 644 {} \;
Both at Once:
find ./ -type d -exec chmod -v 755 {} \; && find ./ -type f -exec chmod -v 644 {} \;
touch .gitignore && git init && git add . && git commit -m "initial commit"
function my_function_admin_bar(){
return false;
}
add_filter( 'show_admin_bar' , 'my_function_admin_bar');
##� Process for Purchasing and Setting up an SSL on Site5
- Generate the CSR (ref)
- SSH into server and generate an RSA private key
openssl genrsa -out domainname.key 2048
- Create CSR with following command
req -new -key domainname.key -out domainname.csr
You will be asked various information, refer to CSR legend here - You will be prompted for extra attributes (i.e., a challenge password and optional company name); we recommend you leave these attributes empty (just hit Enter).
- Verify the contents of your CSR by using the following command:
openssl req -noout -text -in domainname.csr
- Save a copy of your CSR. The CSR will be needed during the online order process.
- SSH into server and generate an RSA private key
- Purchase the SSL using the CSR
http://www.geocerts.com/order/
You will need to coordinate the ability to send an email to an address at the domain that you are setting the ssl up for. To approve the SSL setup - Login to site5 backstage
- Download ssl files from geocerts
- Visit ssl request page
- Paste in relevant details.