Skip to content

Instantly share code, notes, and snippets.

@lvisintini
lvisintini / get_sentry_issue_data.py
Last active January 11, 2021 17:47
Collect data fro issues in Sentry
# Docs:
# - https://docs.sentry.io/api/
# - https://github.com/allisson/python-simple-sentry-client
# - https://github.com/allisson/python-simple-rest-client
# - https://python-simple-rest-client.readthedocs.io/en/latest/
from simple_sentry_client.api import get_api_instance
AUTH_TOKEN = '<your auth token here>' # get one from https://sentry.io/settings/account/api/auth-tokens/ whilst logged in
ISSUE_ID = <your issue id here> # integer; the URL for the issue in sentry should contain this value
@lvisintini
lvisintini / README.md
Last active April 4, 2018 15:35
Classes to abstract the nuisances of loading and saving data from files.

Classes to abstract the nuisances of loading and saving data from files.

This classes make it easy an straighforward to load, process and save from a collection of data files.

Given a file structure that looks like:

    raw-data/
    ├── agenda-cards.json
    ├── card-backs.json
    ├── command-cards.json
@lvisintini
lvisintini / README.md
Last active July 2, 2022 08:44
How to install VisualSFM on Ubuntu 16.04 (64-bit)
@lvisintini
lvisintini / format_statement_filenames.py
Created September 27, 2017 10:26
FlowEnergy statement filename format change
import os
import shutil
import datetime
PATH = '/home/lvisintini/Downloads/flowenergy'
def main():
new_names = {}
for dirpath, _, filenames in os.walk(PATH):
@lvisintini
lvisintini / format_statement_filenames.py
Last active October 18, 2017 13:55
Format Bank Statement dates to use isoformat
import os
import shutil
import re
import datetime
from calendar import monthrange
from collections import OrderedDict
from dateutil.relativedelta import relativedelta
PATH = '/home/lvisintini/Downloads/statement'
@lvisintini
lvisintini / README.md
Last active July 17, 2017 16:37 — forked from yonatanmn/css sprite with sass (scss)
css sprite with sass (scss)

Stripe SASS

Usage

  1. Create a sprite of square images (if the icon is not square, save it inside a square anyway) example

  2. Define sass map with the keys specified: