Skip to content

Instantly share code, notes, and snippets.

View maurofaccenda's full-sized avatar

Mauro Faccenda maurofaccenda

View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDE7jliYUTETUohLdPO083k2CVi7gNqRp86ehyOxuSvG7ZlDFjAt5sgsjJDKanKQRK6wqvGZPv9fPxhfmKOX3sQREGQDZYKQKbWcrzyGg59D72IX4o2oYn0c7s6QCTGSE2jkcCseYcO7z4kQet3n4EGMpdWrB5UO5fxS4/YWr/N8OacKB3nY8CDTDejO2R206ehnW1H6Z88LVnOIprAOPj+3EoNY67n2yiZa6+0BgxN1iHLi5vBC7Ixbe1jqjheg/Jiaiftq5nPXFEXCdW7603oDffHJoJ4v6U8bI6n4QT7CUpot71BFSaapAkDW27IoEfvR/h7eDusGYfHhuvpqGQx
hs.hotkey.bind({}, "§", function() hs.eventtap.keyStroke({}, "`") end )
hs.hotkey.bind({ "cmd" }, "§", function() hs.eventtap.keyStroke({ "cmd" }, "`") end )
hs.hotkey.bind({ "shift" }, "§", function() hs.eventtap.keyStroke({ "shift" }, "`") end )
hs.hotkey.bind({ "cmd", "shift" }, "§", function() hs.eventtap.keyStroke({ "cmd", "shift" }, "`") end )
@maurofaccenda
maurofaccenda / github_team_org_access.py
Last active June 11, 2021 14:33
Script to give access to a Team to all repositories on a Organization
#!/usr/bin/env python3
import os
import argparse
from github import Github
parser = argparse.ArgumentParser(description='Give access to a Team on all repositories from a Organization')
parser.add_argument('--team', help='Team name', required=True)
parser.add_argument('--org', help='Organization name', required=True)
[MASTER]
init-hook="if os.environ.get('VIRTUAL_ENV'): sys.path.append(os.path.join(os.environ['VIRTUAL_ENV'], 'lib', 'site-packages'))"
load-plugins=pylint_quotes
[MESSAGES CONTROL]
disable=missing-docstring, missing-class-docstring, missing-module-docstring, too-few-public-methods
[REPORTS]
format=parseable
[style]
based_on_style = pep8
blank_line_before_module_docstring = True
blank_line_before_nested_class_or_def = True
column_limit = 120
continuation_indent_width = 4
dedent_closing_brackets = True
each_dict_entry_on_separate_line = True
indent_dictionary_value = True
indent_width = 4
# enable colored output
alias ls='ls -G'
alias grep='grep --color'
# ask for confirmation on destructive operation
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
# history management
@maurofaccenda
maurofaccenda / gcp_tips.md
Last active December 14, 2021 19:48
Google Cloud Platform tips and tricks

Environment variables

  • CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE

Point it to the .json file and it will override gcloud/gsutil command line authentication. No need to gcloud auth login or anything like that.

@maurofaccenda
maurofaccenda / keybase.md
Last active September 13, 2019 09:24
Keybase verification data

Keybase proof

I hereby claim:

  • I am maurofaccenda on github.
  • I am faccenda (https://keybase.io/faccenda) on keybase.
  • I have a public key ASAXbTPiENMlN5MIfjJPViV_GbFhP-Zo42URPhZjuH034go

To claim this, I am signing this object: