create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
<?php | |
namespace ExampleBundle\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilder; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use ExampleBundle\Form\EventListener\addTranslatedFieldSubscriber; |
<?php | |
/** | |
* Skeletal sample shortcode | |
*/ | |
add_shortcode( 'pilau-sample', 'pilau_sample_shortcode' ); | |
function pilau_sample_shortcode( $atts ) { | |
extract( shortcode_atts( array( | |
'text' => '' | |
), $atts ) ); |
alias phpdebug='PHP_IDE_CONFIG="serverName=website.dev" XDEBUG_CONFIG="idekey=PHPSTORM" php -d xdebug.remote_host=10.0.2.2 -d xdebug.remote_connect_back=0' |
<?xml version="1.0"?> | |
<ruleset name="phpmd.xml" | |
xmlns="http://pmd.sf.net/ruleset/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | |
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | |
<description>PHPMD Ruleset for a WordPress Theme</description> | |
<rule ref="rulesets/cleancode.xml/BooleanArgumentFlag" /> | |
<rule ref="rulesets/cleancode.xml/ElseExpression" /> | |
<rule ref="rulesets/cleancode.xml/StaticAccess" /> |
#!/usr/bin/env bash | |
# A git post-receive hook | |
# | |
# On master branch only : | |
# 1. It builds a docker image named with the dir name | |
# 2. It then stop container of the same name, rm it and start a new one | |
## --- Config |
#!/usr/bin/env bash | |
# | |
# Bootstrap script for setting up a new OSX machine | |
# | |
# This should be idempotent so it can be run multiple times. | |
# | |
# Some apps don't have a cask and so still need to be installed by hand. These | |
# include: | |
# | |
# - Twitter (app store) |
<?php | |
/** | |
* Fetch YouTube ID from URLs | |
* | |
* @param string $url | |
* @return string | |
*/ | |
function ja_youtube_id( $url ){ | |
$regex = '~(?:http|https|)(?::\/\/|)(?:www.|)(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{11})[a-z0-9;:@#?&%=+\/\$_.-]*~i'; | |
$id = preg_replace( $regex, '$1', $url ); |
<?php | |
/** | |
* Plugin Name: ACF Wysiwyg Style Select | |
* Description: Custom style select boxes for ACF Wysiwyg editors. | |
* Author: Alex Brombal | |
* Author URI: http://www.brombal.com | |
* Version: 1.1 | |
* License: MIT | |
*/ | |
<?php | |
//ACF Editor customization | |
function mindset_toolbars( $toolbars ) | |
{ | |
// Uncomment to view format of $toolbars | |
/* | |
echo '< pre >'; | |
print_r($toolbars); | |
echo '< /pre >'; |