Skip to content

Instantly share code, notes, and snippets.

View diegorodrigo90's full-sized avatar
🎯
Focusing

Diego Rodrigo diegorodrigo90

🎯
Focusing
View GitHub Profile
sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
# Edit /etc/dnf/dnf.conf
# Add de lines:
fastestmirror=true
deltarpm=true
Install the phpcs by using composer with composer global require squizlabs/php_codesniffer
Press Command + , (Click Code -> Preferences -> Settings)
Select User Settings and locate 'PHP CodeSniffer'
Scroll to 'Executatble Path' and
put the phpcs path
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"copyOnSelect": false,
"copyFormatting": false,
"initialRows": 30,
"initialCols": 120,
"alwaysShowTabs": true,
"historySize": 9001,
@diegorodrigo90
diegorodrigo90 / config.json
Last active October 7, 2021 18:02
~/.docker/config.json
{
"psFormat": "table {{.ID}}\\t{{.Image}}\\t{{.Status}}\\t{{.Names}}"
}
@diegorodrigo90
diegorodrigo90 / gnome-openbsd
Created August 29, 2021 01:46
install gnome in OpenBSD
As root:
# pkg_add gnome
# rcctl disable xenodm
# rcctl enable multicast messagebus avahi_daemon gdm
# reboot
@diegorodrigo90
diegorodrigo90 / garmin-express-wine.md
Last active May 13, 2025 07:23
Installing garmin express in linux with wine

First we start by creating a wineprefix and installing our prerequisites from terminal:

WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks dotnet452 vcrun2010 corefonts
WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks win7
@diegorodrigo90
diegorodrigo90 / wsl-keymap-br_abnt2
Last active October 9, 2021 00:50
Fix wsl gui keymap br_abnt2
sudo dpkg-reconfigure locales # select pt_BR.UTF-8
# Add the following lines to ~/.zshrc and ~/.bashrc or any other shell
# Corrigir teclado
WAYLAND_DISPLAY=""
setxkbmap -model abnt2 -layout br -variant abnt2
@diegorodrigo90
diegorodrigo90 / fix-oh-my-zsh.txt
Created December 8, 2021 11:41
Fix Archlinux oh my zsh not applying theme
yay -Rncs grml-zsh-config
@diegorodrigo90
diegorodrigo90 / keyring
Created December 11, 2021 00:54
reset/remove linux keyring
rm ~/.local/share/keyrings -fr
@diegorodrigo90
diegorodrigo90 / install.sh
Created December 13, 2021 02:00
Ubuntu dev software
sudo apt install build-essential default-jdk libssl-dev exuberant-ctags ncurses-term ack-grep silversearcher-ag fontconfig imagemagick libmagickwand-dev software-properties-common git vim-gtk3 curl