Skip to content

Instantly share code, notes, and snippets.

View josemarcosrf's full-sized avatar
🏔️
Working from a mountain top

Jose Marcos RF josemarcosrf

🏔️
Working from a mountain top
View GitHub Profile

Keybase proof

I hereby claim:

  • I am josemarcosrf on github.
  • I am jose_mrf (https://keybase.io/jose_mrf) on keybase.
  • I have a public key ASCjkcf9SpDqCDc5VrtBCC5EzQNUsn1HEBlYjeqaefmkngo

To claim this, I am signing this object:

@josemarcosrf
josemarcosrf / ble_client.py
Last active February 14, 2024 18:06
python BLE server & client using pybluez
import click
import json
import logging
import sys
import bluetooth as bt
import coloredlogs
from typing import *
@josemarcosrf
josemarcosrf / nvidia-time-slicing.md
Last active November 13, 2023 20:11
Instructions on installing nvidia-time-slicing in kubernetes
  1. Define the time-slicing configuration.

    a. Create a file called time-slicing-config-all.yaml with the following contents:

    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: time-slicing-config-all
    data:
@josemarcosrf
josemarcosrf / minimal_celery_worker_example.py
Last active October 26, 2023 16:00
A minimal celery worker client example
import fire
import pika
import redis
import os
from typing import Any
from typing import Dict
from typing import List
from typing import Tuple
import celery
@josemarcosrf
josemarcosrf / pdf_mine_with_boxes.py
Last active October 10, 2023 13:25
Quick and dirty implementation of a text and bounding box extraction from PDFs using pdfminer.six==20191110
from collections import defaultdict
import fire
from pdfminer.converter import PDFPageAggregator
from pdfminer.layout import LAParams
from pdfminer.layout import LTChar
from pdfminer.layout import LTTextBox
from pdfminer.layout import LTTextLine
from pdfminer.pdfinterp import PDFPageInterpreter
from pdfminer.pdfinterp import PDFResourceManager

convert google takeout archive for location history from kml to gpx and split file into one per day

gpsbabel -i kml -f Location\ History.kml -o gpx -F out.gpx
gpsbabel -t -i gpx -f out.gpx -x track,merge,pack,split,title="ACTIVE LOG # %Y%m%d" -o gpx -F split.gpx
python2 gpxsplitter.py split.gpx
@josemarcosrf
josemarcosrf / whoosh-search.ipynb
Created December 8, 2022 15:50
Whoosh Search example notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@josemarcosrf
josemarcosrf / layoutlmv3-funsd-train.ipynb
Last active March 23, 2023 11:59
layoutlmv3-funsd-train.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@josemarcosrf
josemarcosrf / github_pip.sh
Created November 11, 2022 15:04
pip install from github
pip install -e git://github.com/{ username }/{ reponame }.git@{ tag name }#egg={ desired egg name }
@josemarcosrf
josemarcosrf / stt-exploratory-telebot.ipynb
Last active September 29, 2022 20:32
stt-exploratory-telebot.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.