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
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
tommymarshall / nginx.conf
Last active Feb 22, 2019
Parking Domains NGINX config
View nginx.conf
# My changes
server {
listen [::]:80;
server_name domain.com parkeddomain.com;
rewrite ^ http://domain.com$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 https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# 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
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/.*github.com[:/]\(.*\)\.git.*/\1/"`
local branch=`git name-rev --name-only HEAD`
echo "... creating pull request for branch \"$branch\" in \"$repo\""
open https://github.com/$repo/pull/new/$branch
}
@tommymarshall
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
tommymarshall / README.md
Last active Oct 11, 2017
# of times Nationals won 2 games in a row during the regular season
View README.md
@tommymarshall
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: !this.state.open });
@tommymarshall
tommymarshall / custom_user_bindings.sublime-keymap
Last active Jun 2, 2017
Custom User Bindings for using AlignTab with ='s, =>'s, and :'s in Sublime Text
View custom_user_bindings.sublime-keymap
[
{
"keys": ["control+alt+;"], "command": "align_tab",
"args" : {
"user_input" : ":/f"
}
},
{
"keys": ["control+alt+="], "command": "align_tab",
"args" : {
You can’t perform that action at this time.