This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package spauth; | |
import java.io.*; | |
import java.net.*; | |
import javax.xml.parsers.*; | |
import javax.xml.xpath.*; | |
import org.w3c.dom.Document; | |
import org.xml.sax.*; | |
public class LoginManager { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package spauth; | |
import java.io.*; | |
import java.net.*; | |
import javax.xml.parsers.*; | |
import javax.xml.xpath.*; | |
import org.w3c.dom.Document; | |
import org.xml.sax.*; | |
public class LoginManager { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Extracts exceptions from log files. | |
# | |
import sys | |
import re | |
from collections import defaultdict | |
REGEX = re.compile("(^\tat |^Caused by: |^\t... \\d+ more)") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val jdbcUrl = "jdbc:sqlserver://SERVER_IP;user=USERNAME;password=PASSWORD" | |
val maxId = sqlContext.jdbc(jdbcUrl, "(select max(Person_Number) as maxId from [Export].[dbo].[Person]) as tmp").select("maxId").collect()(0)(0).toString | |
val dbOpts = Map( | |
"url" -> jdbcUrl, | |
"dbtable" -> "[Export].[dbo].[Person]", | |
"partitionColumn" -> "Person_Number", | |
"numPartitions" -> "4", | |
"lowerBound" -> "0", | |
"upperBound" -> maxId, | |
"fetchSize" -> "1000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val jdbcUrl = "jdbc:sqlserver://SERVER_IP;user=USERNAME;password=PASSWORD" | |
val maxId = sqlContext.jdbc(jdbcUrl, "(select max(Person_Number) as maxId from [Export].[dbo].[Person]) as tmp").select("maxId").collect()(0)(0).toString | |
val dbOpts = Map( | |
"url" -> jdbcUrl, | |
"dbtable" -> "[Export].[dbo].[Person]", | |
"partitionColumn" -> "Person_Number", | |
"numPartitions" -> "4", | |
"lowerBound" -> "0", | |
"upperBound" -> maxId, | |
"fetchSize" -> "1000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | |
"http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd"> | |
<!-- | |
Checkstyle configuration that checks the Google coding conventions from Google Java Style | |
that can be found at https://google.github.io/styleguide/javaguide.html. | |
Checkstyle is very configurable. Be sure to read the documentation at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eou pipefail | |
DIR=$(dirname "$0") | |
"$DIR/gradlew" --parallel --max-workers=8 -p "$DIR" compileJava compileTestJava |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Enter each private IP address of each node in this list | |
zkhost1=IPADDRESS1 | |
zkhost2=IPADDRESS2 | |
zkhost3=IPADDRESS3 | |
zkhost=$zkhost1:9983,$zkhost2:9983,$zkhost3:9983 | |
# Assign an ID to this node. | |
# This will be the only thing in this script that is unique on each node of the cluster. | |
# Use increasing IDs starting with 1, 2, 3, etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this script to install a Fusion cluster locally. | |
# | |
# In the working directory you are in, it will create fusion-1, fusion-2, etc... directories. | |
# | |
# You will then take those directories and either run them from the same machine, or you can copy the directories to separate instances. | |
# | |
# There are two optional command line properties: | |
# | |
# --no-download Do not download Fusion from https://download.lucidworks.com instead use the tar.gz file in this directory already. | |
# -v Verbose mode. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mozilla.example; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.firefox.FirefoxBinary; | |
import org.openqa.selenium.firefox.FirefoxDriver; | |
import org.openqa.selenium.firefox.FirefoxOptions; | |
import java.util.concurrent.TimeUnit; |
OlderNewer