Skip to content

Instantly share code, notes, and snippets.

View iamnnort's full-sized avatar

Nikita Pavets iamnnort

View GitHub Profile
quote - это заказ покупателя
quote_address, quote_address_item - это адреса, связанные с заказом покупателя
quote_item - это статья заказа
quote_item_option - это опция, выбранная покупателем при заказе настраиваемого товара
quote_payment - это данные о способе оплате и его параметрах для заказа
quote_shipping_rate - это тарифы доставки для заказа
@iamnnort
iamnnort / clean
Last active June 17, 2017 20:10
react-native
gradlew clean
@iamnnort
iamnnort / node
Created August 8, 2017 14:29
Ubuntu
ln -s /usr/bin/nodejs /usr/bin/node
sudo apt-get install php5-xdebug
sudo php5enmod xdebug
sudo service php5.6-fpm restart
open /etc/php/5.6/mods-available/xdebug.ini & add lines:
zend_extension=xdebug.so
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_handler="dbgp"
xdebug.remote_host="127.0.0.1"
@iamnnort
iamnnort / .visually-hidden
Last active December 27, 2019 12:53
CSS: Hide element
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
border: 0;
padding: 0;
clip: rect(0 0 0 0);
overflow: hidden;
}
1.Install
sudo add-apt-repository ppa:gophers/archive
sudo apt update
sudo apt-get install golang-go
2. Insert path to ~/.bashrc
#Golang variables
export GOROOT=/usr/lib/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
3. Apply changes
@iamnnort
iamnnort / Cross element
Last active January 5, 2018 12:40
CSS: Mixins
@mixin close($color, $size: 30px) {
position: relative;
display: inline-block;
width: $size;
height: $size;
border: 0;
@iamnnort
iamnnort / cli
Created November 24, 2017 13:28
Magento
- Start reindex
php bin/magento indexer:reindex
@iamnnort
iamnnort / docker-clean-all.sh
Created September 13, 2018 09:38
Docker - Remove all builds and instances
docker stop $(docker container ls -a -q) && docker system prune -a -f --volumes
@iamnnort
iamnnort / babel-polyfill.js
Last active February 19, 2019 09:20
babel-polyfill - error Error: only one instance of babel-polyfill is allowed
if (!global._babelPolyfill) {
import 'babel-polyfill';
}