Skip to content

Instantly share code, notes, and snippets.

Henrique Nascimento Gouveia hngouveia01

Block or report user

Report or block hngouveia01

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hngouveia01
hngouveia01 / qmysql.txt
Created May 3, 2019
QT 5.12 QMYSQL not found macos
View qmysql.txt
maybe your qt creator could not find QMYSQL
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7
use this command to update the path
install_name_tool -change /usr/local/mysql/lib/libmysqlclient.20.dylib /usr/local/mysql/lib/libmysqlclient.21.dylib ~/Qt/5.12.3/clang_64/plugins/sqldrivers/libqsqlmysql.dylib
@hngouveia01
hngouveia01 / gist:fa8c8d6be35eb0c67a3b1c35ebb5946c
Last active Jun 29, 2018
Installing macos keyboard as in macos for PT-BR etc
View gist:fa8c8d6be35eb0c67a3b1c35ebb5946c
https://github.com/adunning/Mac-Keyboard-Layouts-for-Windows
http://andrewdunning.ca/Mac-Keyboard-Layouts-for-Windows/
@hngouveia01
hngouveia01 / debugging_kernel.txt
Last active Oct 27, 2019
Debugging kernel code line by line with Qemu and GDB
View debugging_kernel.txt
We are going to use buildroot to download, configure and compile the kernel.
First, download and uncompress buildroot: https://buildroot.org/download.html
Go to the directory and:
make qemu_x86_defconfig
make menuconfig
View C_Language.txt
A C program consists of functions and variables. A function contains statements that specify the computing operations to be done,
and variables store values used during the computation.
@hngouveia01
hngouveia01 / systemctl_serial-getty.txt
Last active Oct 4, 2016
SOLUTION - systemctl hangs and gives "Connection timed out" in every call when using serial-getty@.service
View systemctl_serial-getty.txt
I've stumbled upon this problem after migrating from sysvinit to systemd.
To get the serial console working on systemd I had to set up a service called serial-getty@.service. It uses
agetty as a way to open ports, ask for login name and password.
The problem started after I noticed that my custom program, called with /sbin/agetty -i -n -l <program>, would not recognize the
Enter inserted as a End Of Line (EOL) special char. Then, I had to change from agetty to /bin/busybox getty to get the key recognized.
*latter I learned that this problem could be resolved using the command 'stty cooked'*
@hngouveia01
hngouveia01 / Yocto Linux Kernel Parameters
Created Oct 3, 2016
Add kernel parameters to your image
View Yocto Linux Kernel Parameters
How do I change the Linux kernel command line?
The linux kernel command line is typically specified in the machine config using the APPEND variable. For example, you can add some
helpful debug information doing the following:
APPEND += "printk.time=y initcall_debug debug"
examples:
panic=N (if kernel panic happen, reboot after N seconds.)
@hngouveia01
hngouveia01 / Macbook Pro Fedora
Last active Oct 20, 2016
Get your wifi working with your Fedora 24
View Macbook Pro Fedora
Every time you update your Fedora or in a plain new installation, run these commands to get your wifi working.
Install
1- install the kernel-devel packages:
sudo dnf install akmods "kernel-devel-uname-r == $(uname -r)"
2- install broadcom-wl:
sudo dnf install broadcom-wl
You can’t perform that action at this time.