curl -LO https://deployer.org/deployer.phar && sudo mv deployer.phar /usr/local/bin/dep && sudo chmod +x /usr/local/bin/dep
composer require deployer/recipes --dev
composer require rafaelstz/deployer-magento2 dev-master --dev
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
location /robots.txt { return 200 "### Autogenerated robots.txt\n | |
# Sitemap | |
Sitemap: https://$http_host/sitemap.xml | |
# Basic Crawler setup. We allow for everything | |
User-agent: * | |
Allow: / | |
Crawl-delay: 10 | |
# Then we start disallowing stuff |
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
delimiter ;; | |
drop procedure if exists build_catalog;; | |
create procedure build_catalog(IN categories INT, IN products INT) | |
begin | |
SET @category_count = 1; | |
SET @CATNAMEPREFIX = "Category "; | |
SET @CATURLKEYPREFIX = "cat-"; | |
SET @CATURLPATHPREFIX = "catpath-"; | |
SET @ROOTCATEGORY = 2; | |
SET @INCLUDEINMENU = 1; |
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
[Unit] | |
Description=X Virtual Frame Buffer Service | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/Xvfb :99 -screen 0 1024x768x24 | |
[Install] | |
WantedBy=multi-user.target |
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
#!/bin/bash | |
# /usr/local/bin/backupwallet.sh | |
# | |
# Performs backup of bitcoin wallet. | |
# | |
# Written by: https://en.bitcoin.it/wiki/Securing_your_wallet | |
# | |
# Standard Options | |
# |
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
#! /usr/bin/env python | |
class Point(object): | |
def __init__(self, _x, _y, _order = None): self.x, self.y, self.order = _x, _y, _order | |
def calc(self, top, bottom, other_x): | |
l = (top * inverse_mod(bottom)) % p | |
x3 = (l * l - self.x - other_x) % p | |
return Point(x3, (l * (self.x - x3) - self.y) % p) |
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
# From private key(hex) to Wallet Import Format(WIF) | |
# Reference: https://medium.freecodecamp.org/how-to-create-a-bitcoin-wallet-address-from-a-private-key-eca3ddd9c05f | |
# https://docs.python.org/2/library/hashlib.html | |
import codecs #If not installed: "pip3 install codecs" | |
import hashlib | |
# PK0 is a demo private key. | |
PK0 = "841846de7afbe32ee7ded837872c6e0825db095275b8afed0000000000000000" | |
PK1 = '80'+ PK0 | |
PK2 = hashlib.sha256(codecs.decode(PK1, 'hex')) | |
PK3 = hashlib.sha256(PK2.digest()) |
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
1.Binance | |
2.Bitfinex | |
3.Huobi | |
4.Bitstamp | |
5.Coincheck | |
6.Kraken | |
7.Poloniex | |
8.Gate.io (Only ETH) | |
9.Cryptopia (Only ETH) | |
10.Gemini (Only ETH) |
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
#!/usr/bin/env bash | |
# | |
# ВАЖНО. mail.ru время от времени меняет внутрянку, не очень сильно, но требуется адаптация скрипта. | |
# Если скрипт не работает, просьба разместить патч в комментариях или сделать работающий форк. | |
# 2018-06-18 updated: mail.ru changed internals | |
# 2017-09-22 original idea: https://novall.net/itnews/bash-skript-dlya-skachivaniya-fajlov-s-mail-ru-cherez-konsol-linux.html | |
URL="$1" |
Use these snippets to setup a magento installation with the following structure:
- http://www.domain.tld/en -> website: domain / storeview: domain_en
- http://www.domain.tld/de -> website: domain / storeview: domain_de
- http://www.domain.tld/es -> website: domain / storeview: domain_es
- http://www.domain1.tld/en -> website: domain1 / storeview: domain1_en
- http://www.domain1.tld/de -> website: domain1 / storeview: domain1_de
- http://www.domain1.tld/es -> website: domain1 / storeview: domain1_es
- http://www.domain2.tld/en -> website: domain2 / storeview: domain2_en
- http://www.domain2.tld/de -> website: domain2 / storeview: domain2_de