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
declare module "obsidian" { | |
interface App { | |
isMobile: boolean; | |
} | |
} | |
// Call this method inside your plugin's `onLoad` function | |
function monkeyPatchConsole(plugin: Plugin) { | |
if (!plugin.app.isMobile) { | |
return; |
- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally after the first line
- When only changing documentation, include
[ci skip]
in the commit title - Consider starting the commit message with an applicable emoji
Spring Boot applications can run within a container by Multi-Layer based approach. Each layer may contain different parts of the application such as dependencies, source code, resources and even snapshot dependencies.
In the other hand, with Multi-Stage Build approach, any application can be built at a separate image from the final image that will contain the runnable application.
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
#!/bin/sh | |
fullFileName=$1 | |
suffix=${fullFileName#*.} | |
if [ "$suffix" != "zip" ];then | |
echo "Must be a valid zip file" | |
else | |
filename=${fullFileName%.*} |
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
FROM jetbrains/teamcity-agent | |
RUN apt update && apt install wget && \ | |
wget -c https://download.java.net/java/ga/jdk11/openjdk-11_linux-x64_bin.tar.gz && \ | |
tar -xvf openjdk-11_linux-x64_bin.tar.gz && \ | |
rm openjdk-11_linux-x64_bin.tar.gz && \ | |
mkdir -p /usr/lib/jvm/jdk-11 && \ | |
mv jdk-11*/* /usr/lib/jvm/jdk-11/ && \ | |
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-11/bin/java" 1020 && \ | |
update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-11/bin/javac" 1020 && \ | |
curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose && \ |
NewerOlder