This file contains hidden or 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
| #ifndef UNICODE | |
| #define UNICODE | |
| #endif | |
| #include <windows.h> | |
| #pragma comment(lib, "kernel32") | |
| #pragma comment(lib, "user32") | |
| HWND create_window(const wchar_t* class_name, WNDPROC windproc, const wchar_t* window_name, HWND parent, HINSTANCE h_instance, int x, int y, int w, int h); |
This file contains hidden or 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
| # Reference: https://learn.microsoft.com/en-us/azure/application-gateway/self-signed-certificates | |
| # | |
| NAME=$1 | |
| DAYS=365 | |
| echo "Generating key.." | |
| openssl ecparam -out "$NAME.key" -name prime256v1 -genkey | |
| echo "Generating csr.." |
This file contains hidden or 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 bs4 import BeautifulSoup | |
| from collections import OrderedDict | |
| from urllib import request | |
| from urllib.error import URLError, HTTPError | |
| import sys | |
| import re | |
| def get_text(page): | |
| """ | |
| Retrieve text from a site |
This file contains hidden or 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 <stdio.h> | |
| #include <string> | |
| #define RESET_COLOR "\x1B[0m" | |
| #define INFO_COLOR "\x1B[1;34m" | |
| #define DEBUG_COLOR "\x1B[1;30m" | |
| #define WARNING_COLOR "\x1B[1;33m" | |
| #define ERROR_COLOR "\x1B[31m" | |
| #define LOG(f, ...) log("[LOG]", RESET_COLOR,f, __VA_ARGS__) |
This file contains hidden or 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 <stdio.h> | |
| #include <unistd.h> | |
| #ifdef _WIN32 | |
| #define clear() printf("\e[1;1H\e[2J"); | |
| #else | |
| #define clear() write(STDOUT_FILENO, "\e[1;1H\e[2J",12); | |
| #endif | |
| #define MAX 1000 |