Used nodes:
Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
Linux localhost.localdomain 4.14.5-200.fc26.x86_64 #1 SMP Mon Dec 11 16:29:08 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
| SELECT product.ID as product_id, product.post_title as product_name, replace(product.post_content, '"', "'") as product_content, product_sku.meta_value as product_sku, product_price.meta_value as product_price, product_weight.meta_value as product_weight | |
| FROM wp_posts as product | |
| LEFT JOIN wp_postmeta as product_sku ON product.ID = product_sku.post_ID | |
| LEFT JOIN wp_postmeta as product_price ON product.ID = product_price.post_ID | |
| LEFT JOIN wp_postmeta as product_weight ON product.ID = product_weight.post_ID | |
| WHERE (product.post_type = 'product' OR product.post_type = 'product_variation') AND product_sku.meta_key = '_sku' AND product_price.meta_key = '_price' AND product_weight.meta_key = '_weight' | |
| ORDER BY product_id ASC |
| These commands are based on a askubuntu answer http://askubuntu.com/a/581497 | |
| To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below. | |
| USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING. | |
| ABSOLUTELY NO WARRANTY. | |
| If you are still reading let's carry on with the code. | |
| sudo apt-get update && \ | |
| sudo apt-get install build-essential software-properties-common -y && \ | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ |
The first step to setting up an Ethereum development environment is running a node. Public nodes run by MyEtherWallet and Augur are great public services. However, you cannot always attach your private keys securely to such a node, and so you are limited to read-only interactions (reading contract variables, checking account balances). Moreover, you cannot always upload contracts reliably due to (Solidity) compiler incompatibilities.
A service worker is a special script which runs in the background in the browser and manages network requests to a given origin. It's originally installed by an app and stays resident on the user's machine/device. It's activated by the browser when a page from its origin is loaded, and has the option to respond to HTTP requests during the page loading, including the initial navigation request (for /index.html). This makes service workers very useful for true offline support in applications.
Additionally, service workers are the client-side endpoint for push notifications on the web.
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
| #!/bin/sh | |
| # In case df shows >90% for /boot run: | |
| #sudo apt-get autoremove | |
| # Add repository | |
| sudo add-apt-repository ppa:ondrej/php | |
| # Install required packages | |
| sudo apt-get update |
| <?php | |
| class AdminImportController extends AdminImportControllerCore | |
| { | |
| public function __construct() | |
| { | |
| parent::__construct(); | |
| } |
sudo apt-get update
sudo apt-get install git
cd ~
git clone --recursive https://github.com/CartoDB/cartodb20.git
| <div class="page"> | |
| <header class="banner"> | |
| <p>Banner</p> | |
| </header> | |
| <nav class="pagenav"> | |
| <p><a href="#">Page Nav</a></p> | |
| </nav> | |
| <main class="main"> | |
| <aside class="summary"> | |
| <p>Summary</p> |