Skip to content

Instantly share code, notes, and snippets.

@davcavalcante
davcavalcante / Commands
Created May 8, 2023 00:40 — forked from lukecav/Commands
Remove WPML options left after the plugin is removed from WordPress using WP-CLI
# delete all wpml option values
wp option delete wpml_base_slug_translation
wp option delete wpml_built_with_page_builder
wp option delete wpml_config_files_arr
wp option delete wpml_config_index
wp option delete wpml_config_index_updated
wp option delete wpml_dependencies:installed_plugins
wp option delete wpml_dependencies:invalid_plugins
wp option delete wpml_dependencies:needs_validation
wp option delete wpml_dependencies:valid_plugins

Change Apple OS X Dock size from Apple Terminal

defaults write com.apple.dock tilesize -int 32; killall Dock

32 is icon size

@andrewlimaza
andrewlimaza / Sublime-stuffs.txt
Last active April 20, 2023 23:56 — forked from pbrocks/Sublime-stuffs.txt
Install PHPCS with WordPress Coding Standard with Sublime Text 3
1. cmd+shift+p
2. Type phpcs and install it
3. Preferences > Package Settings > PHP Code Sniffer > Settings - User
# from : 10 terminal commands to speed up your Mac | defaults-write.com
# https://www.defaults-write.com/10-terminal-commands-to-speed-up-macos-sierra-on-your-mac/
#1. Disable animations when opening and closing windows.
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
#2. Disable animations when opening a Quick Look window.
defaults write -g QLPanelAnimationDuration -float 0
#3. Accelerated playback when adjusting the window size (Cocoa applications).
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
#4. Disable animation when opening the Info window in Finder (cmd⌘ + i).
defaults write com.apple.finder DisableAllAnimations -bool true
@pazairfog
pazairfog / config
Last active May 9, 2023 02:20
Global ZSH config
# Configuration globale
export LANG=fr_FR.UTF-8
# Preferred editor for local and remote sessions
export EDITOR='vim'
# Look in ~/.oh-my-zsh/themes/
ZSH_THEME="kolo"
# Add wisely, as too many plugins slow down shell startup.
@simurai
simurai / css-properties.css
Created November 26, 2015 05:42
All CSS properties
/*
* CSS Properties
* http://ref.openweb.io/CSS/
**/
.properties {
align-content: value;
align-items: value;
align-self: value;
@nivoc
nivoc / zshrc
Created April 23, 2012 23:39
my-zsh-config
# nivoc's zshrc file v0.1, based on:
# kcbanner's zshrc file v0.1 and
# jdong's zshrc file v0.2.1 and
# mako's zshrc file, v0.1
setopt ALL_EXPORT
DISABLE_AUTO_TITLE="true"
# Set/unset shell options
setopt notify globdots correct pushdtohome cdablevars autolist