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 / .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 / 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 / request.py
Created October 8, 2019 17:59
Creates simple PubMed, Web of Science and CENTRAL search strategies for each supplied MeSH descriptor, intersecting (AND) them.
# coding=utf-8
# Copyright 2019 David Cesarino de Sousa, Fábio Antônio Serra de Lima Junior
#
# 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 / 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]
@davidcesarino
davidcesarino / opkg-update
Created January 30, 2022 13:08
Update OpenWrt's packages in one line.
opkg update && opkg upgrade $(opkg list-upgradable | sed -e 's/ - .*$//g' | tr '\n' ' ')