Skip to content

Instantly share code, notes, and snippets.

View BruceMcKinnon's full-sized avatar

BruceMcKinnon

View GitHub Profile
@BruceMcKinnon
BruceMcKinnon / privacy.html
Created February 24, 2022 22:59
Generic Privacy Policy
When you visit [bloginfo show="name"] details of your visit may be logged in the following ways:
<ul>
<li>Standard web server logging</li>
<li>Google Analytics. Google Analytics uses cookies to accumulate analytics data. This analytics data is used for the purpose of determining the volume and types of usage of the [bloginfo show="name"] web site. Details of Google’s usage of this data may be found at <a href="https://policies.google.com/technologies/partner-sites" target="_blank" rel="noopener noreferrer">https://policies.google.com/technologies/partner-sites</a></li>
<li>Error logging generated by components of the [bloginfo show="url"] web site, which may occur from time-to-time.</li>
</ul>
Information logged may include, but may not be limited to:
@BruceMcKinnon
BruceMcKinnon / gist:5c7dfccaa2c477e183007ff2e4e8cdf0
Last active August 7, 2024 01:22
Bitbucket or GitHub remote connect local repo
git init
git add .
git commit -m "Initial Commit"
// You can find the URL next to the git clone command for the repository.
// E.g., {URL} = https://[email protected]/username/repo.git
//
// Refer to: https://community.atlassian.com/t5/Git-questions/fatal-No-such-remote-origin-after-git-remote-set-url-origin/qaq-p/401456
//
@BruceMcKinnon
BruceMcKinnon / gist:0cacf0a9a732a0d8782fe9edcf643030
Last active February 15, 2022 22:03
htaccess auto redirect to SSL connection
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*)$ https://domain.com/$1 [R,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f