Skip to content

Instantly share code, notes, and snippets.

View GustavoOly's full-sized avatar
🎯
Focusing

Oly GustavoOly

🎯
Focusing
View GitHub Profile
@GustavoOly
GustavoOly / main.c
Created August 3, 2024 20:37
Doubly linked list
#include <stdio.h>
#include <string.h>
typedef struct No {
int Id;
char Name[20];
int Idade;
struct No *prox;
struct No *ant;
} No;
@GustavoOly
GustavoOly / main.c
Last active August 4, 2024 13:19
Recover ip
#include <inaddr.h>
#include <stdio.h>
#include <string.h>
#include <winsock2.h>
int main() {
WSADATA wsa_var;
char *hostname = "www.google.com";
char ip[100];
struct hostent *host;
@GustavoOly
GustavoOly / Fixing Audio Problems In Linux Mint.md
Last active June 26, 2024 12:29
Audio screaming on Linux Mint

I was having audio problems, after a few minutes a buzzing sound would start and only stop when the internal audio card was deactivated.

My solution to this problem was to enable tracing with SOF snd_sof.sof_debug=1.

To do this I opened the following file with my text editor (sublime text):

sudo subl /etc/default/grub

On the line that starts with GRUB_CMDLINE_LINUX_DEFAULT. I added snd_sof.sof_debug=1 to the end of the line, inside the quotes: