Skip to content

Instantly share code, notes, and snippets.

View mouradsm's full-sized avatar

Diego Moura mouradsm

  • Rio de Janeiro, RJ
View GitHub Profile
@mouradsm
mouradsm / setup_cypress_wsl2.md
Created October 3, 2022 15:13 — forked from pjobson/setup_cypress_wsl2.md
Setting Up Cypress on Ubuntu WSL2

Setting Up Cypress on Ubuntu WSL2

No clue why the directions for this are buried deep in WLS issues. This is how I setup my Cypress on Ubuntu WSL2 working for both on and off VPN with some corp firewall.

Before executing any command, be sure to read and understand it, I ask you to run two shell scripts which I wrote. You should review any shell script provided by anyone before blindly running it. I'm not doing anyting bad, but I advise you to check for yourself.

Dependencies

sudo apt install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev \

libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb \

@mouradsm
mouradsm / git.hook.mvn_clean
Created December 19, 2018 16:45 — forked from mallocator/git.hook.mvn_clean
A pre-commit hook for git that will run maven clean test and output any failed tests as well as a summary if there was an error.
#!/bin/bash
# save the file as <git_directory>/.git/hooks/pre-commit.d/mvn_test and chmod +x
echo "Running mvn clean test for errors"
# retrieving current working directory
CWD=`pwd`
MAIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# go to main project dir
@mouradsm
mouradsm / cloudSettings
Created October 11, 2018 23:20
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-12T02:20:16.424Z","extensionVersion":"v3.1.2"}