Skip to content

Instantly share code, notes, and snippets.

@glowsinthedark
glowsinthedark / .htaccess
Created May 1, 2017 14:14 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@glowsinthedark
glowsinthedark / unset_comment_tips.info.yml
Created February 11, 2017 01:30 — forked from doneyourdamage/unset_comment_tips.info.yml
Unset the filter tips link under comments form in Drupal 8
name: Remove Comment Tips
type: module
description: Remove the comment tips link beneath comment forms in Drupal 8.
core: 8.x
version: '8.x-1.0'

How to add an image to a gist

  1. Create a gist if you haven't already.
  2. Clone your gist:
    # make sure to replace `<hash>` with your gist's hash
    git clone https://gist.github.com/<hash>.git # with https
    git clone [email protected]:<hash>.git     # or with ssh
@glowsinthedark
glowsinthedark / 0_reuse_code.js
Created July 23, 2016 00:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console