Skip to content

Instantly share code, notes, and snippets.

vtctl MoveTables -cells=etsy_cells -workflow=ks2to3_workflow ks2 ks3 'ks2to3_test'
vtctl SwitchReads -tablet_type=rdonly ks3.ks2to3_workflow
vtctl SwitchReads -tablet_type=replica ks3.ks2to3_workflow
vtctl SwitchWrites ks3.ks2to3_workflow
vtctl SwitchReads -tablet_type=rdonly ks2.ks2to3_workflow_reverse
vtctl SwitchReads -tablet_type=replica ks2.ks2to3_workflow_reverse
vtctl_etsy SwitchWrites ks2.ks2to3_workflow_reverse
# after executing the previous command, i *think* that `select * from _vt.vreplication\G` might show non-fully qualified vindex names in the in_keyrange clause...

Shell pipelines setup

Table of Contents

Setup

We need to install ffmpeg, python3, and sox if not already installed. On OS X, you can use homebrew:

brew install ffmpeg
brew install sox
brew install python3
#!/usr/bin/env php
<?php
function helpMessage($exit = 0) {
echo <<<EOT
Delay output by specified number of seconds.
-t <float> duration in seconds
EOT;

Shell pipelines

This guide will introduce you to the concept of shell pipelines and process substitution by playing youtube videos in your terminal.

Setup

We need to install ffmpeg, python3, and sox if not already installed. On OS X, you can use homebrew:


<?php declare(strict_types=1);
use Phan\CodeBase;
use Phan\Language\Context;
use Phan\PluginV3;
use Phan\PluginV3\AnalyzeFunctionCallCapability;
use Phan\Language\Element\FunctionInterface;
/**
* Prints out call sites of given functions or methods.
101 Clinton Street, Brooklyn, NY 11201
1154 Clarkson Avenue, Brooklyn, NY 11212
1631-43 Pitkin Avenue, Brooklyn, NY 11212
1679 Bedford Avenue, Brooklyn, NY 11225
1791 Utica Avenue, Brooklyn, NY 11234
182 Smith Street, Brooklyn, NY 11201
1950 Fulton Street, Brooklyn, NY 11233
2002 Avenue U, Brooklyn, NY 11229
2064 Mill Avenue, Brooklyn, NY 11234
2819 Church Avenue, Brooklyn, NY 11226
101 Clinton Street, Brooklyn, NY 11201
1154 Clarkson Avenue, Brooklyn, NY 11212
1631-43 Pitkin Avenue, Brooklyn, NY 11212
1679 Bedford Avenue, Brooklyn, NY 11225
1791 Utica Avenue, Brooklyn, NY 11234
182 Smith Street, Brooklyn, NY 11201
1950 Fulton Street, Brooklyn, NY 11233
2002 Avenue U, Brooklyn, NY 11229
2064 Mill Avenue, Brooklyn, NY 11234
2819 Church Avenue, Brooklyn, NY 11226
101 Clinton Street, Brooklyn, NY 11201
1154 Clarkson Avenue, Brooklyn, NY 11212
1631-43 Pitkin Avenue, Brooklyn, NY 11212
1679 Bedford Avenue, Brooklyn, NY 11225
1791 Utica Avenue, Brooklyn, NY 11234
182 Smith Street, Brooklyn, NY 11201
1950 Fulton Street, Brooklyn, NY 11233
2002 Avenue U, Brooklyn, NY 11229
2064 Mill Avenue, Brooklyn, NY 11234
2819 Church Avenue, Brooklyn, NY 11226
101 Clinton Street, Brooklyn, NY 11201
1154 Clarkson Avenue, Brooklyn, NY 11212
1631-43 Pitkin Avenue, Brooklyn, NY 11212
1679 Bedford Avenue, Brooklyn, NY 11225
1791 Utica Avenue, Brooklyn, NY 11234
182 Smith Street, Brooklyn, NY 11201
1950 Fulton Street, Brooklyn, NY 11233
2002 Avenue U, Brooklyn, NY 11229
2064 Mill Avenue, Brooklyn, NY 11234
2819 Church Avenue, Brooklyn, NY 11226
101 Clinton Street, Brooklyn, NY 11201
1154 Clarkson Avenue, Brooklyn, NY 11212
1631-43 Pitkin Avenue, Brooklyn, NY 11212
1679 Bedford Avenue, Brooklyn, NY 11225
1791 Utica Avenue, Brooklyn, NY 11234
182 Smith Street, Brooklyn, NY 11201
1950 Fulton Street, Brooklyn, NY 11233
2002 Avenue U, Brooklyn, NY 11229
2064 Mill Avenue, Brooklyn, NY 11234
2819 Church Avenue, Brooklyn, NY 11226