Skip to content

Instantly share code, notes, and snippets.

@makolesnik
makolesnik / Selenide cheat sheet
Last active December 26, 2022 13:57
Selenide cheat sheet to create concise UI tests in Java. What is Selenide? Selenide is a wrapper for Selenium WebDriver. http://selenide.org/
=Navigating=
baseUrl = "http://site.com";
open("/login");
open("http://google.com");
switchTo().frame($("#myFrame").toWebElement());
=Alert=
switchTo().alert().accept();
@otoolep
otoolep / influxdb-grafana-howto.sh
Last active March 14, 2021 06:32
Shell script to download, and configure, InfluxDB, nginx, and Grafana
#!/bin/bash
# Check out the blog post at:
#
# http://www.philipotoole.com/influxdb-and-grafana-howto
#
# for full details on how to use this script.
AWS_EC2_HOSTNAME_URL=http://169.254.169.254/latest/meta-data/public-hostname
INFLUXDB_DATABASE=test1
@lordjc
lordjc / csv2avro.py
Created March 21, 2014 19:43
Convert CSV to Avro
#!/usr/bin/python
import csv
import sys
import argparse
import io
def genSchema(coldict):
ss = """
{"namespace": "example.avro",