This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a live USB | |
Assuming you are using EUFI | |
# ls /sys/firmware/efi/efivars | |
# iwctl | |
[iwd]# device list | |
[iwd]# station wlan0 scan | |
[iwd]# station wlan0 get-networks | |
[iwd]# station wlan0 connect SSID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Curl.hpp | |
#ifndef CURL_HPP | |
#define CURL_HPP | |
#include <iostream> | |
#include <curl/curl.h> | |
// This Singleton is NOT thread-safe (perdoname madre por mi vida loca) | |
class Curl { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***************** MAIN() *****************/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <math.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/mman.h> | |
#include <unistd.h> | |
#include <sys/shm.h> /* shmat(), IPC_RMID */ | |
#include <semaphore.h> /* sem_open(), sem_destroy(), sem_wait().. */ | |
#include <fcntl.h> /* O_CREAT, O_EXEC */ | |
#include <stdlib.h> | |
#include <iostream> | |
#include <map> | |
#include <string> |