Snippets

PHPStorm + WordPress – File and Code Templates

  /**
   * ${NAME}.php file summary.
   *
   * ${NAME}.php file description.
   *
   * @link       https://project.com
   *
   * @package    Project
#if (${NAMESPACE} && ${NAMESPACE} != '' && ${NAMESPACE} != ${NAME})   * @subpackage ${NAMESPACE}
#end
   * @author     Arvil Meña <arvil@arvilmena.com>
   * @license    https://www.gnu.org/licenses/gpl-3.0.txt GNU/GPLv3
   * @since      1.0.0
   */

declare(strict_types=1);

WordPress – composer.json template

{
    "name": "arvil/wordpress",
    "description": "Probably doing freelancing again",
    "repositories":[
        {
            "type":"composer",
            "url":"https://wpackagist.org"
        }
    ],
    "require": {
    },
    "extra": {
        "installer-paths": {
            "public/wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
            "public/wp-content/themes/{$name}/": ["type:wordpress-theme"]
        },
        "wordpress-install-dir": "public"
    }
}

ConEmu + Cygwin setup

Notes: oh-my-zsh – can’t use the git status autoload of themes like [PowerLevel9k](https://github.com/bhilburn/powerlevel9k) or any other git-prompt themes, its mandatory to issue `git config –global oh-my-zsh.hide-status 1` to make those theme fast-enough-to-be-usable, this is bec

tmux – conf and layout

# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b


# learn how to script this
# https://stackoverflow.com/questions/5609192/how-to-set-up-tmux-so-that-it-starts-up-with-specified-windows-opened
#bind S source-file ~/.tmux/session1