Skip to content

Instantly share code, notes, and snippets.

View JParkinson1991's full-sized avatar

Josh Parkinson JParkinson1991

  • Rural Insurance
  • England
View GitHub Profile
@JParkinson1991
JParkinson1991 / cli-versions.md
Last active January 6, 2020 08:35
CLI Version Numbers

CLI Version Numbers

This Gist contains handy snippets for extracting just the version number from various application version strings.

At the time of writing, the majority of these snippets were created for applications installed on a MAC via Homebrew. Please feel free to provide snippets for unsupported setups if required.

Contents

@JParkinson1991
JParkinson1991 / gitcheatsheet.md
Created December 11, 2019 09:36
GIT Cheetsheet

GIT Cheatsheet

Contents

Interactive Rebase

Useful for altering one or multiple commits. Squashing them into a single commit etc.

@JParkinson1991
JParkinson1991 / drush_db_export_import.md
Created October 17, 2019 14:16
Drush Database Export/Import Commands

Drush Database Export/Import Commands

# Clear cache
$ drush cc # Drupal 6 & 7
$ drush cr # Drupal 8

# Export Database
$ drush sql-dump > ~/database.sql

Import Database