Skip to content

Instantly share code, notes, and snippets.

View rafikmoreira's full-sized avatar

Rafik Moreira rafikmoreira

View GitHub Profile
@rafikmoreira
rafikmoreira / install_asdf.sh
Created September 7, 2024 02:51 — forked from ricardopadua/install_asdf.sh
Installing Elixir and Erlang With ASDF ( Fedora )
#!/bin/bash
## Ricardo Pádua
## install asdf in fedora
## install curl and git
dnf install curl git
## install asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.9.0
@rafikmoreira
rafikmoreira / README.md
Created August 16, 2024 19:06 — forked from aidos-dev/README.md
How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

Step 1.

Open your terminal.

In the root directory run the command:

sudo nano /etc/bluetooth/main.conf
@rafikmoreira
rafikmoreira / networkmanager-wifi-powersave.md
Created March 13, 2022 17:03 — forked from jcberthon/networkmanager-wifi-powersave.md
NetworkManager Wi-Fi powersaving configuration

NetworkManager WiFi Power Saving

NetworkManager supports WiFi powersaving but the function is rather undocumented.

From the source code: wifi.powersave can have the following value:

  • NM_SETTING_WIRELESS_POWERSAVE_DEFAULT (0): use the default value
  • NM_SETTING_WIRELESS_POWERSAVE_IGNORE (1): don't touch existing setting
  • NM_SETTING_WIRELESS_POWERSAVE_DISABLE (2): disable powersave
@rafikmoreira
rafikmoreira / notes_part1.md
Created December 29, 2021 14:31 — forked from jsheridanwells/notes_part1.md
Rails ToDo API w/ RSpec TDD

Build a RESTful JSON API w/ Rails and RSpec PART ONE

From this tutorial.

Dependency Setup

Gemfile.rb:

  1. Rspec-rails to development and test groups
group :development, :test do
  gem 'rspec-rails', '~> 3.5'

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@rafikmoreira
rafikmoreira / rails http status codes
Created December 17, 2021 18:00 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing

Challenge ProtegOn

TODO Manager App

Criar uma API (Restful) em Ruby on Rails versão 6.x para cadastrar tarefas do dia a dia.

A aplicação precisa ter as seguintes funcionalidades:
  • Cadastrar novas tarefas (pública e privada)
    • Tarefas públicas todos os usuários logados podem visualizar
    • Tarefas privadas apenas o usuário que criou pode visualizar
  • Listar as tarefas cadastradas conforme a visibilidade, pública ou privada