Skip to content

Instantly share code, notes, and snippets.

View GSuaki's full-sized avatar

Gabriel Suaki GSuaki

View GitHub Profile
@GSuaki
GSuaki / Bibliografia: Concurrency Patterns for High Performance Applications
Last active August 3, 2024 19:05
Bibliografia da Talk: Concurrency Patterns for High Performance Applications
[https://www.educative.io/courses/operating-systems-virtualization-concurrency-persistence](https://www.educative.io/courses/operating-systems-virtualization-concurrency-persistence/BnLk0BVXx2X)
[https://youtu.be/DlEa8kd7n3Q](https://youtu.be/DlEa8kd7n3Q)
[https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/](https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/)
[https://stackoverflow.com/questions/22356257/who-runs-the-scheduler-in-operating-systems-when-cpu-is-given-to-user-processes](https://stackoverflow.com/questions/22356257/who-runs-the-scheduler-in-operating-systems-when-cpu-is-given-to-user-processes)
[https://tldp.org/LDP/tlk/dd/interrupts.html](https://tldp.org/LDP/tlk/dd/interrupts.html)
@GSuaki
GSuaki / git-migrate-repo
Last active September 18, 2020 11:47
Migrate git repository to a new one with all branchs and tags.
git clone --mirror <url_of_old_repo>
cd <name_of_old_repo>
git fetch
git remote add new-origin <url_of_new_repo>
git push new-origin --mirror
@Test
public void testCB() {
final CircuitBreaker breaker = CircuitBreaker.of("", CircuitBreakerConfig.custom()
.slidingWindowSize(60)
.slidingWindowType(SlidingWindowType.TIME_BASED)
.failureRateThreshold(80.0f)
.minimumNumberOfCalls(200)
.permittedNumberOfCallsInHalfOpenState(50)
.waitDurationInOpenState(Duration.ofSeconds(30))
.build());
Moved to private Gist.
If you are a Mercado Livre Developer, type gist:dev_env on Slack or contact me to get the new Gist :)
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
{
// Place your snippets for javascriptreact here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
#Mon Apr 03 19:20:38 BRT 2017
\!/=
/configuration/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true
/configuration/org.eclipse.equinox.p2.garbagecollector/gc_enabled=false
/configuration/org.eclipse.ui.ide/MAX_RECENT_WORKSPACES=10
/configuration/org.eclipse.ui.ide/RECENT_WORKSPACES=/Users/gsuaki/Workspace
/configuration/org.eclipse.ui.ide/RECENT_WORKSPACES_PROTOCOL=3
/configuration/org.eclipse.ui.ide/SHOW_RECENT_WORKSPACES=false
/configuration/org.eclipse.ui.ide/SHOW_WORKSPACE_SELECTION_DIALOG=false
/instance/org.eclipse.ant.ui/useAnnotationsPrefPage=true
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
function proml {
local BLUE="\[\033[0;34m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
local LIGHT_GREEN="\[\033[1;32m\]"
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>/Users/GSuaki/.m2/repository</localRepository>
<interactiveMode/>
<usePluginRegistry/>
<offline/>
<pluginGroups/>
<servers>
unbindall
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"