Skip to content

Instantly share code, notes, and snippets.

View joraff's full-sized avatar

Joseph Rafferty joraff

View GitHub Profile
@joraff
joraff / disable-comments.sh
Last active September 26, 2016 14:57 — forked from jplhomer/disable-comments.sh
Disable all comments/pings in WordPress with WP-CLI
$ export SITE="mysite.com"
$ wp post list --format=ids --url=$SITE | xargs wp post update --comment_status=closed --ping_status=closed --url=$SITE
$ wp post list --format=ids --post_type=page --url=$SITE | xargs wp post update --comment_status=closed --ping_status=closed --url=$SITE
# Output:
# Success: Updated post 2514.
# Success: Updated post 2511.
# Success: Updated post 2504.
# Success: Updated post 2499.
# Success: Updated post 2441.
@joraff
joraff / .osx
Created March 19, 2013 17:15 — forked from jinkim/.osx
# Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Enable the 2D Dock
defaults write com.apple.dock no-glass -bool true
# Make Dock icons of hidden applications translucent
defaults write com.apple.dock showhidden -bool true
# Disable menu bar transparency