Skip to content

Instantly share code, notes, and snippets.

View gcavalcante8808's full-sized avatar

Gabriel Abdalla Cavalcante gcavalcante8808

View GitHub Profile
{
"definitions": {
"virtualservices.networking.istio.io": {
"properties": {
"spec": {
"description": "Configuration affecting label/content routing, sni routing, etc. See more details at: https://istio.io/docs/reference/config/networking/virtual-service.html",
"properties": {
"exportTo": {
"description": "A list of namespaces to which this virtual service is exported.",
"items": {
@gcavalcante8808
gcavalcante8808 / docker_multipass_cloudinit.yaml
Created August 11, 2021 14:21
A docker setup using multipass and cloudinit on MACos (but works fine with Linux as well, just check the path on the mount unit)
#cloud-config
apt:
sources:
docker:
source: "deb [arch=amd64] https://download.docker.com/linux/ubuntu $RELEASE stable"
key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFit2ioBEADhWpZ8/wvZ6hUTiXOwQHXMAlaFHcPH9hAtr4F1y2+OYdbtMuth
lqqwp028AqyY+PRfVMtSYMbjuQuu5byyKR01BbqYhuS3jtqQmljZ/bJvXqnmiVXh
Some samurai gif to be used with whatsapp
@gcavalcante8808
gcavalcante8808 / eol-at-eof.md
Created June 22, 2023 19:39 — forked from camh-/eol-at-eof.md
Please add newlines at end of files

See https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline

A newline in a text file is a terminator, not a separator. This means each line should have a newline at the end of it, including the last line of the file.

Many editors automatically add the newline at the end of the file. Some do not. If you can configure your editor to ensure there is always a newline at the end of every line, please do so.

Because many editors do add this newline, if you commit a text file without it, when someone else edits the file, their editor will (correctly) add the newline. This causes a spurious diff in the file. Spurious

@gcavalcante8808
gcavalcante8808 / wsgi_bjoern.py
Created January 17, 2019 13:44
Bjoern Django Final
import bjoern
import os, signal
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')
app = get_wsgi_application()
NUM_WORKERS = 8