Skip to content

Instantly share code, notes, and snippets.

View ketanmistry's full-sized avatar

Ketan Mistry ketanmistry

View GitHub Profile
@ketanmistry
ketanmistry / Pre-launch Website Checklist.md
Last active August 1, 2023 01:05
Pre-launch Website Checklist. Add this as a final issue to the Github repository.

Pre-launch Website Checklist

The following checklist should be actioned after all major development work has been completed.

Browser Testing

Check the website:

  1. Responds to different devices and screen sizes appropriately.
  2. The design of the site is displayed as expected.
@outofthesandbox
outofthesandbox / disable-apps
Created October 18, 2017 21:19
Disable Apps
### Disabling all apps code loaded via `content_for_header`
Apps are all loaded in the header via a single script call, then the remaining assets are loaded below. This process takes place in the liquid tag `content_for_header`.
1. Open theme.liquid and locate the line which reads `{{ content_for_header }}`.
2. Now you can paste the following block of code to disable all apps on a new line before `{{ content_for_header }}`.
```
{% comment %} Leave url_to_remove as 0 to remove all apps, or set to a number to remove a specific app. {% endcomment %}
@gunjanpatel
gunjanpatel / revert-a-commit.md
Last active May 30, 2024 17:11
Git HowTo: revert a commit already pushed to a remote repository

Revert the full commit

Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.

git revert {commit_id}

About History Rewriting

Delete the last commit

Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:

@JJediny
JJediny / gist:a466eed62cee30ad45e2
Created October 5, 2015 20:42
Jekyll Liquid Cheatsheet

There are two types of markup in Liquid: Output and Tag.

  • Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
  • Tag markup (which cannot resolve to text) is surrounded by
@malarkey
malarkey / Contract Killer 3.md
Last active May 24, 2024 23:38
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………