Skip to content

Instantly share code, notes, and snippets.

View seanbuscay's full-sized avatar

Sean Buscay seanbuscay

View GitHub Profile
pbcopy < ~/.ssh/id_rsa.pub
@seanbuscay
seanbuscay / Automatically fix coding standards.sh
Last active September 7, 2018 19:25
PHP Code Sniffer Command Line Usage
phpcbf --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,js,css,info,txt,md /file/to/drupal/example_module
@seanbuscay
seanbuscay / Add recents to doc.sh
Last active September 7, 2018 19:26
OSX Add Recent Items to Doc
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'
@seanbuscay
seanbuscay / Add doc spacers.sh
Last active September 7, 2018 19:26
OSX Add Dock Spacers
# Left side
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'; killall Dock
# Right Side
defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'; killall Dock
@seanbuscay
seanbuscay / delete and show.sh
Last active September 7, 2018 19:26
Drush Watchdog Log Tail
drush watchdog-delete -y all; drush watchdog-show —tail
@seanbuscay
seanbuscay / drush eval node.sh
Last active September 7, 2018 19:26
Drupal 7 Drush View Node Print R
drush php-eval 'print_r(node_load($nid))'
$ multi-tail.sh error_log access_log
(or)
$ tail -f /var/log/syslog -f /var/log/auth.log
(or)
$ multitail error_log access_log
git config --global core.excludesfile '~/.gitignore'
sudo dseditgroup -o edit -a `whoami` -t user _www
cat /dev/null > largefile.txt