Skip to content

Instantly share code, notes, and snippets.

View matagus's full-sized avatar
🐿️
I miss the old Github activity stream

Matías Agustín Méndez matagus

🐿️
I miss the old Github activity stream
View GitHub Profile
@matagus
matagus / hgrc
Created June 9, 2010 13:34
colorize your hg output <3
[extensions]
# enable color extension
color =
# enable extdiff extension (Extended Diff)
hgext.extdiff =
[extdiff]
# configure extended diff to use colordiff (requires colordiff installed in your system)
cmd.cdiff = colordiff
opts.cdiff = -uprN
@matagus
matagus / GPLv3.md
Created February 23, 2024 00:24 — forked from kn9ts/GPLv3.md
GPLv3 explained

GPL3 LICENSE SYNOPSIS

TL;DR* Here's what the license entails:

1. Anyone can copy, modify and distribute this software.
2. You have to include the license and copyright notice with each and every distribution.
3. You can use this software privately.
4. You can use this software for commercial purposes.
5. If you dare build your business solely from this code, you risk open-sourcing the whole code base.
@matagus
matagus / make_dmg.sh
Created February 11, 2024 19:05 — forked from Kvnbbg/make_dmg.sh
Two steps to turn a Python file to a macOS installer
#!/bin/sh
# References
# https://www.pythonguis.com/tutorials/packaging-pyqt5-applications-pyinstaller-macos-dmg/
# https://medium.com/@jackhuang.wz/in-just-two-steps-you-can-turn-a-python-script-into-a-macos-application-installer-6e21bce2ee71
# ---------------------------------------
# Clean up previous builds
# ---------------------------------------
@matagus
matagus / app.py
Created May 1, 2017 17:20
Monitoring a Python Falcon Framework application using NewRelic
import newrelic.agent
newrelic.agent.initialize('newrelic.ini')
api = application = newrelic.agent.WSGIApplicationWrapper(falcon.API())
@matagus
matagus / APIs-webliography.md
Last active June 24, 2022 00:03
Links to posts, talks and slides talking about API design, arquitecture, testing, tools, etc
@matagus
matagus / .vimrc
Last active February 12, 2022 12:46
My current .vimrc file. Using vim-bundle, with support for Python, Django, Markdown, HTML, Javascript, Scala, node.js and CSS.
" disable vi compatibility
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
Bundle 'gmarik/vundle'
#!/usr/bin/python
from mercurial import util
import re
def check_references(*args, **kwargs):
"""
Checks that commit message contains a reference to or closes an issue.
Useful when using Redmine.
Usage in .hgrc:
@matagus
matagus / rabbitmq_publish.py
Created May 10, 2011 15:49
Publishing to a rabbitmq exchange using pika BlockingConnection
# -*- coding: UTF-8 -*-
from pika import PlainCredentials, ConnectionParameters, BasicProperties
from pika.adapters import BlockingConnection
from django.conf import settings
credentials = PlainCredentials(
settings.RABBIT["userid"], settings.RABBIT["password"])
parameters = ConnectionParameters(credentials=credentials,
@matagus
matagus / 📚 Currently reading books (5/11)
Last active October 29, 2020 12:10
Books I'm currently reading
La conciencia uncida a la carne: ... ██████▌░░░░░░ 50%
La Peste ██▍░░░░░░░░░░ 19%
Diarios de bicicleta ░░░░░░░░░░░░░ 0%
Capital in the Twenty-First Century ▋░░░░░░░░░░░░ 5%
Mas brillante que el sol. Incursi... ██▍░░░░░░░░░░ 19%