Skip to content

Instantly share code, notes, and snippets.

@dinolatoga
dinolatoga / gist:4ddf924aeb85d62071a4
Created October 5, 2015 05:03
Cloning into existing folder
git init
git remote add origin PATH/TO/REPO
git fetch
# git checkout -t origin/master
git reset origin/master
@dinolatoga
dinolatoga / remote-git.md
Created October 13, 2015 01:12 — forked from Integralist/remote-git.md
Basic set-up of remote git repository on a standard server

Set-up remote git repository on a standard server

The first thing to do is to install Git on the remote server.

Once you do that the rest of the process is split into three sections:

  1. Server set-up
  2. Local set-up (push commits)
  3. Server (pull commits)
@dinolatoga
dinolatoga / fluid-fonts-and-icons.css
Created January 31, 2020 23:07 — forked from yankiara/fluid-fonts-and-icons.css
Fluid fonts and icons in CSS
body {
--base: 20;
--scale-headings: 1.44;
--scale-mobile: 0.7;
--scale-mobile-headings: 0.4;
--scale-icons: 1.4;
--min-viewport: 480;
--max-viewport: 1600;
--max-size: var(--base);
}
@dinolatoga
dinolatoga / woocommerce-optimize-scripts.php
Created July 10, 2024 09:14 — forked from DevinWalker/woocommerce-optimize-scripts.php
Only load WooCommerce scripts on shop pages and checkout + cart
/**
* Optimize WooCommerce Scripts
* Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages.
*/
add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 );
function child_manage_woocommerce_styles() {
//remove generator meta tag
remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) );