Skip to content

Instantly share code, notes, and snippets.

View rafaelvasco's full-sized avatar
👽

Rafael Vasco rafaelvasco

👽
  • Brazil
  • 00:38 (UTC -03:00)
View GitHub Profile
@rafaelvasco
rafaelvasco / convertFromCueToChd.sh
Created July 14, 2025 17:45
Convert all .cue/.bin files recursively (max 4 levels deep) to compressed CHD files using CHDMAN
#!/bin/bash
# Find .cue files up to 4 levels deep
find . -maxdepth 4 -type f -name '*.cue' | while read -r f
do
name=${f%.cue} # Remove '.cue' from the file name
chdman createcd -i "$name.cue" -o "$name.chd" --force
done
@rafaelvasco
rafaelvasco / .vimrc
Created August 18, 2019 19:33 — forked from heronmedeiros/.vimrc
Meu arquivo de configuração .vimrc do Vim
""""""""""""""""""""""""""""""""""""""""
" CONFIGURAÇÕES GOGS - WWW.GOGS.COM.BR "
""""""""""""""""""""""""""""""""""""""""
set number " Numera as linhas
set linebreak " Quebra a linha sem quebrar a palavra
set nobackup " Não salva arquivos de backup~
set wildmode=longest,list " Completa o comando com TAB igual o bash
set ignorecase " Ignora o case sensitive nas buscas
set smartcase " Se tiver alguma letra maiúscula, ativa o case sensitive
set gdefault " Sempre substitui todas as palavras, não só a primeira
$ git push --delete origin <branch_name>
$ git branch -d <branch_name>
@rafaelvasco
rafaelvasco / git_merge_force
Created February 20, 2019 17:16
[GIT] Merge branch , Ignore Local Changes
git checkout develop
git merge -s ours master
git checkout master
git merge develop
@rafaelvasco
rafaelvasco / Test.hx
Created August 1, 2018 03:10
Heaps Bitmap Painting
// TODO: Handle Out of Bounds Painting
package;
import hxd.Math;
import sys.io.File;
import hxd.Key in K;
class Test extends hxd.App {
editbin.exe /subsystem:windows yourapp.exe
@rafaelvasco
rafaelvasco / removegitignored.sh
Created September 25, 2017 13:43
Remove Gitignored Files
git rm --cached `git ls-files -i --exclude-from=.gitignore`