Skip to content

Instantly share code, notes, and snippets.

View mdrmike's full-sized avatar

mike stewart mdrmike

  • Media Done Right
  • Long Beach, CA
View GitHub Profile
@mdrmike
mdrmike / magnoster.zsh-theme
Last active June 23, 2017 00:24
Theme: zsh shell magnoster theme for oh-my-zsh. Save file in `~/.oh-my-zsh/plugins/custom/` then enable by editing `~/.zshrc` `ZSH_THEME="magnoster"`
# vim:ft=zsh ts=2 sw=2 sts=2
#
# magnoster theme - https://gist.github.com/mdrmike/42c400f985d02673344f810ef2e32918
# Custom fork of:
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
@mdrmike
mdrmike / git-commit-messages.markdown
Last active September 20, 2020 20:28
Git commit "best practices" with or without useful github emoji 💥

commit-emoji

List of emoji for git commits. 💥

Interesting idea from the Atom.io contributing docs.

Consider starting the commit message with an applicable emoji

This idea was orinially based on Atom.io contrib docs... Though, apparently not in current guide. Other examples are kinda interesting with code available online. Also worth checking out:

@mdrmike
mdrmike / post-receive
Last active September 15, 2020 15:39 — forked from lemiorhan/post-receive
Post-receive hook to deploy the code being pushed to production branch to a specific folder
#!/bin/bash
target_branch="master"
working_tree="/var/www/html/stage.reddoorlivinglb.com/"
while read oldrev newrev refname
do
branch=$(git rev-parse --symbolic --abbrev-ref $refname)
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then
name: my-drupal9-project
recipe: drupal9
config:
webroot: drupal9/web
services:
appserver:
composer:
drupal/recommended-project: ^9
drush/drush: ^10