Skip to content

Instantly share code, notes, and snippets.

View seocam's full-sized avatar

Sergio Oliveira seocam

  • Uber
  • Brazil
  • 07:47 (UTC -03:00)
View GitHub Profile
#!/bin/bash
REPOS="repo1 repo2 repo3"
BASE_DIR="/Users/user/repo_home" # Where you repos are
OUTPUT_FILE="/Users/user/Documents/git-stats.html"
for repo in $REPOS; do
cd "$BASE_DIR/$repo"
echo "Updating repo $repo"
git fetch
@seocam
seocam / colab_paste.rst
Last active August 29, 2015 14:16 — forked from anonymous/colab_paste

Backup e Restauração Colab/Gitlab

Estes passos assumem que o Colab e o Gitlab já estão instalados e funcionando com seus bancos default (sem dados).

Backup

Todos os passos a seguir devem ser executados no beta.softwarepublico.gov.br:

@seocam
seocam / headermap.py
Last active August 29, 2015 14:16 — forked from Lukasa/headermap.py
import collections
class HTTPHeaderMap(collections.MutableMapping):
"""
A structure that contains HTTP headers.
HTTP headers are a curious beast. At the surface level they look roughly
like a name-value set, but in practice they have many variations that
make them tricky:
"""
BOSH Client
-----------
Quite simple BOSH client used by Django-XMPPAuth
For now, it only supports the DIGEST-MD5 authentication method.
"""
import httplib, sys, random