- warp
- obrstack
- fig
- raycast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script is meant to copy some files to a folder inside my sdcard | |
# it has some requirements: | |
# - adb installed (https://developer.android.com/studio/releases/platform-tools?hl=pt-br#downloads) | |
# - download and extract it, the .exe file will be inside, you can add this folder to | |
# the PATH variable | |
# - an android device with usb debug enabled | |
# Here, 3836-6631 its how adb recognizes my sdcard, | |
# if you want to use the internal storage, you can change to "emulated/0". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RequestMapping(value = "/comments", method = RequestMethod.POST, produces = "application/json") | |
public ResponseEntity<?> createComment(@RequestBody @Valid CommentForm body, BindingResult errors ) { | |
// if (errors.hasErrors()) { | |
// HashMap<String, List<String>> res = new HashMap<>(); | |
// | |
// List<String> errorList = errors | |
// .getFieldErrors() | |
// .stream() | |
// .map(DefaultMessageSourceResolvable::getDefaultMessage) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ControllerAdvice | |
class ValidationHandler extends ResponseEntityExceptionHandler { | |
@Override | |
@ResponseBody | |
protected ResponseEntity<Object> handleMethodArgumentNotValid( | |
MethodArgumentNotValidException ex, | |
HttpHeaders headers, | |
HttpStatus status, | |
WebRequest request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CommentForm implements Serializable { | |
private String value; | |
@NotEmpty(message = "please provide a value dude") | |
public String getValue() { | |
return this.value; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
useSelectState, | |
Select, | |
SelectPopover, | |
SelectItem, | |
} from 'ariakit/select' | |
import { | |
Dialog, | |
DialogHeading, | |
DialogDismiss, |
- learn why we need docker
- learn how to define a Dockerfile
- learn how to build a docker
- learn how to list images
- learn how to run docker with port forward
- learn how to go inside docker to debug, running /bin/bash
- learn docker compose
- learn how to send a docker image to a reqistry (dockerhub or aws ecr)
- learn how to deploy a docker to kubernetes, aws ecs or another platform
- learn how to use docker volumes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lvim.keys.normal_mode["<leader>t"] = ":lua ToggleTheme() <cr>" | |
function ToggleTheme() | |
if (vim.api.nvim_get_option("background") == "dark") then | |
vim.api.nvim_command("set background=light") | |
else | |
vim.api.nvim_command("set background=dark") | |
end | |
end |
NewerOlder