Skip to content

Instantly share code, notes, and snippets.

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

Bruno Cesar Rocha rochacbruno

🛠️
Working on Galaxy_ng and Dynaconf
View GitHub Profile
@hugoprudente
hugoprudente / Makefile
Created February 25, 2021 21:43
Makefile with help
define PRINT_HELP_PYSCRIPT
import re, sys
for line in sys.stdin:
match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line)
if match:
target, help = match.groups()
print("%-30s %s" % (target, help))
endef
export PRINT_HELP_PYSCRIPT
@alikins
alikins / .compose.dev
Created February 5, 2021 16:17
dev/alikins/docker-compose.yml
COMPOSE_PROFILE=alikins
DEV_SOURCE_PATH='galaxy_ng'
@rponte
rponte / using-uuid-as-pk.md
Last active August 11, 2025 21:03
Não use UUID como PK nas tabelas do seu banco de dados

Pretende usar UUID como PK em vez de Int/BigInt no seu banco de dados? Pense novamente...

TL;TD

Não use UUID como PK nas tabelas do seu banco de dados.

Um pouco mais de detalhes

@rochacbruno
rochacbruno / README.md
Last active August 6, 2025 02:33
Vim Configs and CheatSheet

VIM CheatSheet

Based on configuration provided in .config/nvim/init.vim

Glossary

  • L = Leader Key, mapped to a single space " "
  • C = Control
  • S = Shift
@mikedep333
mikedep333 / pulp_pkgs_playbook.yml
Last active July 30, 2020 20:57
Pulp install from katello repo on el7 / el8
---
- hosts: all
vars:
pulp_settings:
secret_key: secret
content_origin: "https://{{ ansible_fqdn }}"
pulp_default_admin_password: password
pulp_install_source: packages
pulp_install_plugins:
# galaxy-ng: {}
@furious
furious / frs-twitch_current_payout_dashboard.user.js
Last active February 9, 2021 12:59
Twitch - Current Payout (Dashboard)
// ==UserScript==
// @name Twitch - Current Payout (Dashboard)
// @namespace twitchpayout
// @version 1.5.1
// @description Shows current accumulated/estimated payout revenue and last payment on dashboard
// @author FURiOUS
// @homepage https://furious.pro
// @downloadURL https://gist.github.com/furious/d284d67af89a00866fa60c318a84bf50/raw/frs-twitch_current_payout_dashboard.user.js
// @supportURL https://twitch.tv/furious
// @match https://dashboard.twitch.tv/u/*
pulp_default_admin_password: password
pulp_install_source: pip
pulp_settings:
secret_key: secret
content_origin: "https://{{ inventory_hostname }}"
x_pulp_api_host: 127.0.0.1
x_pulp_api_port: 24817
x_pulp_api_user: "admin"
x_pulp_api_password: "{{ pulp_default_admin_password }}"
x_pulp_api_prefix: "pulp_ansible/galaxy/automation-hub/api"
def get(obj, attr, default=None):
"""
Fetch an attribute deeply nested on an object or dict, return `default` if not found
>>> class Foo: pass
>>> f = Foo()
>>> f.a = Foo()
>>> f.a.b = Foo()
>>> f.a.b.c = True
@steffanydev
steffanydev / EAD12.py
Last active April 30, 2020 15:25
Hotel Bom Descanso - Software para reserva de quartos
'''
Hotel Bom Descanso - Software para reserva de quartos
'''
quartos = {}
contiua_cadastro = "SIM"
while (contiua_cadastro.upper() == "SIM"):
quarto = input('Informe o número do quarto: ')
@rochacbruno
rochacbruno / dummy-web-server.py
Created April 25, 2020 17:14 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python (Updated for Python 3.7)
Usage:
./dummy-web-server.py -h
./dummy-web-server.py -l localhost -p 8000
Send a GET request: