Skip to content

Instantly share code, notes, and snippets.

View rochacbruno's full-sized avatar
🛠️
Working on Galaxy_ng and Dynaconf

Bruno Rocha rochacbruno

🛠️
Working on Galaxy_ng and Dynaconf
View GitHub Profile
{
'AsyncGenerator': ['asend', 'athrow'],
'AsyncIterable': ['__aiter__'],
'AsyncIterator': ['__anext__'],
'Awaitable': ['__await__'],
'ByteString': ['__getitem__', '__len__'],
'Callable': ['__call__'],
'Collection': ['__contains__', '__iter__', '__len__'],
'Container': ['__contains__'],
'Coroutine': ['__await__', 'send', 'throw'],
{
"echasnovski/mini.indentscope",
config = function()
vim.api.nvim_create_autocmd("FileType", {
pattern = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy", "mason" },
callback = function()
vim.b.miniindentscope_disable = true
end,
})
require("mini.indentscope").setup({
#!/usr/bin/env bash
set -u
# This GPG_TTY variable might be needed on a container image that is not running as root.
#export GPG_TTY=$(tty)
# Create a file with passphrase only if the key is password protected.
# echo "Galaxy2022" > /tmp/key_password.txt
# pulp_container SigningService will pass the next 3 variables to the script.
MANIFEST_PATH=$1
IMAGE_REFERENCE="$REFERENCE"
from pymongo import MongoClient
from bson.binary import UuidRepresentation
client = MongoClient(conn_str, uuid_representation=UuidRepresentation.STANDARD)
@rochacbruno
rochacbruno / enable_signing_aah.sh
Created June 3, 2022 10:31
Enable signing on AAH
####################################
# 1. Create the GPG key if not exists
####################################
gpg --full-gen-key
# Please select what kind of key you want:
# (4) RSA (sign only)
# Your selection? 4
#
@rochacbruno
rochacbruno / test.md
Last active May 19, 2022 15:49
test md embed

Introdução a Web

Essa primeira parte do treinamento será bastante introdutória e tem como público alvo principalmente pessoas que nunca tiveram contato com o desenvolvimento web.

Após essa fase de introdução entraremos em deselvolvimento com Python porém essa introdução é essencial!

Hipertexto

Um documento de texto, como um livro ou artigo cientifico costuma ter referência a outros documentos como em notas de rodapé e índices.

@rochacbruno
rochacbruno / show_urls.py
Created May 11, 2022 11:16 — forked from andreif/show_urls.py
A command to show urls of a Django project
import sys
from django.core.management import BaseCommand
from django.urls import resolvers
def collect_urls(urls=None, namespace=None, prefix=None):
if urls is None:
urls = resolvers.get_resolver()
prefix = prefix or []
if isinstance(urls, resolvers.URLResolver):
@rochacbruno
rochacbruno / gitpod.sh
Last active April 29, 2022 12:39
VSCode and gitpod settings
cd
wget https://github.com/kishannareshpal/vscode-easy-terminal-zoom/releases/download/1.1.1/easy-terminal-zoom-1.1.1.vsix
code --install-extension easy-terminal-zoom-1.1.1.vsix
import pandas as pd
scraper = pd.read_html(
"https://en.wikipedia.org/wiki/List_of_countries_by_beer_consumption_per_capita",
attrs={"class": "wikitable"}
)
table = scraper[0]
table["Country"] = table["Country"].apply(lambda c: c.upper().replace("*", ""))
table = table[["Country", "Consumptionper capita[1](litres per year)"]]
table.plot(kind='barh', y=1, x=0, figsize=(20, 20))
@rochacbruno
rochacbruno / gruvbox-dark.micro
Created April 21, 2022 18:49
Gruvbox Dark Theme for Micro Editor
color-link default "#ebdbb2,#1d2021"
color-link comment "#928374,#1d2021"
color-link symbol "#d79921,#1d2021"
color-link constant "#d3869b,#1d2021"
color-link constant.string "#b8bb26,#1d2021"
color-link constant.string.char "#b8bb26,#1d2021"
color-link identifier "#8ec07c,#1d2021"
color-link statement "#fb4934,#1d2021"
color-link preproc "#fb4934,235"
color-link type "#fb4934,#1d2021"