Skip to content

Instantly share code, notes, and snippets.

View vitor-mariano's full-sized avatar

Vítor Mariano vitor-mariano

  • Florianópolis, Brazil
  • 20:29 (UTC -03:00)
View GitHub Profile
  • Se quiser/precisar rodar VMWare Workstation lado a lado com WSL 2, a partir da versão 15.5.5 do Workstation com o Windows 10 20H1 build 19041.264 (Insider Slow Ring ou Preview Release).

Além disso na configuração da VM no WMWare precisa desabilitar os checkboxes na configuração de processadores, como a opção "Virtualize Intel VT-x/EPT or AMD-V/RVI"

https://blogs.vmware.com/workstation

  • Instale a feature Windows Subsystem for Linux normalmente.

  • Baixe o zip do Arch2 e deszipe por exemplo em C:\Users[seu usuario]\AppData\Local. E da pasta deszipada execute o Arch2.exe pra terminar de instalar

@qoomon
qoomon / conventional_commit_messages.md
Last active May 27, 2024 21:25
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@wojteklu
wojteklu / clean_code.md
Last active May 27, 2024 18:40
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@thebucknerlife
thebucknerlife / authentication_with_bcrypt_in_rails_4.md
Last active January 17, 2024 23:54
Simple Authentication in Rail 4 Using Bcrypt

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault

##Steps

@bobmoff
bobmoff / MongoDB Install Script
Last active October 22, 2021 21:28
Script to Install MongoDB on Ubuntu / Digital Ocean Droplet
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list
apt-get -y update
apt-get install -y mongodb-org
%reset-Button {
border: none;
margin: 0;
padding: 0;
width: auto;
overflow: visible;
background: transparent;
/* inherit font & color from ancestor */
@kkirsche
kkirsche / Install Composer to use MAMP's PHP.md
Last active January 30, 2024 02:30
How to install Composer globally using MAMP's PHP

##Create an alias to MAMP's PHP installation

To do this, we can simply create an alias for our bash profile. We'll be doing this is nano, though you can do it in vim or a number of other editors as well.

Within the terminal, run:

nano ~/.bash_profile

This will open nano with the contents, at the top in a blank line add the following line: