You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A process to create a git remote repo for live or staging servers, automatically updating on those environments from local dev.
Setting up a web server to track a repo
A setup to allow pushing to live/staging from a local repo. This is mostly a reference that I can return to later, but maybe it will be helpful to you too!
Improvements to this process
The process could use some improvements
Handle conflicts automatically in the post-receive script
padding-bottom is calculated using the aspect ratio of the video. a 16:9 video has a padding-bottom of 56.25%, while a 4:3 video has a padding-bottom of 75%.
This apache configuration can be added to the .htaccess file of a site to automatically keep staging and development versions from being indexed by Google and other search engines. No more worrying about whether or not noindex is keeping live sites from being crawled by search engines!
.htaccess configuration
# Check HTTP_HOST variable and set noindex, nofollow for hosts other than the live site
<IfModule mod_rewrite.c>
RewriteCond %{HTTP_HOST} ^domain\.com$
Snippet to load jQuery via Google Hosted Libraries, fallback to local version.
Load jQuery via Google Hosted Libraries
Loading jQuery via a Google Hosted Libraries allows it to load quicker, as other sites who have included it from Google's Hosted Libraries will ensure that jQuery is already available in the cache of many of your visitors' computers.
The following snippet of code will attempt to load jQuery from Google Hosted Libraries and fall back to a local version if it did not load correctly for any reason. Ensure that you update the path to your local version of jQuery in the code below.
<!-- Load jQuery via Google CDN, fall back to local version if not loaded -->
<scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 1DtaqCvaV2wQwU38UKBRiMySASS7tfR9nB https://explorer.blockstack.org/address/1DtaqCvaV2wQwU38UKBRiMySASS7tfR9nB