Skip to content

Instantly share code, notes, and snippets.

View rafael's full-sized avatar
💭
Vitess

Rafael Chacon rafael

💭
Vitess
View GitHub Profile
#!/usr/bin/env python3
import sys
import csv
def main():
num_args = len(sys.argv)
exec_mode = ""
file_name = ""
table_name = ""
if (num_args > 1):
#!/bin/ruby
require 'csv'
file_names = Dir["./*.csv"]
file_names.sort!
lines = []
file_names.each do |path|
i = 0
columns_in_header = 0
IO.readlines(path).each_with_index do |line, i|
columns_in_header = line.split(',').size if i == 0
goroutine profile: total 1131
967 @ 0x42faac 0x42fb9e 0x441134 0x440e4d 0x47454e 0xbe9177 0x6d6fd7 0x4d1325 0x4d16d1 0x4d572a 0x4cd9f2 0x6c776e 0x6c722f 0x6c73b4 0x67fc84 0x681330 0x682964 0x67eb5d 0x45ef71
# 0x440e4c sync.runtime_SemacquireMutex+0x3c path/go/src/runtime/sema.go:71
# 0x47454d sync.(*Mutex).Lock+0xed path/go/src/sync/mutex.go:134
# 0xbe9176 github.com/youtube/vitess/go/vt/vttablet/tabletmanager.RegisterBinlogPlayerMap.func1+0x46 path/go_workspace/src/github.com/youtube/vitess/go/vt/vttablet/tabletmanager/binlog_players.go:425
# 0x6d6fd6 github.com/youtube/vitess/go/stats.IntFunc.String+0x26 path/go_workspace/src/github.com/youtube/vitess/go/stats/export.go:270
# 0x4d1324 fmt.(*pp).handleMethods+0x274 path/go/src/fmt/print.go:596
# 0x4d16d0 fmt.(*pp).printArg+0x170 path/go/src/fmt/print.go:679
# 0x4d5729 fmt.(*pp).doPrintf+0x159 path/go/src/fmt/print.go:996
# 0x4cd9f1 fmt.Fprintf+0x71 path/go/src/fmt/print.go:181
{
"sharded": true,
"vindexes": {
"hash": {
"type": "hash"
},
"unicode_loose_md5": {
"type": "unicode_loose_md5"
},
"name_user_idx": {
2017/09/13 03:01:39 local.vtgate_buffer: -- 2017-09-13 03:01:07,230 mysql_flavor:208 DEBUG Using MySQL flavor: MySQL56, setting MYSQL_FLAVOR=MySQL56 (<class 'mysql_flavor.MySQL56'>)
-- 2017-09-13 03:01:07,453 environment:228 DEBUG Using protocols flavor 'grpc'
-- 2017-09-13 03:01:07,453 server:66 DEBUG Using topo server flavor 'zk2'
-- 2017-09-13 03:01:07,453 gateway:69 DEBUG Using VTGate gateway flavor 'discoverygateway'
-- 2017-09-13 03:01:07,459 environment:136 DEBUG run: ['/vagrant/bin/zkctl', '-log_dir', '/tmp/vtdata-dev/vt_710485808/tmp', '-zk.cfg', '1@vitess:17206:17207:17208', 'init']
-- 2017-09-13 03:01:08,540 environment:136 DEBUG run: ['/vagrant/bin/zk', '-server', 'localhost:17208', 'touch', '-p', '/global']
-- 2017-09-13 03:01:08,703 environment:136 DEBUG run: ['/vagrant/bin/zk', '-server', 'localhost:17208', 'touch', '-p', '/test_nj']
-- 2017-09-13 03:01:08,842 environment:136 DEBUG run: ['/vagrant/bin/zk', '-server', 'localhost:17208', 'touch', '-p', '/test_ny']
-- 2017-09-13 03:01:08,956 envir
<!DOCTYPE html>
<html>
<script src="https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js"></script>
<script type='text/javascript'>
Mercadopago.setPublishableKey("TEST-f4c0a8de-a40c-46c2-90f9-202e66994dd3");
Mercadopago.getIdentificationTypes();
doSubmit = false;
function addEvent(el, eventName, handler) {
if (el.addEventListener) {
(defun dotspacemacs/user-config ()
"Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration. You are free to put any user code."
(spacemacs/toggle-evil-cleverparens-on)
(setq projectile-globally-ignored-files '(".ensime_cache"))
(define-key evil-normal-state-map (kbd "SPC SPC") 'avy-goto-char)
)
(define-key evil-normal-state-map (kbd "SPC SPC") 'avy-goto-char)
tic -o ~/.terminfo /Applications/Emacs.app/Contents/Resources/etc/e/eterm-color.ti
apiVersion: v1
kind: Service
metadata:
labels:
name: kong
name: kong
spec:
ports:
- name: proxy-ssl
port: 443