Skip to content

Instantly share code, notes, and snippets.

View Ivan-Shestakov's full-sized avatar

Ivan Shestakov Ivan-Shestakov

View GitHub Profile
@Ivan-Shestakov
Ivan-Shestakov / gps.conf
Created January 13, 2021 09:46
A gps.conf file which was created after some trial and error, to make Xiaomi Mi4(cancro) device get a gps fix on /e/ ROM.
XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra2.bin
XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra2.bin
XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra2.bin
# Error Estimate
# _SET = 1
# _CLEAR = 0
ERR_ESTIMATE=0
#NTP_SERVER=time.izatcloud.net
@Ivan-Shestakov
Ivan-Shestakov / sample-load-test.sc
Created December 31, 2019 12:58
Ad-hoc performance testing a web service with Ammonite and Gatling (Scala)
/**
* Load Test an example web service using Gatling
*
* Based on https://gist.github.com/dacr/88c797b05ee968be145eccc77e498888
*
* ## Prerequisites:
* 1. Ammonite installed (http://ammonite.io/)
* 2. users-query.csv file in same folder as the script. Its' structure is:
* user, query,
* Bob, beavers,
  1. Warnings during install phase (Nocaching TTL defined, using default of 30sec)
  2. Installation failed to upload initial content. Had to do this separately.
  3. x-info doesn't work (fixed by https://github.com/CM-Well/CM-Well/commit/2dcda7153439f7ff86f2d4da801381b67d5a636c)
  4. stream failing to fetch all results.
  5. Upgrade capability should be disabled for complete version.
  6. Stats api doesn't work - Fixed, but changes default behavior of :: vs : need documentation
  7. vm.max_map_count was setup for single elastic on a machine to pass install check. Does it need to be increased for 4 machines? Eli will ask Dudi.
  8. x-info will show up to 10000 versions of an infoton. https://github.com/CM-Well/CM-Well/blob/master/docs/Admin.TestAndFixCorruptedData.md should be updated that x-info fetches all versions, unless there's more than 10K.
  9. x-fix doesn't work, return with status code 500
  10. jsonl formatted infotons return with fields in different orders - we must fix our tes