Skip to content

Instantly share code, notes, and snippets.

Avatar
🧩
Focusing

agustín méndez matagus

🧩
Focusing
View GitHub Profile
View 📚 Currently reading books (5/12)
Competing Against Luck: The Story... ████▍░░░░░░░░ 34%
La Peste ██▍░░░░░░░░░░ 19%
La conciencia uncida a la carne: ... ████░░░░░░░░░ 31%
Diarios de bicicleta ░░░░░░░░░░░░░ 0%
Capital in the Twenty-First Century ▋░░░░░░░░░░░░ 5%
View keybase.md

Keybase proof

I hereby claim:

  • I am matagus on github.
  • I am matagus (https://keybase.io/matagus) on keybase.
  • I have a public key ASCXdq8H6Al1ebefA8rQNyr-abqnhkfpxKMDtWJcCDwnkwo

To claim this, I am signing this object:

@matagus
matagus / .gitconfig
Created Dec 7, 2017
put it in ~/.gitconfig
View .gitconfig
[user]
name = Agustin Mendez
email = matagus@gmail.com
[core]
editor = vim
[color "status"]
added = cyan
changed = green
@matagus
matagus / deis-multiplexer.py
Created Oct 9, 2017
Run a deis command for all your deis apps
View deis-multiplexer.py
import subprocess
import sys
if __name__ == "__main__":
p = subprocess.run(["deis", "apps"], stdout=subprocess.PIPE)
app_list = p.stdout.split()[2:]
cmd = ["deis"] + sys.argv[1:]
@matagus
matagus / 0readme.md
Created Jul 7, 2017 — forked from mdamien/0readme.md
404 link detector with scrapy
View 0readme.md

List all the broken links on your website

Requirements:

python3 and scrapy (pip install scrapy)

Usage

  • scrapy runspider -o items.csv -a site="https://yoursite.org" 1spider.py
  • python3 2format_results.py
@matagus
matagus / app.py
Created May 1, 2017
Monitoring a Python Falcon Framework application using NewRelic
View app.py
import newrelic.agent
newrelic.agent.initialize('newrelic.ini')
api = application = newrelic.agent.WSGIApplicationWrapper(falcon.API())
@matagus
matagus / .python-version
Created Mar 13, 2017
How to hostand run Spotify's Luigi scheduler on Heroku or Deis
View keybase.md

Keybase proof

I hereby claim:

  • I am matagus on github.
  • I am matagus (https://keybase.io/matagus) on keybase.
  • I have a public key whose fingerprint is C8EC 3904 FEC9 403D 8139 A9F0 A7EC 2E42 B6E9 2230

To claim this, I am signing this object:

@matagus
matagus / 0-opbeat_middleware.py
Last active May 24, 2016
How to integrate a Falcon Framework (python) app with Opbeat, tracking errors and performance! Tested on pypy 5.0.1 and pypy-3.2 :)
View 0-opbeat_middleware.py
import opbeat.instrumentation.control
from opbeat.utils import build_name_with_http_method_prefix
from settings import DEBUG
opbeat_is_debug_mode = DEBUG
opbeat.instrumentation.control.instrument()
You can’t perform that action at this time.