Skip to content

Instantly share code, notes, and snippets.

View PixelSushiRobot's full-sized avatar
👋

PixelSushiRobot PixelSushiRobot

👋
View GitHub Profile
@PixelSushiRobot
PixelSushiRobot / composer-path.sh
Last active June 11, 2021 23:44
[Add Composer path to ZSH on macOS] Add composer path to .zshrc interactive shell profile and restart the environment. #Terminal #ZSH #macOS
# Add composer path to .zshrc profile
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.zshrc
# Restart the environment
source .zshrc
@PixelSushiRobot
PixelSushiRobot / document.designMode.md
Last active June 11, 2021 23:47
[Toggle live text editing in Chrome] Edit website's text directly in Chrome. #Chrome #JavaScript

Toggle Live Text Editing in Chrome

Edit website's text directly in Chrome.

Steps:

  1. Open Console in Developer Tools Command-Option-J
  2. Enter the code below

Code:

// Turn on Design Mode
@PixelSushiRobot
PixelSushiRobot / dock-spacer.sh
Last active June 11, 2021 23:32
[Add a spacer on macOS dock] Add space between app icons in dock. #Terminal #macOS
# Large Spacer
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
# Small Spacer
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}'; killall Dock