Skip to content

Instantly share code, notes, and snippets.

View davidcesarino's full-sized avatar

David Cesarino davidcesarino

View GitHub Profile
@davidcesarino
davidcesarino / DatePickerDialogFragment.java
Last active April 27, 2016 22:18
DatePickerDialogFragment to work around Android Issue 34833 on affected versions (>= JELLY_BEAN && < LOLLIPOP).
/*
* Copyright 2012 David Cesarino de Sousa
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@davidcesarino
davidcesarino / compile_aesa.py
Created January 9, 2019 15:35
Arquivo em Python para condensar dados de precipitação da AESA/PB em um único arquivo, com entradas em ordem alfabética do município, sendo uma entrada por município gerada através da média das estações disponíveis.
# Copyright 2018 David Cesarino de Sousa
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@davidcesarino
davidcesarino / .Xcompose
Last active February 27, 2019 20:37
My personal keyboard compose sequences for pt-BR
######################################################################
# UTF-8 compose sequences for pt-BR with US international keyboards.
# David Cesarino de Sousa <davidcesarino@gmail.com> 2019-02-25
######################################################################
######################################################################
# Compose key.
######################################################################
### Composed once
# [ ] { } < >: soft quotes
<Multi_key> <bracketleft> : "‘" U2018 # LEFT SINGLE QUOTATION MARK
@davidcesarino
davidcesarino / hulw-pdf-labs-extractor.py
Created February 14, 2020 15:42
Given a folder with uncompressed PDF files that are lab results from HULW patients, print text list of patient records and names, from each PDF.
# coding=utf-8
# Copyright 2020 David Cesarino de Sousa
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@davidcesarino
davidcesarino / bugfix-intel_wifi-pci-8086-9d14.service
Last active August 2, 2020 16:49
Fix for AER's excessive logging for Intel Wireless 3165
[Unit]
Description=Fix for AER's excessive logging for Intel Wireless 3165
After=systemd-modules-load.service
[Service]
Type=oneshot
ExecStart=/usr/bin/setpci -v -d 8086:9d14 CAP_EXP+0x8.w=0x0e
RemainAfterExit=yes
[Install]