Skip to content

Instantly share code, notes, and snippets.

View iagopuccini's full-sized avatar

Iago Puccini iagopuccini

  • RailsWay
  • Brazil
View GitHub Profile
@iagopuccini
iagopuccini / Overmind_Install_on_ubuntu
Last active October 20, 2024 00:02
Install overmind on ubuntu
Download the .gz and .sha256 files from the official releases from official github repo (latest release normally) https://github.com/DarthSim/overmind/releases
Either use web ui and right-click these two files or download directly
cd ~/Download
mkdir overmind && cd overmind
wget https://github.com/DarthSim/overmind/releases/download/v2.4.0/overmind-v2.4.0-linux-amd64.gz
wget https://github.com/DarthSim/overmind/releases/download/v2.4.0/overmind-v2.4.0-linux-amd64.gz.sha256sum
# now make sure the sha256 checks out
@iagopuccini
iagopuccini / Capybara Cheat Sheet.md
Created May 18, 2022 18:16 — forked from alexbrinkman/Capybara Cheat Sheet.md
A List of Methods for Capybara

Navigating

visit "/projects"
visit post_comments_path(post)

Clicking links and buttons

click_link "id-of-link"
click_link "Link Text"
@iagopuccini
iagopuccini / Capybara.md
Created September 14, 2021 18:33 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@iagopuccini
iagopuccini / maskPhone.js
Created November 13, 2020 18:09
mask to phone number input
// Mask for phone number
let phone_number = '';
let exec_function = '';
window.mask = function mask(o, f) {
phone_number = o
exec_function = f
setTimeout("execmask()", 1)
}
{
"window.zoomLevel": 0,
"workbench.fontAliasing": "antialiased",
"workbench.sideBar.location": "right",
"files.autoSave": "onFocusChange",
"editor.tabSize": 2,
"editor.minimap.enabled": false,
"ruby.lint": {
"rubocop": true,
"fasterer": true
@iagopuccini
iagopuccini / codigo.c
Created June 26, 2019 18:54
CodigoProjeto
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <locale.h>
typedef struct { //struct para armazenar clientes no cadastro
char nome[30];
int rg;
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <locale.h>
typedef struct { //struct para armazenar clientes no cadastro
char nome[30];
int rg;