This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var user = { | |
_links: { | |
type: { | |
href: 'http://192.168.100.106:81/rest/type/user/user' | |
} | |
}, | |
name:[{'value':'user'}], | |
pass:[{'value':'pass'}], | |
status:[{'value':true}], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Install Drupal and Drush with MariaDB, Nginx, and PHP-FPM | |
hosts: 127.0.0.1 | |
connection: local | |
remote_user: vagrant | |
become: yes | |
vars: | |
mysql_root_password: 'my_secure_pass' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Install Drupal and Drush with MariaDB, Nginx, and PHP-FPM | |
hosts: 127.0.0.1 | |
connection: local | |
remote_user: vagrant | |
become: yes | |
vars: | |
memcached_listen_ip: 127.0.0.1 | |
memcached_memory_limit: 1024 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Install Drupal and Drush with Nginx, and PHP-FPM | |
hosts: 127.0.0.1 | |
remote_user: vagrant | |
become: yes | |
vars: | |
opcache_memory_consumption: 256 | |
#fastcgi_buffers: 64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.config/nvim/plugged') | |
" Polyglot loads language support on demand! | |
Plug 'sheerun/vim-polyglot' | |
Plug 'tomasr/molokai' | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
let g:deoplete#enable_at_startup = 1 | |
" use tab for completion | |
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>" | |
" Execute code checks, find mistakes, in the background |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
createuser -Psd guia | |
createdb -O guia guia | |
# psql | |
# alter user guia with encrypted password 'guia'; -- not needed if using -P (prompt password) | |
# grant all privileges on database guia to guia ; -- not needed if using createdb -O (give ownership) | |
# alter user guia createdb ; -- not needed if using -d in createuser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$type_manager = \Drupal::entityTypeManager()->getStorage('commerce_payment'); | |
$payments = $type_manager->loadByProperties(['remote_id' => 'LTCL000016']); | |
$payment = reset($payments); | |
$payment->state = 'pending'; | |
$payment->save(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\custom_theme_helpers; | |
use Drupal\Core\Routing\RouteMatchInterface; | |
use Drupal\Core\Theme\ThemeNegotiatorInterface; | |
/** | |
* Class CustomThemeNegotiator. | |
* | |
* @package Drupal\bixal_theme_helpers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am jackbravo on github. | |
* I am jackbravo (https://keybase.io/jackbravo) on keybase. | |
* I have a public key ASCL22NAcm3VaLEnMmaKfUVUw9BkA8wUkeVnsQ1ilgwJ5Qo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\guia_commerce\Form; | |
use Drupal\Core\Form\ConfigFormBase; | |
use Drupal\Core\Form\FormStateInterface; | |
/** | |
* Class ExchangeRateForm. | |
*/ |