Skip to content

Instantly share code, notes, and snippets.

philipz philipz

View GitHub Profile
@philipz
philipz / readme.md
Last active Feb 24, 2019
JVM opts in Docker
View readme.md
docker run -d -p 8080:8080 -e "JAVA_TOOL_OPTIONS=-Djava.awt.headless=true -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:InitialRAMFraction=2 -XX:MinRAMFraction=2 -XX:MaxRAMFraction=2 -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:+UseStringDeduplication -XX:+ExitOnOutOfMemoryError" -m 1g myimage

docker exec -ti 16f7 java -XshowSettings:vm -XX:+PrintCommandLineFlags -version

View readme.md
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>jib-maven-plugin</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <to>
                        <image>myimage</image>
                    </to>
                    <container>
@philipz
philipz / gist:a339632a9c71867df5719f0aa5eb7a8a
Created Jan 11, 2019
Check volume of Hyper-V VM on Docker Desktop for Win10
View gist:a339632a9c71867df5719f0aa5eb7a8a

docker run -ti --rm -v /:/test alpine sh

@philipz
philipz / git.bat
Created Dec 14, 2018 — forked from victor-perez/git.bat
Use WSL git inside VS Code from Windows 10 17046
View git.bat
@echo off
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
::this also support calls that contains a absolute windows path
::check of one of the params contain a absolute windows path
echo.%* | findstr /r /c:"[a-z]:[\\/]" > nul
if %errorlevel% == 1 (
::if not just git with the given parameters
call :git %*
View Install MSOffice on Ubuntu.md

Install Microsoft Office 2010 on Ubuntu

Requirements

We'll install MSOffice using the PlayOnLinux wizard. Additionally, MSOffice requires samba and winbind to properly work.

So, if not installed, install them:

sudo apt-get install playonlinux samba winbind
@philipz
philipz / installing_cuda_on_azure_nc_tesla_k80_ubuntu.md
Created Feb 5, 2018 — forked from bzamecnik/installing_cuda_on_azure_nc_tesla_k80_ubuntu.md
Installing NVIDIA CUDA on Azure NC with Tesla K80 and Ubuntu 16.04
View installing_cuda_on_azure_nc_tesla_k80_ubuntu.md
@philipz
philipz / readme.md
Last active Jan 4, 2018
Increase the Size of the Logical Volume of Debian
View readme.md
@philipz
philipz / readme.md
Created Dec 27, 2017
Spring Boot on Websphere
View readme.md
  1. Add apply plugin: 'war' and dependencies { providedRuntime('org.springframework.boot:spring-boot-starter-tomcat') } in build.gradle.
  2. extends SpringBootServletInitializer
package hello;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;

@SpringBootApplication
View gist:927e1fc1eac76261f65bc135b17665e7
FROM gradle:4.1-alpine as gradle
COPY source /home/gradle/
RUN gradle build

FROM openjdk:8-jdk-alpine
COPY --from=gradle /home/gradle/build/libs/gs-spring-boot-docker-0.1.0.jar /app.jar
ENV JAVA_OPTS=""
ENV PORT 5000
EXPOSE 5000
You can’t perform that action at this time.