Docker is installed
- create directory
~/magento2-docker
- add docker-compose.yml to
~/magento2-docker
with the following content
version: '3'
services:
var Bot = require('node-telegram-bot-api') | |
var watson = require('watson-developer-cloud'); | |
var request = require('request'); | |
var config = require('./config'); | |
var speech_to_text = watson.speech_to_text({ | |
username: config.watson.username, | |
password: config.watson.password, | |
version: 'v1', | |
url: 'https://stream.watsonplatform.net/speech-to-text/api' |
Patch using method below or if you don't want to patch a core file, see this Magento extension that does the same thing but correctly overrides the core file:
https://github.com/MageMechanic/PhpSeven
# run in magento root directory
# one-liner to apply patch using wget
wget -qO- 'https://gist.githubusercontent.com/MageMechanic/66449504110fbbd96214/raw/php7_magento_1_9_core.patch' | patch -p0
# one-liner to apply patch using curl
cd htdocs | |
composer create-project magento/community-edition magento2 1.0.0-beta --prefer-dist | |
create db (see details below) | |
Edit setup/index.php && index.php and add this - ini_set('xdebug.max_nesting_level', 200); | |
bin/magento setup:install --base-url=http://127.0.0.1/magento2/ \ | |
--db-host=localhost --db-name=magento --db-user=magento --db-password=magento \ | |
--admin-firstname=Magento --admin-lastname=User [email protected] \ |
<?xml version="1.0"?> | |
<config> | |
<global> | |
<skip_process_modules_updates>1</skip_process_modules_updates> | |
</global> | |
</config> |
<script type="text/javascript"> | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var css_href = './index_files/web-fonts.css'; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, false); |
<?php | |
/** | |
* Drop this into the shell directory in the Magento root and run without any arguments. | |
*/ | |
require_once 'abstract.php'; | |
/** | |
* Clean up the 1.6.1 sample data to work with the 1.8 CE url key constraints. |
$ sudo vi /etc/hosts | |
# make sure your hostname goes in the first line | |
127.0.0.1 localhost.localdomain localhost addyourhostnamehere | |
... |
<?php | |
//This is all you need to configure. | |
$app_key = ''; | |
$app_token = ''; | |
//These are our constants. | |
$api_base = 'https://api.twitter.com/'; | |
$bearer_token_creds = base64_encode($app_key.':'.$app_token); |