Skip to content

Instantly share code, notes, and snippets.

View mmnosek's full-sized avatar

Michał Nosek mmnosek

  • Percona
  • Gdynia, Poland
View GitHub Profile
@mmnosek
mmnosek / log
Created July 2, 2020 12:45
MongoDB log redaction
[redaction on]
2020-07-02T11:48:08.215+0000 I STORAGE [initandlisten] WiredTiger message ###
2020-07-02T11:48:08.251+0000 I STORAGE [initandlisten] WiredTiger message ###
2020-07-02T11:48:08.302+0000 I STORAGE [initandlisten] WiredTiger message ###
2020-07-02T11:48:08.371+0000 I STORAGE [initandlisten] WiredTiger message ###
2020-07-02T11:48:08.421+0000 I STORAGE [initandlisten] WiredTiger message ###
2020-07-02T11:48:08.458+0000 I STORAGE [initandlisten] WiredTiger message ###
2018-08-07T12:10:40.348+1000 I COMMAND [conn11] command test.t appName: "MongoDB Shell" command: find { find: "###", filter: { a: "###", b: "###" }, $db: "###" } planSummary: ### keysExamined:1 docsExamined:1 cursorExhausted:1 numYields:0 nreturned:1 reslen:138 locks:{ Global: { acquireCount: { r: 1 } }, Database: { acquireCount: { r: 1 } }, Collection: { acquireCount: { r: 1 } } } protocol:op_msg 19ms
db1-atsaloux percona> CREATE TABLE customer(
-> id INT AUTO_INCREMENT PRIMARY KEY,
-> category varchar(100) NOT NULL
-> ) ENGINE=INNODB;
Query OK, 0 rows affected (0.02 sec)
db1-atsaloux percona>
db1-atsaloux percona> CREATE TABLE api(
-> apiId INT AUTO_INCREMENT PRIMARY KEY,
-> apiName varchar(100) not null,
-> customerId int,
@mmnosek
mmnosek / gist:6f784945314136b73e88653374f9d7ca
Created February 5, 2019 22:05
Calling registration page internally
//Given that original page has TrainingChat/registration URI, it can be achieved like this:
Handle.GET("/TrainingChat/registration", () => Self.GET("/TrainingChat/partial/registration"));
@mmnosek
mmnosek / EShopNovaUserRegister.scala
Last active June 5, 2018 13:55
Gatling test for simple SC Nova performance tests
import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
import scala.util.Random
class EShopNovaUserRegister extends Simulation {
//Here put your application URL
val url = "http://localhost:5106"