I hereby claim:
- I am duketon on github.
- I am michaelkendra (https://keybase.io/michaelkendra) on keybase.
- I have a public key whose fingerprint is 6C3D F156 60B8 6042 135E 61DB AAD0 11BC EF61 EE92
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
curl -XPUT http://localhost:9200/_template/gatling_logs -d ' | |
{ | |
"template": "gatling-*", | |
"settings": { | |
"number_of_shards": 1, | |
"number_of_replicas": 1 | |
}, | |
"mappings": { |
input { | |
file { | |
type => "gatling" | |
path => "/path/to/output.log" | |
start_position => "beginning" | |
} | |
} | |
filter { | |
if ([message] =~ "\bRUN\b" or [message] =~ "\bSTART\b" or [message] =~ "\bEND\b" or [message] =~ "\bGROUP\b") { |
val client = MongoClients.create(new ConnectionString("localhost:27017")) | |
val db = client.getDatabase("myDb") | |
val collection = db.getCollection("myCollection") | |
def findAndModify(filter: Document, update: Document, options: FindOneAndUpdateOptions): Future[Document] = { | |
val p: Promise[Document] = Promise() | |
collection.findOneAndUpdate( | |
filter, update, options, | |
new SingleResultCallback[Document] { |
package com.ticketfly.promotersuite.authentication | |
import com.ticketfly.gatling.setup.HttpProtocol | |
import io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
class OAuth extends Simulation with HttpProtocol { | |
val scn = |
require "rails_helper" | |
RSpec.describe "Students routes" do | |
describe "GET /students" do | |
it "routes to #index" do | |
expect(:get => "http://api.skillscourt.dev/v1/students").to route_to( | |
:format => "json", :action => "index", :controller => "api/v1/students") | |
end | |
import shutil | |
import os | |
import xlrd | |
from xlrd import open_workbook | |
from openpyxl import load_workbook | |
import openpyxl | |
import glob | |
import datetime | |