Skip to content

Instantly share code, notes, and snippets.

View anvilzephyr's full-sized avatar

Amy Hill anvilzephyr

View GitHub Profile
@fnagel
fnagel / mime_types_array.php
Created December 18, 2009 15:32
MIME type array
<?php
// MIME types definition
$types = array (
'3dmf' => 'x-world/x-3dmf',
'3dm' => 'x-world/x-3dmf',
'avi' => 'video/x-msvideo',
'ai' => 'application/postscript',
'bin' => 'application/octet-stream',
'bin' => 'application/x-macbinary',
'bmp' => 'image/bmp',
@vanbo
vanbo / wc-css-make-storefront-product-tabs-horizontal
Created October 27, 2017 11:33
WooCommerce: CSS to make Storefront product tabs horizontal again
.product .woocommerce-tabs ul.tabs {
width: 100%;
float: none;
margin-right: 5.8823529412%;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
list-style: none;
padding: 0 0 0 1em;
margin: 0 0 1.618em;

If you are like me you find yourself cloning a repo, making some proposed changes and then deciding to later contributing back using the GitHub Flow convention. Below is a set of instructions I've developed for myself on how to deal with this scenario and an explanation of why it matters based on jagregory's gist.

To follow GitHub flow you should really have created a fork initially as a public representation of the forked repository and the clone that instead. My understanding is that the typical setup would have your local repository pointing to your fork as origin and the original forked repository as upstream so that you can use these keywords in other git commands.

  1. Clone some repo (you've probably already done this step).

    git clone git@github...some-repo.git