Skip to content

Instantly share code, notes, and snippets.

View tobyzerner's full-sized avatar

Toby Zerner tobyzerner

View GitHub Profile
@sindresorhus
sindresorhus / git-pulley.sh
Created May 7, 2012 20:01
Git merge squash author commit and push - cheatsheet
git checkout master
git checkout -b bug123
git pull http://repourl.git branch
git log | grep "Author" | head -1 # get the author
git checkout master
git merge --squash bug123
git commit -a --author="Author" --message="Close #1: Title. Fixes #666"
git push origin master
@abhiomkar
abhiomkar / zip-tar-cheatsheet.sh
Last active January 2, 2018 23:35
zip tar cheatsheet
# Compress file
zip compressed.zip file_name.txt
# Compress Folder
zip -r compressed.zip folder_name/
# Uncompress zipped file to current directory
unzip compressed.zip
# Uncompress zipped to current directory to specific location
@adamwathan
adamwathan / troubleshooting.md
Last active January 19, 2021 04:14
Troubleshooting Valet on macOS Sierra

Troubleshooting Valet on Sierra

Common Problems

Problem: I just see "It works!"

Apache is running on port 80 and interfering with Valet.

  1. Stop Apache: sudo /usr/sbin/apachectl stop
  2. Restart Valet: valet restart

use a state managmer for storing data

Redux or MobX

use react eslint

most important rules that I can think of:

  • react/jsx-no-bind (it gonna bost performance to another level)
  • react/prefer-stateless-function (for performance)