Skip to content

Instantly share code, notes, and snippets.

View movibe's full-sized avatar
🎮
Programming

Willian R Angelo movibe

🎮
Programming
  • Agencia Foccus
  • São Paulo - Brasil
  • X @m0vibe
View GitHub Profile
@movibe
movibe / gitflow.md
Created March 17, 2020 11:52
GitFlow Opah

Git Flow

Branches de base

  • Branch de produção: master
  • Branch de teste e versionamento: release
  • Branch do próximo release: develop
@movibe
movibe / docker_windows.md
Last active September 20, 2019 14:12
Docker windows

CLean

docker rm -f $(docker ps -a -q)

docker rmi -f $(docker images -q)

Enter container

winpty docker exec -it ID bash

@movibe
movibe / map.tsx
Created September 10, 2019 21:35
React Google Maps with Polygons
import { Placeregion } from 'api/types'
import React, { Fragment, useEffect, useState } from 'react'
import { GoogleMap, InfoWindow, Marker, Polygon, withGoogleMap, withScriptjs } from 'react-google-maps'
import { compose, withProps } from 'recompose'
import { Loading } from '../Loading'
interface Props {
center?: {
lat: number
@movibe
movibe / docker-compose.yml
Created August 17, 2019 05:49
docker mongo express
version: '3'
services:
mongo-express:
image: mongo-express
ports:
- 8081:8081
environment:
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: admin@123
@movibe
movibe / styles.ts
Last active June 3, 2019 04:30
import styled component theme
import styled, { IStyledProps } from 'theme'
@movibe
movibe / eb.md
Created April 25, 2019 16:34
Elastic Beanstalk CLI Cheat Sheet

Elastic Beanstalk CLI Cheat Sheet

Elastic Beanstalk brings the benefits of PaaS (Platform as a service) providers such as Heroku to AWS infrastructure. This is a reference for the EB CLI, which is a commandline interface that is more user-friendly than standard AWS CLI commands.

Quick Start

Install / Update EB CLI

// Linux
$ pip install --upgrade --user awsebcli
@movibe
movibe / parsemap.js
Last active May 21, 2019 05:33
Parse Map
const parseAddress = (location) => {
if (!location) return {}
const mapsKey = ''
const geraMapa = (lat, lng, zoom, w, h, type = 'fill') => {
let link = 'http://maps.googleapis.com/maps/api/staticmap' +
'?center=' + lat + ',' + lng +
'&key='+ mapsKey +
'&zoom=' + zoom +
'&scale=1' +
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/lodash/4/lodash.min.js"></script>
@movibe
movibe / ubuntu-setup.sh
Last active August 30, 2019 16:02
Ubuntu Setup
!/bin/bash
sudo apt-get upgrade -y
sudo apt-get install git-core zsh -y
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
echo "# Launch Zsh
if [ -t 1 ]; then
exec zsh
fi " >> .bashrc