Skip to content

Instantly share code, notes, and snippets.

Avatar
🙂
Carrying on.

David Cesarino davidcesarino

🙂
Carrying on.
View GitHub Profile
@davidcesarino
davidcesarino / opkg-update
Created Jan 30, 2022
Update OpenWrt's packages in one line.
View opkg-update
opkg update && opkg upgrade $(opkg list-upgradable | sed -e 's/ - .*$//g' | tr '\n' ' ')
@davidcesarino
davidcesarino / bugfix-intel_wifi-pci-8086-9d14.service
Last active Aug 2, 2020
Fix for AER's excessive logging for Intel Wireless 3165
View bugfix-intel_wifi-pci-8086-9d14.service
[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 / hulw-pdf-labs-extractor.py
Created Feb 14, 2020
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.
View hulw-pdf-labs-extractor.py
# 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 / request.py
Created Oct 8, 2019
Creates simple PubMed, Web of Science and CENTRAL search strategies for each supplied MeSH descriptor, intersecting (AND) them.
View request.py
# 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 / compile_aesa.py
Created Jan 9, 2019
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.
View compile_aesa.py
# 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 Feb 27, 2019
My personal keyboard compose sequences for pt-BR
View .Xcompose
######################################################################
# 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 / DatePickerDialogFragment.java
Last active Apr 27, 2016
DatePickerDialogFragment to work around Android Issue 34833 on affected versions (>= JELLY_BEAN && < LOLLIPOP).
View DatePickerDialogFragment.java
/*
* 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