Skip to content

Instantly share code, notes, and snippets.

View infomaven's full-sized avatar

Nadine Whitfield infomaven

  • Independent Software Developer
  • USA
View GitHub Profile
infomaven /
Last active January 25, 2021 05:51
Find difference between 2 CSV files & identify shared items. Diff report is printed to HTML.


  • Uses standard Python3 modules
  • Finds diff between 2 CSV files & prints results to HTML
  • Finds and prints list of items found in both files
  • Does NOT find duplicates in same file


  1. Download script file and sample CSVs to a directory on your computer
  2. Run script with this command>> python3
  • Script will generate html report in same directory
thiagomgo /
Created November 1, 2016 19:13
A simple lambda function written in python to execute a curl command
def lambda_handler(event, context):
import subprocess
result ="curl -I", shell=True)
return result
infomaven /
Last active January 4, 2016 01:02
Java classes for FileFestivalPlanner project. Download all source files to same directory, compile and run from FestivalMain class.
import java.util.Collections;
import java.util.List;
* Created by nwhit8 on 11/1/15.
public class Day {
View gatling-build.groovy
task runLoadTest(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath + sourceSets.test.runtimeClasspath + sourceSets.e2eTest.runtimeClasspath
jvmArgs = [ '' ]
// Gatling application
main = ""
// Specify the simulation to run
args ="['-s', 'BasicSimulation']")
dnozay /
Last active October 5, 2022 21:50
jenkins groovy scripts collection.
View gist:32c4d07f9170ee8aae12
import java.util.UUID
import scala.concurrent.duration.DurationInt
import io.gatling.core.Predef.checkBuilder2Check
import io.gatling.core.Predef.findCheckBuilder2ValidatorCheckBuilder
import io.gatling.core.Predef.scenario
import io.gatling.core.Predef.stringToExpression
infomaven / CracklePop.scala
Last active November 8, 2015 21:51
Classic program that prints strings based on results of using MOD function against a List
View CracklePop.scala
Write a program that prints out the numbers 1 to 100 (inclusive).
If the number is divisible by 3, print Crackle instead of the number.
If it's divisible by 5, print Pop. If it's divisible by both 3 and 5,
print CracklePop. You can use any language.
/// any number x where x % y is divisible by that number. We'll use that fact to match boolean patterns in Scala.
//// In Scala RePL, copy-paste the function first. Then use the function in a second call from the REPL.
def listEval( number: Int ): String = (number % 3, number % 5 ) match {
anonymous / Simulation
Created September 5, 2014 11:57
View Simulation
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
class BasicSimulation extends Simulation {
val passwords = csv("passwords.csv")
def setPassNum = exec(session =>
session.set("passwordNumber", "3"))
View gist:7f1ef88e45c44791210f
package computerdatabase
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
import io.gatling.jsonpath._
class Test1 extends Simulation {
val httpConf = http
mburrows02 / CustomSimulation.scala
Last active April 18, 2023 23:23
Gatling simulation with dynamic scenarios and injection profiles
View CustomSimulation.scala
package test
import io.gatling.core.Predef._
import io.gatling.core.structure.PopulatedScenarioBuilder
import io.gatling.core.controller.inject.InjectionStep
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
import scala.concurrent.duration._
import scala.collection.mutable.ArraySeq
import org.json.JSONArray;
import org.json.JSONObject;