Skip to content

Instantly share code, notes, and snippets.

View marcusmoore's full-sized avatar

Marcus Moore marcusmoore

View GitHub Profile
-- github.com/rsefer/hammerspoon-config
--- === SDC Music ===
local obj = {}
obj.__index = obj
obj.name = "SpotifyListener"
local trackNotification
function trackString(artist, track)
@marcusmoore
marcusmoore / opendb-ddev.sh
Created September 24, 2020 02:55 — forked from AlexVanderbist/opendb-ddev.sh
opendb for ddev
opendb () {
unset GREP_OPTIONS
PORT="$(ddev describe | ggrep -Pio "(?<=port=)[0-9]*")"
open mysql://db:db@127.0.0.1:${PORT}/db
}
@marcusmoore
marcusmoore / README.md
Created July 14, 2020 19:12 — forked from MichaelCurrin/README.md
Github GraphQL - Get all file contents in repository

Get Github Files

Get the metadata and contents of all files in a target Github repo using GraphQL

Made for

Github V4 GraphQL API

About the query

@marcusmoore
marcusmoore / gistlog.yml
Created February 7, 2020 01:19
Test GistLog Post
published: true
@marcusmoore
marcusmoore / another.md
Created February 7, 2020 01:15
The Title of Another Test.

Another Test...

@marcusmoore
marcusmoore / gistlog.yml
Last active February 7, 2020 01:19
Testing
published: true
@marcusmoore
marcusmoore / references.md
Created October 31, 2019 11:45
References for BDD and Laravel presented at Laracon AU
## How to install mcrypt in php7.2
##
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/
##
#
# Check version php and pecl
#
php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php
@marcusmoore
marcusmoore / current-dir-in-iterm-tab-title.sh
Created August 27, 2018 20:00 — forked from phette23/current-dir-in-iterm-tab-title.sh
Set the iTerm tab title to the current directory, not full path.
# put this in your .bash_profile
if [ $ITERM_SESSION_ID ]; then
export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND";
fi
# Piece-by-Piece Explanation:
# the if condition makes sure we only screw with $PROMPT_COMMAND if we're in an iTerm environment
# iTerm happens to give each session a unique $ITERM_SESSION_ID we can use, $ITERM_PROFILE is an option too
# the $PROMPT_COMMAND environment variable is executed every time a command is run
# see: ss64.com/bash/syntax-prompt.html
@marcusmoore
marcusmoore / README-Template.md
Created January 8, 2018 23:30 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites