This file contains hidden or 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
[pull] | |
rebase = true | |
[push] | |
default = simple | |
autoSetupRemote = true | |
followTags = true | |
[init] | |
defaultBranch = main | |
[merge] | |
conflictStyle = zdiff3 |
This file contains hidden or 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
#!/bin/bash | |
# Run command in JAVA_HOME for given version, e.g. `javahome 8 java -version`. | |
# Or symlink it as e.g. `java8home`, `java17home` and run as `java8home java -version`. | |
java_homes_dir=/usr/lib/jvm | |
java_home_name_prefix=java- | |
if [ ! -d "$java_homes_dir" ]; then | |
echo "Please edit $0 and set java_homes_dir and java_home_name_prefix" |
This file contains hidden or 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
import com.intellij.codeInsight.javadoc.JavaDocUtil | |
import com.intellij.icons.AllIcons | |
import com.intellij.ide.DataManager | |
import com.intellij.ide.util.treeView.NodeRenderer | |
import com.intellij.navigation.ItemPresentation | |
import com.intellij.navigation.NavigationItem | |
import com.intellij.openapi.actionSystem.ActionManager | |
import com.intellij.openapi.actionSystem.AnAction | |
import com.intellij.openapi.actionSystem.AnActionEvent | |
import com.intellij.openapi.actionSystem.CommonDataKeys |
This file contains hidden or 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
#!/bin/bash | |
function usage { | |
echo -e "\nUsage:\n\tgit clone-sibling [<remote>] <name>" | |
exit 1 | |
} | |
function parse_arguments { | |
remotes="$(git remote)" |
This file contains hidden or 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
events {} | |
http { | |
include mime.types; # Correct content-types for css, et.c. | |
server { | |
listen 80; | |
root /var/www; # Where the www root is | |
index index.html index.htm; | |
resolver 127.0.0.11; # Docker DNS | |
location /api { |
This file contains hidden or 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
FROM openjdk:14-alpine AS base | |
RUN addgroup app | |
RUN adduser -u 1000 -G app -D app | |
USER app | |
WORKDIR /home/app | |
FROM base as gradle-wrapper |
This file contains hidden or 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
apply plugin: 'maven-publish' | |
publishing { | |
publications { | |
maven(MavenPublication) { | |
from components.java | |
} | |
} | |
} | |
This file contains hidden or 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
#!/bin/sh | |
for cached in $(git diff --cached --name-only); do | |
check=$(case "$cached" in | |
*.json) echo "python -mjson.tool" ;; | |
*.js) echo "node --check -" ;; | |
esac) | |
if [ -z "$check" ]; then | |
continue | |
fi |
This file contains hidden or 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
afterProject { Project project -> | |
project.plugins.withType(ApplicationPlugin) { | |
project.application { | |
applicationDefaultJvmArgs.addAll('--illegal-access=deny', '--add-opens=java.base/java.lang=ALL-UNNAMED') | |
} | |
} | |
} |
This file contains hidden or 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
#!/bin/sh | |
if ! git diff-index --quiet HEAD --; then | |
echo "Cannot swap trees: You have unstaged changes.\nPlease commit or stash them." >&2 | |
exit 1 | |
fi | |
previous_second=$(git rev-parse HEAD) | |
previous_first=$(git rev-parse $previous_second^) | |
base=$(git rev-parse $previous_first^) |
NewerOlder