Skip to content

Instantly share code, notes, and snippets.

Tyler Tadej tylertadej

Block or report user

Report or block tylertadej

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

MacOS cheatsheet

# show hidden files

Docker cheat sheet

# bash into container
docker exec -it [container-id] bash

# exclude image from build
docker-compose up --scale serviceToNotRun=0

# kill all containers
tylertadej /
Last active Feb 27, 2017
SVGO commands

Show SVGO plugins

$ svgo --show-plugins

Run on entire folder and enable removeTitle plugin

$ svgo -f /Users/ttadej/community/lithium-plugin/src/svgs/collections --enable=removeTitle

Run on specific file and enable removeStyleElement plugin

tylertadej / tabTitleSwitcher.js
Created Dec 2, 2015
Change page title when browser tab is unfocused
View tabTitleSwitcher.js
* Usage
* The following code will modify the title of the browser tab on the "blur" event and change it back to the original on the "focus" event.
// store the original tab title
var origTitle = document.title;
// function to change title when focusing on tab
tylertadej /
Last active Sep 25, 2018
Terminal (CLI) secrets

Command Line basics

$ ls -a     # lists all contents of a directory, including hidden files and directories
$ ls -l     # lists all contents in long format
$ ls -t     # orders files and directories by the time they were last modified
tylertadej /
Last active Sep 3, 2015
Chrome DevTools tips and tricks

Chrome DevTools tips and tricks

Speed up your workflow with these Mac shortcuts
Cmd-Alt+I               # Open DevTools
Cmd-Alt+J               # Open DevTools into console
Cmd-Alt+U               # Open new tab with HTML source of current URL
tylertadej /
Last active Jan 20, 2020
WebStorm keyboard shortcuts

WebStorm keyboard shortcuts

List of helpful keyboard shortcuts for IntelliJ WebStorm 8 running on OSX
Alt+Up                Select text blocks in incrementing size
Alt+Down              Deselect text blocks in decreasing size
Shift+Shift           Search Everywhere pop-up window
tylertadej /
Last active Dec 4, 2018
Pro Git commands for Git users

Git Your Act Together

Git Setup

Global settings stored in a system .gitconfig file; view file using $ cat ~/.gitconfig
Single repo settings stored in /.git/config in your project folder
View current configurations in the terminal window
$ git config --list
$ git config <level> --list
You can’t perform that action at this time.