Skip to content

Instantly share code, notes, and snippets.

View bhcosta90's full-sized avatar

Bruno Henrique da Costa bhcosta90

View GitHub Profile
@bhcosta90
bhcosta90 / .zshrc
Last active October 10, 2025 12:15
bash
ZSH_THEME="spaceship"
GIT_AUTO_FETCH_INTERVAL=60
alias pstorm="/mnt/c/Program\ Files/JetBrains/PhpStorm\ 2023.3.4/bin/phpstorm64.exe $(wslpath -w .)"
export PATH="$HOME/.config/composer/vendor/bin:$PATH"
#plugins=(git zsh-autosuggestions zsh-syntax-highlighting git-flow git-auto-fetch laravel zsh-autocomplete)
plugins=(git git-flow git-auto-fetch laravel)
includes:
- vendor/larastan/larastan/extension.neon
parameters:
paths:
- app/
level: 5
@bhcosta90
bhcosta90 / commit-msg.sh
Last active October 10, 2025 14:46
Git Commit
#!/bin/bash -eu
# Regex patterns
commit_regex="^\[[A-Z]+-[0-9]+\] (build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([a-zA-Z0-9\-_.]+\))?!?: .{1,200}$"
branch_regex="^(feature|bugfix|hotfix)\/[A-Z]+-[0-9]+.*$|^(develop|release\/[0-9]+\.[0-9]+|main)$"
# Get the commit message and branch name
regex_issue_id="[a-zA-Z0-9,\.\_\-]+-[0-9]+"
branch_name=$(git symbolic-ref --short HEAD)
@bhcosta90
bhcosta90 / phpstan.neon
Last active March 2, 2024 13:29
Configurações
includes:
- vendor/larastan/larastan/extension.neon
parameters:
paths:
- app/
- src/
level: 5
@bhcosta90
bhcosta90 / heroku.txt
Created July 1, 2023 22:09
Melhores adaptações para o heroku
https://morrislaptop.medium.com/laravel-on-heroku-the-ultimate-guide-904cbae11a41
[alias]
ci = commit
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
@bhcosta90
bhcosta90 / Visual Code Plugins
Last active August 17, 2023 20:19
Visual Code Plugins
Config
"editor.rulers": [80,120],
======================================================
Plugins
======================================================
while read line; do code --install-extension $line; done < ~/package
@bhcosta90
bhcosta90 / autoexec.cfg
Last active September 7, 2019 16:02
CS
rate "128000"
hud_scaling "1"
cl_interp "0.1"
cl_interp_ratio "1"
cl_cmdrate "128"
cl_updaterate "128"
fps_max "300"
bind "mouse1" "+attack"
bind "mouse2" "+attack2"