Skip to content

Instantly share code, notes, and snippets.

View sergioisidoro's full-sized avatar
🔨
Building new things

Sérgio sergioisidoro

🔨
Building new things
  • Xapted Oy
  • Helsinki
  • 13:34 (UTC +03:00)
View GitHub Profile
@sergioisidoro
sergioisidoro / docker_secrets.py
Created February 17, 2022 14:16
A python class for accessing docker secrets like environment variables, with fallback to os.environ
import os
class DockerSecrets(object):
"""
Facilitates the usage of docker secrets, by parsing all files into
an digestible object, without ever them touching the environment,
which would be bad because they might be stored in docker layers, or
accessed by other linked containers. All secret keys are transformed
into snake case upper case.
@sergioisidoro
sergioisidoro / github_to_csv.py
Last active February 17, 2022 14:47
Export Github PR statistics to CSV for easy analysis
import csv
from github import Github
# api settings for github
git_api_token = 'HERE IS A TOKEN'
git_repos = ['myRepo']
# csv name
csv_name = "git_hub_issues.csv"
def run_csv():
"""
Export github issues into a csv format

Keybase proof

I hereby claim:

  • I am sergioisidoro on github.
  • I am sergioisidoro (https://keybase.io/sergioisidoro) on keybase.
  • I have a public key ASDSxdZB3lnY3ZbGoTa6ltIszoWSEr-mXwXHiNeo2Pcs8go

To claim this, I am signing this object:

@sergioisidoro
sergioisidoro / keybase.md
Last active December 3, 2017 15:06
keybase.md

Keybase proof

I hereby claim:

  • I am sergioisidoro on github.
  • I am sergioisidoro (https://keybase.io/sergioisidoro) on keybase.
  • I have a public key ASAKm5L20eomQ7sRZxPmvOX0FcF12sI9a6G26vE8Dfl3_wo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am sergioisidoro on github.
* I am sergioisidoro (https://keybase.io/sergioisidoro) on keybase.
* I have a public key whose fingerprint is 19F6 B2F2 5A1C 4720 FBE3 DB5A 5B5E 6E89 B147 4045
To claim this, I am signing this object: