Skip to content

Instantly share code, notes, and snippets.

View krolow's full-sized avatar

Vinícius Krolow krolow

View GitHub Profile
- api2 token expires after a given period, we should automate the token refresh
ncal | grep -vE "^S|^ |^$" | sed "s/[[:alpha:]]//g" | fmt -w 1 | sort -n | wc -l
@krolow
krolow / how-to-start-side-project.md
Created February 16, 2018 01:34
I like to build side projects, I will describe here how I start those

Idea

Name / Email

Once you have a name I do use godaddy.com after register I go to cloudflare and create a register for domain, and get the DNS NS from cloudflare to go update it in godaddy.

Once the DNS is updated in godaddy, I like to setup a custom email like: hello@project.com, twitter@project.com etc... To do such a thing, I normally go in gmail and register a new email myproject@gmail.com and so I go to https://improvmx.com/ that supports email forward. I get the two MX DNS and go back to cloudflare to add them. Once the DNS is updated

@krolow
krolow / example-react-form-hook.js
Last active January 14, 2019 16:58
Simple react form using hooks
import React from 'react';
import { useRef } from 'react';
export default function AddMemberPage({ addMember }) {
const formRef = useRef();
async function handleSave(event) {
event.preventDefault();
@krolow
krolow / gist:4529579ea0697a7e003bbe21a76ba8eb
Created May 5, 2024 15:35
Expo running on android emulator crashing when chrome was opening, the emulator was closing
Ubuntu 22.04.3
Expo running on android emulator crashing when chrome was opening, the emulator was closing
To solve added a file in ~/.android/advancedFeatures.ini
Vulkan = off
GLDirectMem = on