This file contains 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
{ | |
"metadata" : { | |
"partitions" : 6 | |
}, | |
"partitions" : { | |
"persistent://public/d4a1/p6-1-partition-0" : { | |
"entriesAddedCounter" : 0, | |
"numberOfEntries" : 569444, | |
"totalSize" : 33071397061, | |
"currentLedgerEntries" : 0, |
This file contains 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
{ | |
"msgRateIn" : 0.0, | |
"msgThroughputIn" : 0.0, | |
"msgRateOut" : 0.0, | |
"msgThroughputOut" : 0.0, | |
"bytesInCounter" : 0, | |
"msgInCounter" : 0, | |
"bytesOutCounter" : 189222399654, | |
"msgOutCounter" : 182595766, | |
"averageMsgSize" : 0.0, |
This file contains 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
curl -o /dev/null -v https://github.com/gin-contrib/sse | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 13.234.210.38... | |
* TCP_NODELAY set | |
* Connected to github.com (13.234.210.38) port 443 (#0) | |
* ALPN, offering h2 | |
* ALPN, offering http/1.1 | |
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH |
This file contains 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
local_service_announce_interval -> 30s | |
strict_end_game_mode -> false | |
low_prio_disk -> false | |
smooth_connect -> false | |
tick_interval -> 200 | |
torrent_connect_boost -> 25 | |
request_timeout -> reduce to say 10 | |
peer_timeout -> set to 20 | |
peer_connect_timeout -> 10 |
This file contains 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
package main | |
import ( | |
"testing" | |
"bytes" | |
) | |
func TestBytesAppendIsEquivalentToJoin(t *testing.T) { | |
prefix := []byte("announce") | |
sep := "/" |
This file contains 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
int dls_mark = x kbps; //download speed threshold | |
int dlt_mark = x secs; //download speed observation window | |
int dpt_mark = x secs; //connected peers observation window | |
int cpt_mark = x secs; //discovered peers observation window | |
if dl_speed > dls_mark { dl_ts = now(); return true; } | |
if now() - dl_ts > dlt_mark { return false; } | |
if connected_peers > 1 { cpt_ts = now(); return true; } | |
if now() - cpt_ts > cpt_mark { return false; } | |
if discovered_peers > 1 { dpt_ts = now(); return true; } |
This file contains 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
// ==UserScript== | |
// @name Disable detection of incognito mode in browser by HOTSTAR website | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Prevent sites detecting if you're in incognito by calling the success callback of webkitRequestFileSystem even if it's failing. | |
// @author You | |
// @run-at document-start | |
// @match *://www.hotstar.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains 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
package com.neolitec.examples; | |
import org.apache.commons.codec.binary.Base64; | |
import org.apache.commons.lang.StringUtils; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import javax.servlet.*; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<script src="https://code.jquery.com/jquery-3.1.0.js"></script> | |
<title>FkProf Policy Calculator</title> | |
</head> | |
<body> | |
<table> |