Skip to content

Instantly share code, notes, and snippets.

@tacsio
tacsio / gist:d3d7ead929b9c3865a8557a25a27263c
Created April 13, 2023 23:57
VM Options Intelij console colors spring
-Dspring.output.ansi.enabled=ALWAYS
For Spring Applications use JAVA_TOOL_OPTIONS enviroment.
-XX:MaxRAMPercentage=75
@tacsio
tacsio / .tmux.conf
Last active June 22, 2022 04:00
Tmux config
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
# Dracula Plugin
set -g @plugin 'dracula/tmux'
set -g @dracula-plugins "cpu-usage git"
set -g @dracula-show-powerline true
# Custom config
set -g mouse on
@tacsio
tacsio / debbug-java.conf
Created January 7, 2021 14:58
Debbug remoto java
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
@tacsio
tacsio / spinner made with css
Created December 31, 2020 17:20
spinner.css
.spinner {
border: 5px solid rgba(0, 0, 0, 0.1);
border-left-color: #22a6b3;
border-radius: 50%;
width: 25px;
height: 25px;
animation: spin 1s linear infinite;
}
@keyframes spin {
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.time.LocalDate;
import javax.ws.rs.ext.ParamConverter;
import javax.ws.rs.ext.ParamConverterProvider;
import javax.ws.rs.ext.Provider;
@Provider
public class LocalDateParamConverterProvider implements ParamConverterProvider {
@kekbur
kekbur / CSRFFilter.java
Last active March 10, 2022 21:29
Quarkus CSRF token filter
/**
* The MIT License
* Copyright (c) 2020 kekbur
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
@caseywatts
caseywatts / 0-self-publishing.md
Last active June 4, 2024 20:23
Self-Publishing via Markdown
@agrawald
agrawald / config.java
Created August 28, 2019 00:41
Spring-boot: RestTemplate: Reading Response Body multiple times
@Bean
public RestTemplate restTemplate(final LauHeaderInterceptor lauHeaderInterceptor) {
final RestTemplate restTemplate = new RestTemplate();
restTemplate.setMessageConverters(Collections.singletonList(new MappingJackson2HttpMessageConverter()));
restTemplate.setErrorHandler(new ResponseErrorHandler() {
@Override
public boolean hasError(final ClientHttpResponse response) throws IOException {
return false;
}
@zoilomora
zoilomora / README.md
Last active June 21, 2024 09:03
How to disable cloud-init in Ubuntu

How to disable cloud-init in Ubuntu

Prevent start

  • Create an empty file to prevent the service from starting

      sudo touch /etc/cloud/cloud-init.disabled
    

Uninstall