Skip to content

Instantly share code, notes, and snippets.

Marcelo Jorge Vieira marcelometal

View GitHub Profile
View i18n.js
// i18n shim! I feel bad for doing this =(
// https://github.com/megawac/async/blob/d2dd36b4558f483682f3c672630fdcb36a96d4d2/lib/async.js#L16
((typeof self === "object" && self.self === self && self) ||
(typeof global === "object" && global.global === global && global) ||
this).__ = (x) => x;
@marcelometal
marcelometal / fields.py
Last active Apr 15, 2018
ElasticSearch: Candidatos politicos brasileiros
View fields.py
# -*- coding: utf-8 -*-
#
# Copyright (c) 2018, Marcelo Jorge Vieira <metal@alucinados.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
View thumbor_schroot.sh
sessionid="thumbor"
schroot -b -c sid -n $sessionid
dd-schroot-cmd -c $sessionid apt-get update
dd-schroot-cmd -c $sessionid apt-get -y upgrade
dd-schroot-cmd -c $sessionid apt-get -y install devscripts build-essential lintian
dd-schroot-cmd -c $sessionid apt-get -y build-dep thumbor
schroot -r -c $sessionid
apt-get source thumbor
View keybase.md

Keybase proof

I hereby claim:

  • I am marcelometal on github.
  • I am metal (https://keybase.io/metal) on keybase.
  • I have a public key whose fingerprint is 5FAE 7D03 CCD2 2E1C 8DA9 C509 5B92 4EE3 1005 5CD3

To claim this, I am signing this object:

@marcelometal
marcelometal / fix_tsuru_copyright_notice_year.sh
Created Sep 3, 2017
Tsuru: Fixed copyright notice year
View fix_tsuru_copyright_notice_year.sh
View thumbor.service
# File: /lib/systemd/system/thumbor.service
[Unit]
Description=Photo thumbnail service
[Service]
Type=simple
ExecStart=/usr/bin/thumbor -c /etc/thumbor.conf
[Install]
You can’t perform that action at this time.