Skip to content

Instantly share code, notes, and snippets.

View guizordan's full-sized avatar

Guilherme (Gui) Zordan guizordan

View GitHub Profile
# Use Linux-style keybindings
Set-PSReadLineOption -EditMode Emacs
# Optional: Make Tab completion feel more like Linux (list options)
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
function gs { git status }
function gpu { git pull }
function gpsh { git push }
function gcm { git commit -m $args }
@guizordan
guizordan / keybindings.json
Last active January 9, 2026 19:18
keybindings.json
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+i",
"command": "composerMode.agent"
},
{
"key": "ctrl+shift+down",
"command": "-cursorDownSelect",
"when": "textInputFocus"
@guizordan
guizordan / .gitconfig
Last active January 12, 2026 18:49
.gitconfig
[user]
email = guilhermezordan@outlook.com
name = Gui Zordan
[pager]
branch = false
[core]
editor = nvim
[pull]
rebase = true
[init]
@guizordan
guizordan / alias
Last active December 12, 2025 18:31
My zsh configuration
alias update='sudo pacman -Syu' # Alias mais claro
alias install='sudo pacman -S' # Instala um pacote
alias search='pacman -Ss' # Procura um pacote
alias remove='pacman -Rns' # Remove um pacote
alias rmlog='journalctl --vacuum-time=7d' # Limpa logs antigos (opcional, boa prática)
alias c="clear" # Atalho para limpar a tela
alias ..='cd ..' # Volta um diretório
alias ...='cd ../..' # Volta dois diretórios
alias cp="cp -i" # Confirma antes de sobrescrever
@guizordan
guizordan / areBracketsBalanced.js
Created August 6, 2019 00:25
Checks if a given string has its brackets balanced
/**
* Tests if the brackets in a given string are balanced
* @param {string} expression - the expression string to be tested.
*/
function areBracketsBalanced(expression) {
if (!expression) {
return false;
}
/**
@guizordan
guizordan / settings.json
Last active January 9, 2026 19:12
Ultimate VS Code/Cursor config
{
"editor.formatOnSave": true,
"terminal.integrated.fontFamily": "MesloLGS Nerd Font Mono",
"editor.fontFamily": "MesloLGS Nerd Font Mono",
"editor.suggest.showReferences": false,
"editor.suggest.showTypeParameters": true,
"editor.snippetSuggestions": "top",
"editor.wordWrap": "on",
"emmet.triggerExpansionOnTab": true,
"editor.lineHeight": 24,
@guizordan
guizordan / webinar.html
Last active August 1, 2019 12:00
Escrevendo interfaces para a web com React
<!-- CTRL [space] -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- React -->
<script
@guizordan
guizordan / deploy_glassfish
Last active March 21, 2018 21:06
Glassfish script that starts a domain, stops every other running domain, deploys the latest .ear version and displays logging. Usage: 'bash deploy_glassfish domain-name'
#!/bin/bash
ear_path=~/projeto/FSJ/ambiente/maven_repo/br/com/fsj/retaguarda/fsj-retaguarda-ear/1.0-SNAPSHOT/fsj-retaguarda-ear-1.0-SNAPSHOT.ear
glassfish_path=~/glassfish-3.1.2.2/glassfish
domains_list=$(asadmin list-domains)
project_path=~/projeto/FSJ/branches/18.03.3.0
memory_usage=$(free -m | awk 'NR==2{ printf " %.2f", $3*100/$2 }')
maximum_memory_usage=75.00
function setDatabaseDialect {