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
plugins { | |
id 'org.springframework.boot' version '2.1.7.RELEASE' | |
id 'io.spring.dependency-management' version '1.0.8.RELEASE' | |
id 'java' | |
} | |
group = 'com.example' | |
version = '0.0.1-SNAPSHOT' | |
sourceCompatibility = '1.8' |
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
//JAVA 17 | |
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS org.neo4j.driver:neo4j-java-driver:5.2.0 | |
import java.util.List; | |
import org.neo4j.driver.AuthTokens; | |
import org.neo4j.driver.GraphDatabase; | |
// You need to import the Neo4j record, otherwise you will have ambiguous imports | |
import org.neo4j.driver.Record; |
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
# Most interactions / mentions, excluding myself. | |
{ sed -e '1s/.*/[/' -e '$d' tweets.js && sed '1s/.*/,/' tweets-part1.js; } | \ | |
jq ' | |
[.[].tweet.entities.user_mentions[] | select(.screen_name != "rotnroll666") | {handle: .screen_name}] | | |
group_by(.handle) | map(.[0] + {"count": length}) | | |
sort_by(-.count,.handle|=ascii_downcase) | limit(20;.[]) | | |
"@\(.handle) (\(.count))" | |
' |
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
WITH duplicate_checksums AS ( | |
SELECT MD5 FROM file_duplicates_develop.files | |
GROUP BY MD5 HAVING COUNT(*) > 1 | |
) | |
SELECT * FROM file_duplicates_develop.files | |
WHERE MD5 = duplicate_checksums.MD5 | |
ORDER BY -Size, MD5; |
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 jbang "$0" "$@" ; exit $? | |
//JAVA 16 | |
//JAVAC_OPTIONS -source 16 | |
//DEPS info.picocli:picocli:4.6.1 | |
//DEPS io.javalin:javalin:3.13.9 | |
//DEPS org.neo4j.driver:neo4j-java-driver:4.3.3 | |
//DEPS org.neo4j:neo4j-graphql-java:1.3.0 | |
//DEPS com.fasterxml.jackson.core:jackson-databind:2.10.5 | |
//DEPS org.slf4j:slf4j-simple:1.7.31 | |
package com.example.graphqlplain; |
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 | |
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" | |
"https://checkstyle.org/dtds/configuration_1_3.dtd"> | |
<module name="Checker"> | |
<module name="SuppressWithPlainTextCommentFilter"> | |
<property name="offCommentFormat" value='=\s+"""'/> | |
<property name="onCommentFormat" value='^\s+.*""";'/> |
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 jbang "$0" "$@" ; exit $? | |
//JAVA 17 | |
//DEPS info.picocli:picocli:4.6.3 | |
//DEPS org.neo4j:neo4j-cypher-dsl-parser:2022.4.0 | |
import picocli.CommandLine; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; |
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 jbang "$0" "$@" ; exit $? | |
//JAVA 17 | |
//DEPS info.picocli:picocli:4.6.3 | |
package df; | |
import picocli.CommandLine; | |
import picocli.CommandLine.Model.CommandSpec; | |
import picocli.CommandLine.Option; | |
import picocli.CommandLine.ParameterException; | |
import picocli.CommandLine.Spec; |