Skip to content

Instantly share code, notes, and snippets.

View diegorodrigo90's full-sized avatar
🎯
Focusing

Diego Rodrigo diegorodrigo90

🎯
Focusing
View GitHub Profile
@diegorodrigo90
diegorodrigo90 / install logitech softwares
Created July 12, 2022 22:19
install logitech softwares
sudo apt install logiops solaar solaar-gnome3
@diegorodrigo90
diegorodrigo90 / remove-branches.sh
Created July 7, 2022 19:33
Remove all your local git branches but keep master
git branch | grep -v "master" | xargs git branch -D
@diegorodrigo90
diegorodrigo90 / .lando.yml
Created July 1, 2022 13:30
drupal lando javascript functional tests
services:
appserver:
build:
- mkdir -p ${LANDO_WEBROOT}/sites/simpletest/browser_output
overrides:
environment:
MINK_DRIVER_ARGS: '["chrome", null, "http://chromedriver:4444/wd/hub"]'
MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", null, "http://chromedriver:4444/wd/hub"]'
MINK_DRIVER_CLASS: 'Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver'
SIMPLETEST_BASE_URL: 'https://d9_modules.lndo.site/'
Note: this assumes you are using ZSH shell.
## Installation
Install [asdf](https://github.com/asdf-vm/asdf):
```
$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.0
$ echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc
$ echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc
@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
@diegorodrigo90
diegorodrigo90 / keyring
Created December 11, 2021 00:54
reset/remove linux keyring
rm ~/.local/share/keyrings -fr
@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 / 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 / garmin-express-wine.md
Last active September 12, 2024 13:06
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 / 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