This file contains 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
<ul id="accordion"> | |
<li></li> | |
... | |
</ul> |
This file contains 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
const rocketboost = require('rocketboost')('secret_key_1WHdd4COznElyScC5as9'); | |
const pass = await rocketboost.passes.create('template_BQ2wwXblWgH4olfQ2', { | |
expiration_date: '2021-01-01 00:00:00', | |
customer: { | |
first_name: 'John', | |
last_name: 'Doe' | |
} | |
}); |
This file contains 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
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf | |
charset = utf-8 | |
insert_final_newline = true | |
trim_trailing_whitespace = true |
This file contains 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
{ | |
"id": "evt_000000000000000000000000", | |
"object": "event", | |
"api_version": "2017-02-14", | |
"created": 1535997315, | |
"data": { | |
"object": { | |
"id": "card_000000000000000000000000", | |
"object": "card", | |
"address_city": null, |
This file contains 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
# Workaround for validating Active Storage content type | |
# | |
# Currently Active Storage does not support validation. | |
# This "workaround" will not prevent attachment from being saved. | |
# It will be saved, validated and then deleted if validation fails. | |
class User < ApplicationRecord | |
has_one_attached :avatar | |
validate :validate_avatar |
This file contains 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
git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
source ~/.bashrc | |
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build | |
rbenv install x.x.x |
This file contains 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
<catalog_category_layered> | |
<reference name="catalog.leftnav"> | |
<action method="unsetChild"><alias>category_filter</alias></action> | |
</reference> | |
</catalog_category_layered> |
This file contains 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
-- mladen@stuntcoders.com -> mladen@example.com | |
UPDATE `customer_entity` SET `email` = REPLACE(`email`, SUBSTRING(`email`, INSTR(`email`, '@') + 1), 'example.com'); | |
UPDATE `sales_flat_quote_address` SET `email` = REPLACE(`email`, SUBSTRING(`email`, INSTR(`email`, '@') + 1), 'example.com'); | |
UPDATE `sales_flat_order_address` SET `email` = REPLACE(`email`, SUBSTRING(`email`, INSTR(`email`, '@') + 1), 'example.com'); |
This file contains 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
# Don't forget to change base-url ;) | |
bin/magento setup:install --admin-firstname=Mladen --admin-lastname=Ilic --admin-email=mladen@stuntcoders.com --admin-user=admin --admin-password=sc123123 --base-url=http://example.com/ --backend-frontname=admin --db-password=root |
This file contains 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 -ea_php 70 script.php // execute script with PHP v7.0.x | |
php -ea_php 71 script.php // execute script with PHP v7.1.x | |
php -ea_php 72 script.php // execute script with PHP v7.2.x |
NewerOlder