Skip to content

Instantly share code, notes, and snippets.

@msauza
msauza / chrome-remote-desktop.patch
Created August 14, 2019 02:53 — forked from YusukeIwaki/chrome-remote-desktop.patch
chrome-remote-desktopをdisplay 0表示するように改造するための修正ポイント
diff --git a/chrome-remote-desktop.orig b/chrome-remote-desktop
index a40063b..de1b3b0 100755
--- a/chrome-remote-desktop.orig
+++ b/chrome-remote-desktop
@@ -66,11 +66,11 @@ XORG_DUMMY_VIDEO_RAM = 1048576 # KiB
# with large or multiple monitors. This is a comma-separated list of
# resolutions that will be made available if the X server supports RANDR. These
# defaults can be overridden in ~/.profile.
-DEFAULT_SIZES = "1600x1200,3840x2560"
+DEFAULT_SIZES = "1920x1080"
@msauza
msauza / spring-boot-docker.md
Last active October 23, 2024 09:38
Multi-Layer, Multi-Stage: Spring Boot application with Docker.

Overview

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.

Spring Boot Docker

Multi-Layer

@msauza
msauza / docker-commands.txt
Last active March 10, 2020 20:39
Docker commands
### List running containers
docker ps
### List all containers
docker ps -a
### List successfully stopped containers
docker ps -f "status=exited"
### Stop all containers
@msauza
msauza / docker-swagger-json-export-html.txt
Created July 27, 2017 18:09
Swagger UI on Docker - Export swagger.json to static HTML
### Run Swagger UI on Docker
docker run -p 9000:8080 -e "VALIDATOR_URL=null" swaggerapi/swagger-ui
### Install bootprint-openapi
### https://github.com/bootprint/bootprint-openapi
npm install -g bootprint
npm install -g bootprint-openapi
### Generate static files (html, css, js)
bootprint openapi URL_OR_FILE_TO.JSON targetDir
@msauza
msauza / keystore-certificate.txt
Last active July 26, 2017 22:13
Key Store, Certificate
### Create keystore
keytool -genkey -alias ALIAS_NAME -keypass nosecret -keyalg RSA -keystore KEYSTORE_NAME.jks -storepass nostoresecret
### Show Alias
keytool -list -v -keystore KEYSTORE_NAME.jks
## Delete alias
keytool -delete -alias ALIAS_NAME -keystore KEYSTORE_NAME.jks -storepass nostoresecret
### Generate certificate file