PhpStorm now bundles WordPress coding style natively, starting from version 8.
- Go to
Project Settings>Code Style>PHP. - Select
Set From...(top right of window) >Predefined Style>WordPress.
No longer need to muck with this import! :)
| @@ -28,7 +28,7 @@ | |
| ### Set diff-cmd to the absolute path of your 'diff' program. | |
| ### This will override the compile-time default, which is to use | |
| ### Subversion's internal diff implementation. | |
| -# diff-cmd = diff_program (diff, gdiff, etc.) | |
| +diff-cmd = colordiff | |
| ### Set diff3-cmd to the absolute path of your 'diff3' program. | |
| ### This will override the compile-time default, which is to use | |
| ### Subversion's internal diff3 implementation. |
| /* | |
| * Containing floats in a consistent manner | |
| * By Jonathan Neal and Nicolas Gallagher | |
| */ | |
| /* | |
| * New block formatting context method | |
| * IE 6+, Firefox 2+, Safari 4+, Opera 9+, Chrome | |
| */ |
| #!/bin/bash | |
| export TERM=xterm-color | |
| export CLICOLOR=1 | |
| export GREP_OPTIONS='--color=auto' | |
| # export LSCOLORS=Exfxcxdxbxegedabagacad | |
| export LSCOLORS=gxfxcxdxbxegedabagacad # Dark lscolor scheme | |
| # Don't put duplicate lines in your bash history | |
| export HISTCONTROL=ignoredups | |
| # increase history limit (100KB or 5K entries) | |
| export HISTFILESIZE=100000 |
| // This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.github.io | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
| */ |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| user www-data; | |
| worker_processes 4; | |
| worker_cpu_affinity 0001 0010 0100 1000; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 2048; | |
| } |
| server { | |
| listen 80 default_server; | |
| server_name domain.com *.domain.com; | |
| root /srv/www/domain.com/public; | |
| access_log /srv/www/domain.com/log/access.log; | |
| error_log /srv/www/domain.com/log/error.log; | |
| location / { | |
| index index.php; |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"