It is possible to host different parts of a MySQL server files on different partitions. For instance, the data file may reside in flash, while the bin logs and relay logs are on spindle. To achieve this, create a symlink from $VTDATAROOT/\ to the proper location on disk. When MySQL is configured by mysqlctl, it will realize this directory exists, and use it for the files it would otherwise have put in the tablet directory. For instance, to host the binlogs in /mnt/bin-logs:
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
import numpy as np | |
import cv2 | |
import pafy | |
import pprint | |
import random | |
import time | |
import argparse | |
def parseArgs(): | |
parser = argparse.ArgumentParser(description='convert a video.') |
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
sudo apt-get -y install libilmbase-dev libopenexr-dev libgstreamer1.0-dev libtiff5-dev libjasper-dev libpng-dev libjpeg-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libgtk2.0-dev libatlas-base-dev gfortran libgdk-pixbuf2.0-dev libpango1.0-dev libcairo2-dev libqtgui4 libqt4-test | |
sudo pip3 install pafy | |
sudo pip3 install --upgrade youtube_dl |
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
void process_data (char * data) { | |
Serial.println("data"); | |
Serial.println(data); | |
// old code for x,y:rrr,ggg,bbb | |
// char *end_str; | |
// char *token = strtok_r(data, "&", &end_str); | |
// while (token != NULL) { | |
// char *end_token; | |
// char *token2 = strtok_r(token, ",", &end_token); | |
// byte commands[5]; |
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
diff --git a/go/vt/vtctl/topo.go b/go/vt/vtctl/topo.go | |
index 547a84baa..f03ab709d 100644 | |
--- a/go/vt/vtctl/topo.go | |
+++ b/go/vt/vtctl/topo.go | |
@@ -17,8 +17,10 @@ limitations under the License. | |
package vtctl | |
import ( | |
+ "encoding/json" | |
"flag" |
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
Step 10/12 : RUN make build_debug | |
---> Running in 76d18797daf7 | |
Mon Mar 25 20:42:19 UTC 2019: Building source tree | |
# vitess.io/vitess/go/vt/mysqlctl/cephbackupstorage | |
go/vt/mysqlctl/cephbackupstorage/ceph.go:91:22: bh.client.PutObjectWithContext undefined (type *minio.Client has no field or method PutObjectWithContext) | |
go/vt/mysqlctl/cephbackupstorage/ceph.go:91:77: undefined: minio.PutObjectOptions | |
go/vt/mysqlctl/cephbackupstorage/ceph.go:129:2: not enough arguments to return | |
go/vt/mysqlctl/cephbackupstorage/ceph.go:129:18: bh.client.GetObjectWithContext undefined (type *minio.Client has no field or method GetObjectWithContext) | |
go/vt/mysqlctl/cephbackupstorage/ceph.go:129:61: undefined: minio.GetObjectOptions |
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
commit 2b540cc3fd29603f2cd9109dc709253c5a1af705 | |
Author: Adam Saponara <[email protected]> | |
Date: Wed Apr 3 16:20:12 2019 -0400 | |
Respect ZK_JAVA_OPTS env in zksrv.sh | |
Signed-off-by: Adam Saponara <[email protected]> | |
diff --git a/go/vt/zkctl/zksrv.sh b/go/vt/zkctl/zksrv.sh | |
index 62172c5d2..aada9b9b8 100755 |
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/python3 | |
import numpy as np | |
import cv2 | |
import pafy | |
import pprint | |
import random | |
import time | |
import argparse | |
import math | |
import os |
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
diff --git a/videoprocessor.py b/videoprocessor.py | |
index e04db66..d385abf 100644 | |
--- a/videoprocessor.py | |
+++ b/videoprocessor.py | |
@@ -154,10 +154,19 @@ class VideoProcessor: | |
print("Found existing video file: " + save_path) | |
return save_path | |
else: | |
+ # self.__video_stream.download(save_path) | |
+ # return save_path |
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/python3 | |
# results of a typical test: | |
# ytdl downloaded in 5.32s at 3.77 MB/s | |
# pafy downloaded in 786.6s at 0.03 MB/s | |
import pafy | |
import time | |
import youtube_dl | |
import sys |