Skip to content

Instantly share code, notes, and snippets.

@jcalvopinam
jcalvopinam / sampleDockerfile
Created January 3, 2021 19:38
Sample of optimized Dockerfile for Java
# 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
jcalvopinam / spotify.cmd
Last active September 6, 2020 03:50
Avoid automatic Spotify updates on Windows
rem --------------------------------------------------------------------------------
rem Delete the updates and launch the original version installed
rem
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).
@jcalvopinam
jcalvopinam / remove-group-policies.cmd
Created September 4, 2020 20:54
Remove Local Group Policies
@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
jcalvopinam / Tips&Tricks4Ubuntu.txt
Last active October 19, 2018 19:03
Tips & tricks for Ubuntu 18.04
#--------------------------------------------------------------------------------------------
# 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
jcalvopinam / SublimeText-ContextualMenu.bat
Created December 15, 2017 19:24
Add/Remove 'SublimeText' to Windows Explorer Context Menu (with/without Admin Privileges)
@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
cls
echo +------------------------------------------------------+
echo SublimeText to the Contextual Menu