Skip to content

Instantly share code, notes, and snippets.

@zevolution
zevolution / Multiple GitConfig.md
Created January 26, 2025 12:12
Multiple .gitconfig

Multiple .gitconfig

As a consultant, it's pretty common to juggle multiple clients throughout our workday—kinda like being a tech superhero, but without the cape (and the cool gadgets, sadly). With this tip, say goodbye to those endless local setups!

In the global .gitconfig do the following modifications:

[includeIf "gitdir:~/path/to/first-client/projects/"]
    path = ~/.gitconfig-first-client

[includeIf "gitdir:~/path/to/second-client/projects/"]
@zevolution
zevolution / Shortcut IntelliJ in WSL2.md
Created January 19, 2024 15:11
Shortcut to open IntelliJ in WSL2

Alias to Open IntelliJ in WSL2

Firstly you need make sure that the your IntelliJ folder is in the correct path, if you doesn't already have IntelliJ, you can do the download in official site: https://www.jetbrains.com/pt-br/idea/download/?section=linux

Or you can try use the following command:

# Sometimes you can have some problems with your network connection or proxies, so try change de begin for curl -k ...
curl https://download-cdn.jetbrains.com/idea/ideaIC-2023.2.4.tar.gz --output ./intelliJ.tar.gz
@zevolution
zevolution / Git-Bash on Windows Terminal.md
Last active November 24, 2021 12:04
Add Git-Bash on Windows Terminal

Git-Bash on Windows Terminal

Open windows terminal and go to Settings and Open JSON File. You should add code below in object profiles.list.

{
  "guid": "{aeddef2b-82be-4f04-b8e9-de088df5d554}",
  "hidden": false,
  "name": "Git Bash",
  "commandline": "\"%LOCALAPPDATA%\\Programs\\Git\\usr\\bin\\bash.exe\" -i -l", # Change to your git local installation
@zevolution
zevolution / Init SSH Windows.md
Last active November 24, 2021 12:00
Init SSH and add key in Windows

Init SSH Windows

First you need create a .bashrc file as ~/.bashrc, then inside add code below:

# Set env variable JAVA_HOME
export JAVA_HOME=/c/Program\ Files/Java/jdk-11.0.10
export PATH=$JAVA_HOME/bin:$PATH

# Startup SSH-Agent
@zevolution
zevolution / SSH Config.md
Last active August 4, 2022 17:29
Using a non-default key name id_rsa to SSH

SSH Config

First you need create a config file as ~/.ssh/config, then inside add code below:

# Structure example with Github
Host github.com
#        UseKeyChain yes //Additional property
#        AddKeysToAgent yes //Additional property
	IdentityFile ~/.ssh/id_rsa.github
@zevolution
zevolution / hyperlayout.md
Created April 13, 2021 14:49
Structure to open my HyperTerminal day-to-day using HyperLayout

HyperLayout

Introduce to Hyper Layout

Hyperlayout, allows us to create presets for HyperTerminal, that in my case, facilitate the initialization/provisioning at the start of my workstation.

Structure of my HyperTerminal day-to-day:

 [                                                                                                                       
   [[                                                                                                                    
     ["", ""],                                                                     
@zevolution
zevolution / bater-ponto.md
Last active March 16, 2021 11:04
Shell script to punch the clock in Ahgora Application

Ahgora Punch The Clock

Add environment variables in ~/.profile.

export AHGORA_ACCOUNT=
export AHGORA_PASSWORD=
export AHGORA_IDENTITY=

Create .sh (remember to give permission for execution with chmod +x bater-ponto.sh)

@zevolution
zevolution / templates.xml
Last active January 28, 2021 14:30
Template Code Java Eclipse
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<template autoinsert="true" context="javadoc" deleted="false" description="author name" enabled="true" id="org.eclipse.jdt.ui.templates.author" name="@author">@author José Lucas | ${Adicionar email aqui}</template>
<template autoinsert="true" context="javadoc" deleted="false" description="Versão inicial de um código" enabled="true" name="@initVersion">@version ${currentDate:date('yyyy-MM-dd')} - Versão inicial.</template>
<template autoinsert="true" context="javadoc" deleted="false" description="since" enabled="true" name="@since">@since ${currentDate:date('yyyy-MM-dd')}</template>
<template autoinsert="true" context="javadoc" deleted="false" description="version" enabled="true" name="@version">@version ${currentDate:date('yyyy-MM-dd')} - José Lucas -</template>
</templates>
@zevolution
zevolution / mirth_setup.md
Last active July 7, 2023 08:07
Configuração do servidor NextGen Connect (anteriormente conhecido como Mirth Connect)

NextGen Connect (formerly known as Mirth Connect) Server Setup

Create a VM running Ubuntu. Use a modern version.

Great thanks for the original guide: https://gist.github.com/jgautsch/9157402

# Update Ubuntu
sudo apt-get update

# Upgrade Ubuntu
sudo aptitude upgrade
@zevolution
zevolution / postman-jsonpath-visualizer.html
Created July 22, 2020 17:48
Visualizer to Postman using JSONPath
let template = `
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/jsonpath.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
</head>
<body>
<div>
<div>
<input id="filter" style="width:450px;" type="text" placeholder="Example query: $..name.first">