Skip to content

Instantly share code, notes, and snippets.

jcalvopinam / sampleDockerfile
Created Jan 3, 2021
Sample of optimized Dockerfile for Java
View sampleDockerfile
# Sample of optimized Dockerfile for Java
# command to run: time docker build -t your-app-dockerized -f sampleDockerfile ../your-app/target
FROM openjdk:8-jre-alpine
COPY lib/* /deployment/lib/
COPY your-app-1.0.0-SNAPSHOT.jar /deployment/app.jar
CMD ["java", "-jar", "/deployment/app.jar"]
jcalvopinam / spotify.cmd
Last active Sep 6, 2020
Avoid automatic Spotify updates on Windows
View spotify.cmd
rem --------------------------------------------------------------------------------
rem Delete the updates and launch the original version installed
rem Steps:
rem 1. Install the version you want.
rem 2. Go to the directory where the application was installed.
rem 3. Right-click on the Spotify.exe application, choose properties.
rem 4. Mark the attribute as "Read only", click on Apply and OK.
rem 5. In the command line "start" replace with the directory where the app was installed.
rem 6. Save this file as spotify.cmd and create a shortcut (you can personalize the icon).
View remove-group-policies.cmd
@echo off
rem This script remove the local group policies
rem Tested on Windows 10
RD /S /Q "%WinDir%\System32\GroupPolicy"
RD /S /Q "%WinDir%\System32\GroupPolicyUsers"
reg delete "HKCU\Software\Policies\Microsoft" /f
reg delete "HKLM\Software\Policies\Microsoft" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects" /f
jcalvopinam / Tips&Tricks4Ubuntu.txt
Last active Oct 19, 2018
Tips & tricks for Ubuntu 18.04
View Tips&Tricks4Ubuntu.txt
# The following commands were tested on Ubuntu 18.04
# Reset default fonts
gsettings reset org.gnome.desktop.interface font-name
gsettings reset org.gnome.desktop.interface document-font-name
jcalvopinam / SublimeText-ContextualMenu.bat
Created Dec 15, 2017
Add/Remove 'SublimeText' to Windows Explorer Context Menu (with/without Admin Privileges)
View SublimeText-ContextualMenu.bat
@echo off
rem @author Juan Calvopina
rem This script allow you add/remove SublimeText to the contextual menu
rem This batch file was tested on Windows 7
echo +------------------------------------------------------+
echo SublimeText to the Contextual Menu