Skip to content

Instantly share code, notes, and snippets.

Avatar

Jefferson Ferreira-Ferreira jecogeo

  • @EcoDyn and Mamirauá Institute for Sustainable Development
  • Tefé, Amazonas, Brasil
View GitHub Profile
View dmesg
[ 3.188930] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[ 3.189010] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 3.193971] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 3.196847] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 3.196849] cfg80211: failed to load regulatory.db
[ 3.218889] random: crng init done
[ 3.223447] Intel(R) Wireless WiFi driver for Linux
[ 3.223447] Copyright(c) 2003- 2015 Intel Corporation
[ 3.223509] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
[ 3.232720] iwlwifi 0000:00:14.3: loaded firmware version 46.3cfab8da.0 op_mode iwlmvm
View gist:859877942b2d13b312dbee63b2745686
jeco@HAL9000 ~$ dmesg
[ 0.000000] Linux version 5.1.15-arch1-1-ARCH (builduser@heftig-28691) (gcc version 9.1.0 (GCC)) #1 SMP PREEMPT Tue Jun 25 04:49:39 UTC 2019
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ea695f19-0b53-495d-9a29-e57ba49b97b3 rw quiet
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
View gist:eb5783e326fa8d1acbdd0cd7f03af79a
~$ dmesg
[ 11.421446] nouveau 0000:02:00.0: gr: init failed, -16
[ 13.338146] wlo1: authenticate with fe:ec:da:a8:cd:d9
[ 13.343524] wlo1: send auth to fe:ec:da:a8:cd:d9 (try 1/3)
[ 13.366212] wlo1: authenticated
[ 13.372487] wlo1: associate with fe:ec:da:a8:cd:d9 (try 1/3)
[ 13.376164] wlo1: RX AssocResp from fe:ec:da:a8:cd:d9 (capab=0x411 status=0 aid=2)
[ 13.377518] wlo1: associated
[ 13.422888] ------------[ cut here ]------------
[ 13.422890] nouveau 0000:02:00.0: timeout
View keybase.md

Keybase proof

I hereby claim:

  • I am jecogeo on github.
  • I am jecogeo (https://keybase.io/jecogeo) on keybase.
  • I have a public key whose fingerprint is E611 A4B9 7A85 783A 003E AA9F F347 2446 6B9E 4F9F

To claim this, I am signing this object:

@jecogeo
jecogeo / download_covid_MS.py
Created Jun 24, 2021
Baixa dados de COVID do Ministério da Saúde
View download_covid_MS.py
from selenium import webdriver
from selenium.webdriver.firefox.options import Options as FirefoxOptions
options = FirefoxOptions()
options.headless = True
# To prevent download dialog on firefox
profile = webdriver.FirefoxProfile()
profile.set_preference('browser.download.manager.showWhenStarting', False)
profile.set_preference('browser.helperApps.neverAsk.saveToDisk',
@jecogeo
jecogeo / select_sorted_sum.py
Created Jun 28, 2021
selecionar features cuja soma da tabela de atributos ordenada é >=x
View select_sorted_sum.py
# pega o layer
layer = qgis.utils.iface.activeLayer()
# acessa a tabela de atributos
features = layer.getFeatures()
# ordena a tabela ded atributos
# aqui um teste
for feat in features:
print(sorted(feat["producao"]))