Skip to content

Instantly share code, notes, and snippets.

Tommy Marshall tommymarshall

Block or report user

Report or block tommymarshall

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tommymarshall / routes.php
Last active Oct 18, 2019
Simple Laravel + Craft integration
View routes.php
| Application Routes
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
View gist:3760dcb44f01b510a336ccceb3f0cc98
2004 Lexus IS300 for sale. Car is in perfect working order. It's stock except for a K&N Air Filter and front Strut Bar. Comes with TWO full-size spares. This is the first car I ever owned. I'm the 2nd owner, purchased 9 years ago and babied with only 91 gas and greater (ever).
Recent work done:
– New Battery
– Replaced Timing Belt and Water Pump ($1.8k of work, have parts list /receipt)
– Tires all have 70% tread or more on them (17" Wheels, not the smaller 16")
– Replaced brakes and rotors
– Just detailed, changed oil, wiper fluid, cleaned air filter, etc.
tommymarshall / nginx.conf
Last active Feb 22, 2019
Parking Domains NGINX config
View nginx.conf
# My changes
server {
listen [::]:80;
rewrite ^$request_uri? permanent;
# Forge's default
server {
listen 80;
View .zshrc
# If you come from bash you might have to change your $PATH.
export PATH=./node_modules/.bin:$HOME/bin:$HOME/.composer/vendor/bin:/usr/local/bin:/Users/tmarshall/repos/multitasking/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/tmarshall/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See
# ZSH_THEME="af-magic"
View keybindings.json
// Place your key bindings in this file to overwrite the defaults
"key": "alt+down",
"command": "incrementor.decByOne"
"key": "ctrl+down",
"command": "-incrementor.decByOne"
View .vscode-settings
"workbench.colorTheme": "One Monokai",
"editor.lineHeight": 24,
"editor.fontSize": 14,
"files.autoSave": "onFocusChange",
"workbench.editor.labelFormat": "default",
"sublimeTextKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.fontFamily": "Fira Code",
tommymarshall / .zshrc
Created Jan 29, 2018
Create a PR against master from your the branch you're in, and open it in the browser.
View .zshrc
pr () {
local repo=`git remote -v | grep -m 1 "origin" | sed -e "s/.*[:/]\(.*\)\.git.*/\1/"`
local branch=`git name-rev --name-only HEAD`
echo "... creating pull request for branch \"$branch\" in \"$repo\""
tommymarshall / keybindings.json
Created Dec 1, 2017
Get Emmet tag completion (type 'div' hit TAB) working in JSX files
View keybindings.json
"keys": ["tab"], "command": "expand_abbreviation_by_tab", "context": [
"operand": "source.js",
"operator": "equal",
"match_all": true,
"key": "selector"
"key": "selection_empty",
tommymarshall /
Last active Oct 11, 2017
# of times Nationals won 2 games in a row during the regular season
tommymarshall / Demo.js
Last active Aug 9, 2017
Simple Modal in React using react-portal-minimal and styled-components
View Demo.js
import React from 'react';
import { TextBlock } from '../../text';
import { Modal } from '../';
class Demo extends React.Component {
state = {
open: false
handleOpenModel = () => this.setState({ open: ! });
You can’t perform that action at this time.