Skip to content

Instantly share code, notes, and snippets.

View vitor-mariano's full-sized avatar

Vítor Mariano vitor-mariano

  • Florianópolis, Brazil
  • 03:01 (UTC -03:00)
View GitHub Profile
@vitor-mariano
vitor-mariano / ssh-agent.sh
Created March 10, 2021 14:38
Starting SSH Agent on Windows PowerShell
Start-Service ssh-agent
ssh-add.exe <ssh-key>
@vitor-mariano
vitor-mariano / machine.js
Created December 20, 2019 20:29
Generated by XState Viz: https://xstate.js.org/viz
const videoMachine = Machine({
id: 'video',
initial: 'loading',
context: {
video: null,
elapsed: 0,
duration: 0,
},
states: {
loading: {
@vitor-mariano
vitor-mariano / machine.js
Last active December 20, 2019 22:58
Generated by XState Viz: https://xstate.js.org/viz
const signInMachine = Machine({
id: 'signIn',
initial: 'ready',
states: {
ready: {
type: 'parallel',
states: {
email: {
initial: 'noError',
states: {
@vitor-mariano
vitor-mariano / commands.sh
Created July 24, 2018 00:37
Raspberry Pi
sudo raspi-config
sudo localedef -f UTF-8 -i en_US en_US.UTF-8
@vitor-mariano
vitor-mariano / init.vim
Last active July 24, 2018 12:29
Neovim configs
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'itchyny/lightline.vim'
Plug 'tpope/vim-surround'
Plug 'raimondi/delimitmate'
Plug 'tpope/vim-endwise'
Plug 'wincent/command-t'
Plug 'yggdroot/indentline'
Plug 'tomtom/tcomment_vim'
@vitor-mariano
vitor-mariano / command.sh
Created January 25, 2018 21:32
Add a Heroku remote.
git remote add staging git@heroku.com:<app-name>.git
server {
index index.php index.html;
server_name localhost;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /usr/share/nginx/html/public;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
@vitor-mariano
vitor-mariano / Dockerfile
Created January 20, 2018 16:57
Phoenix Framework with Docker
FROM elixir:1.6-alpine
RUN mkdir -p /home/app
WORKDIR /home/app
RUN mix archive.install \
https://github.com/phoenixframework/archives/raw/master/phx_new.ez --force
COPY . ./
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
//
// main.cpp
// Watchman
//
// Created by Matheus Mariano on 21/06/17.
// Copyright © 2017 Matheus Mariano. All rights reserved.
//
#include <iostream>
#include <vector>