Skip to content

Instantly share code, notes, and snippets.

diff --git a/go/vt/vttablet/tabletserver/tx_pool.go b/go/vt/vttablet/tabletserver/tx_pool.go
index e7ecfcc51..2e24c87be 100644
--- a/go/vt/vttablet/tabletserver/tx_pool.go
+++ b/go/vt/vttablet/tabletserver/tx_pool.go
@@ -430,6 +430,7 @@ type TxConnection struct {
ImmediateCallerID *querypb.VTGateCallerID
EffectiveCallerID *vtrpcpb.CallerID
Autocommit bool
+ concludeMu sync.Mutex
}
diff --git a/go/vt/vttablet/tabletserver/tx_pool.go b/go/vt/vttablet/tabletserver/tx_pool.go
index 872e3825e..a1080420e 100644
--- a/go/vt/vttablet/tabletserver/tx_pool.go
+++ b/go/vt/vttablet/tabletserver/tx_pool.go
@@ -426,30 +426,31 @@ func (axp *TxPool) SetPoolTimeout(timeout time.Duration) {
// are failures.
type TxConnection struct {
*connpool.DBConn
TransactionID int64
pool *TxPool
#!/usr/env python3
import subprocess
import argparse
import time
import statistics
def parseArgs():
parser = argparse.ArgumentParser(description="test ssh speed to given hostname")
parser.add_argument('--hostname', dest='hostname', action='store', required = True,
% cat sync_test_1080p.mkv | tee >(cvlc --mmal-display hdmi-1 - ) >(cvlc --mmal-display hdmi-2 - ) >/dev/null
VLC media player 3.0.12 Vetinari (revision 3.0.12-1-0-gd147bb5e7e)
VLC media player 3.0.12 Vetinari (revision 3.0.12-1-0-gd147bb5e7e)
[015bb808] [0196ac38] vlcpulse audio output error: vlcpulse audio output error: PulseAudio server connection failure: Connection refused
PulseAudio server connection failure: Connection refused
[015c9070] main interface error: no suitable interface module
[0153db58] main libvlc error: interface "globalhotkeys,none" initialization failed
[015c9070] dummy interface: using the dummy interface module...
[0196dbd0] main interface error: no suitable interface module
[018eeb58] main libvlc error: interface "globalhotkeys,none" initialization failed
@dasl-
dasl- / background.js
Created March 30, 2021 19:00
intercept xhr
function makeId(length) {
var result = '';
var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
var charactersLength = characters.length;
for ( var i = 0; i < length; i++ ) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
}
@dasl-
dasl- / FAQ.md
Last active March 30, 2021 21:34

FAQ

  • After selecting a location, you may get an errors on either the location selection screen or the calendar screen that comes next. Here's what to do about them:

error1

error2

test123
534 Hudson Street, New York, NY 10014
534 Hudson Street, New York, NY 10014