Skip to content

Instantly share code, notes, and snippets.

View joaofx's full-sized avatar
😁

Joao Carlos Clementoni joaofx

😁
View GitHub Profile
@joaofx
joaofx / fix-ruby-gem-windows.cmd
Created January 16, 2017 14:49
Fixes ruby gem after install ruby on Windows using chocolatey
gem sources -r https://rubygems.org
gem sources -r https://rubygems.org/
gem sources -a http://rubygems.org
gem update --system
gem sources -r http://rubygems.org
gem sources -a https://rubygems.org/
@joaofx
joaofx / p.cmd
Last active April 8, 2017 23:43
@echo off
REM
REM p Project dotnet run
REM will execute 'dotnet run' in 'Project' directory
REM after execution, will return to root
REM
pushd %1
for /f "tokens=1,* delims= " %%a in ("%*") do set ALL_BUT_FIRST=%%b
@joaofx
joaofx / .gitignore
Created May 17, 2017 17:02
.NET Core Git Ignore
*.swp
*.*~
project.lock.json
.DS_Store
*.pyc
# Visual Studio Code
.vscode
# User-specific files
@joaofx
joaofx / UI-Guideline.md
Last active May 19, 2017 11:12
UI Guidelines

General

  • If user fill a form for create/edit something and he tries to leave, pop up a confirm box
  • When user click on button that change data, it stays disabled until a error/success returns
  • Buttons for actions that create/change data and Links for navigation
  • If text has info as tootip, add dashed underline style to indicate to user hover

Forms

@joaofx
joaofx / Notes.md
Created October 20, 2017 15:26
.NET Core New Solution

Structure

@joaofx
joaofx / install.sh
Created November 6, 2019 21:40 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@joaofx
joaofx / Git.md
Last active April 29, 2020 18:20
List of useful git commands

GitFlow And Useful Git Commands

Did you forget to create a new branch, and made all your changes in the master/wrong branch?

git switch -c "new-branch"

New Feature

@joaofx
joaofx / gist:05eca256d49f9acf802d76d4219801c2
Created June 9, 2021 12:34 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@joaofx
joaofx / New.md
Created August 25, 2023 15:39
New .NET Solution
dotnet new sln --name SolutionName
dotnet new console --output src/ProjectName
dotnet new nunit --output tests/ProjectName.Tests
dotnet sln add tests/ProjectName.Tests
dotnet sln add src/ProjectName