Skip to content

Instantly share code, notes, and snippets.

View hngouveia01's full-sized avatar

Henrique Gouveia hngouveia01

View GitHub Profile
@hngouveia01
hngouveia01 / qmysql.txt
Created May 3, 2019 23:10
QT 5.12 QMYSQL not found macos
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 June 29, 2018 14:14
Installing macos keyboard as in macos for PT-BR etc
https://github.com/adunning/Mac-Keyboard-Layouts-for-Windows
http://andrewdunning.ca/Mac-Keyboard-Layouts-for-Windows/
@hngouveia01
hngouveia01 / debugging_kernel.txt
Last active August 21, 2024 08:14
Debugging kernel code line by line with Qemu and GDB
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
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 October 4, 2016 17:28
SOLUTION - systemctl hangs and gives "Connection timed out" in every call when using serial-getty@.service
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 October 3, 2016 17:14
Add kernel parameters to your image
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 October 20, 2016 15:10
Get your wifi working with your Fedora 24
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