Skip to content

Instantly share code, notes, and snippets.

View cyruzin's full-sized avatar
🍺
If you're stuck in the code, just have a beer

Cyro cyruzin

🍺
If you're stuck in the code, just have a beer
View GitHub Profile
@cyruzin
cyruzin / docker-compose.yml
Last active July 31, 2022 00:35
MySQL/MariaDB Docker Healthcheck
version: "3.9"
services:
mariadb:
image: mariadb:10.8.3
container_name: database
hostname: database
restart: unless-stopped
volumes:
- ./db/mariadb:/docker-entrypoint-initdb.d
@cyruzin
cyruzin / sound_config.log
Last active May 11, 2021 01:09
Enable High Quality Audio on Linux
# ~/.config/pulse/daemon.conf
default-sample-format = float32le
default-sample-rate = 48000
alternate-sample-rate = 44100
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 2
default-fragment-size-msec = 125
resample-method = soxr-vhq
@cyruzin
cyruzin / ath9k.conf
Created April 23, 2021 01:11
Slow wifi when bluetooth is on (Fix)
sudo tee /etc/modprobe.d/ath9k.conf <<< "options ath9k btcoex_enable=1"
@cyruzin
cyruzin / multi_monitor.md
Last active July 2, 2020 17:27
Multi monitor setup under XORG on Linux

Multi monitor setup under XORG on Linux

These configurations have been tested on Manjaro with XFCE.

Working perfectly on 2 monitors:

1920x1080p

3840x2160p

@cyruzin
cyruzin / gist:2eb5d4d8e4ace1fb246ab46174fdf62d
Created June 23, 2020 02:03 — forked from nilo/gist:c2a31a0f9f29c88145ca
Using cedilha - ArchLinux Cinnamon
Author: Nilo Dantas - n1lo
Based on: https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/518056 - helio-valente post
How to use Cedilha on US Keyboard on ArchLinux
1) Put: English(US, internacional with dead Keys) on your system keyboard layout.
2) Editing the files:
sudo vim /usr/lib/gtk-3.0/3.0.0/immodules.cache
@cyruzin
cyruzin / bash_powerline.log
Last active October 20, 2022 10:40
Install Powerline in Arch Linux
# Install powerline and powerline fonts.
sudo pacman -S powerline powerline-fonts
# Optional - Install powerline-fonts-git package from AUR to get the patched fonts.
# Remove the powerline-fonts first then:
sudo pacman -S powerline-fonts-git
@cyruzin
cyruzin / vim_commands.log
Last active March 12, 2021 00:50
vim_useful_commands
ctrl + ] // navigate
ctrl + t // return navigation
ctrl + w // press twice and fast to change from nerdtree to the opened file
:NERDTreeToggle // reopen NERDTree
gt ou ctrl + > // change to the next tab
gT ou ctrl + < // back to the previous tab
:FZF // search file
:RG // regex (need to install ripgrep locally)
# Call Bash
@cyruzin
cyruzin / .vimrc
Last active April 28, 2021 23:19
vim config
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }