Skip to content

Instantly share code, notes, and snippets.

View GiovaniPM's full-sized avatar
🎯
Focusing

Giovani Perotto Mesquita GiovaniPM

🎯
Focusing
View GitHub Profile
@miguelgrinberg
miguelgrinberg / rest-server.py
Last active March 29, 2024 09:05
The code from my article on building RESTful web services with Python and the Flask microframework. See the article here: http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask
#!flask/bin/python
from flask import Flask, jsonify, abort, request, make_response, url_for
from flask_httpauth import HTTPBasicAuth
app = Flask(__name__, static_url_path = "")
auth = HTTPBasicAuth()
@auth.get_password
def get_password(username):
if username == 'miguel':
@dclucas
dclucas / win-dev-setup.ps1
Last active August 29, 2015 14:02
Dev setup
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst binroot
cinst git.install
cinst 7zip.install
cinst GoogleChrome
cinst fiddler4
cinst git-credential-winstore
cinst sublimetext3
@tsfreitas
tsfreitas / Docker.md
Last active February 28, 2020 16:26
Passo a passo de criação de ambiente docker

Guia de estudo de implantação do docker para ambiente de homologação

Criar um ambiente de homologação compartilhado no qual os devs podem criar instâncias de seus ambientes, sem a necessidade de pedidos de servidores para a infra.

Criarei 4 máquinas docker. Default: guardará os containers de infraestrutura como o registry, shipyard, swarm Node1 e Node2: Máquinas que guardarão os containers de aplicações local: emulando meu desenvolvimento local, criarei containers aqui usando o Dockerfile e subirei para registro.

A infraestrutura deverá deixar simples a criação, inicialização e destruição de containers. Deve gerenciar o tempo de vida dos containers e rodar rotinas de limpeza e manutenção do cluster

@CodeMyUI
CodeMyUI / index.jade
Created October 27, 2016 00:41
Parallax Background
header
.section
.oop
.fixed
h1.large Parallax Background
p No JavaScript, Start scrolling
.section
.fixed
h1 The Day My Mother Forgot to Cry
@CodeMyUI
CodeMyUI / floating-social-icon-buttons-css-only.markdown
Created January 30, 2017 00:32
Floating social icon buttons | CSS Only
@renatoapcosta
renatoapcosta / rabbitmq_python.md
Last active June 29, 2022 21:47
RabbitMQ com Python

RabbitMQ com Python

Instalando o python

Baixamos a versão 3.6.8 do python, pois a versão 3.7 está dando problema.

Depois devemos instalar o pip

python get-pip.py