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
sudo dnf install -y $(curl -s https://rstudio.com/products/rstudio/download/ | grep "fedora" | grep -o "\"[^ \"]*x86_64.rpm\"" | sed "s/\"//g") |
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
<project> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.scalastyle</groupId> | |
<artifactId>scalastyle-maven-plugin</artifactId> | |
<version>0.8.0</version> | |
<configuration> | |
<verbose>false</verbose> | |
<failOnViolation>true</failOnViolation> |
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
<scalastyle commentFilter="enabled"> | |
<name>Scalastyle standard configuration</name> | |
<check level="error" class="org.scalastyle.file.FileTabChecker" enabled="true"/> | |
<check level="warning" class="org.scalastyle.file.FileLengthChecker" enabled="true"> | |
<parameters> | |
<parameter name="maxFileLength"><![CDATA[800]]></parameter> | |
</parameters> | |
</check> | |
<check level="warning" class="org.scalastyle.file.HeaderMatchesChecker" enabled="false"> | |
<parameters> |
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
(scalastyleConfigUrl in Compile) := Some(url("https://gist.githubusercontent.com/tori3852/b6d29f650b9d207ebe6f2211a0a53648/raw/scalastyle_config.xml")) | |
(scalastyleConfigUrl in Test) := Some(url("https://gist.githubusercontent.com/tori3852/b6d29f650b9d207ebe6f2211a0a53648/raw/scalastyle_config.xml")) | |
// checkstyle on compile | |
lazy val compileScalastyle = taskKey[Unit]("compileScalastyle") | |
compileScalastyle := org.scalastyle.sbt.ScalastylePlugin.scalastyle.in(Compile).toTask("").value |
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
mvn dependency:get -Dartifact='com.h2database:h2:1.4.196' | |
java -jar ~/.m2/repository/com/h2database/h2/1.4.196/h2-1.4.196.jar & | |
java -cp ~/.m2/repository/com/h2database/h2/1.4.196/h2-1.4.196.jar org.h2.tools.RunScript -url jdbc:h2:~/test -user sa -showResults -script <(cat <<EOF | |
WITH RECURSIVE fibonacci (n, fib_n, next_fib_n) AS | |
( | |
SELECT 1, 0, 1 | |
UNION ALL | |
SELECT n + 1, next_fib_n, fib_n + next_fib_n | |
FROM fibonacci WHERE n < 10 | |
) |
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
mvn dependency:tree -Doutput=new.log | |
git checkout HEAD~1 | |
mvn dependency:tree -Doutput=old.log | |
diff old.log new.log | grep "^[><]" | sed "s/^\([><]\).*\- /\1 /" | sort |
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
test { | |
testLogging.showStandardStreams = true | |
} |
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
configurations { | |
integrationTestImplementation.extendsFrom testImplementation | |
integrationTestCompile.extendsFrom testCompile | |
integrationTestRuntime.extendsFrom testRuntime | |
} | |
sourceSets { | |
integrationTest { | |
java { |
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
$ open -a "/Applications/Google Chrome.app" --args --incognito --proxy-server="https=193.201.32.251:55520" https://www.netflix.com/ https://whatismyipaddress.com/ |
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
https://www.slf4j.org/legacy.html | |
- `slf4j-log4j12`: use log4j12 as a binding | |
- `log4j-over-slf4j` - route the Log4j API calls to SLF4J (for libs that use log4j) | |
- `jcl-over-slf4j` - |