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 <stdlib.h> | |
#include <string.h> | |
int main(int argc, char *argv[]){ | |
FILE * f = fopen(argv[1], "rb+"); | |
fseek(f, 0, SEEK_END); | |
unsigned long long int size = ftell(f); | |
fseek(f, 0, SEEK_SET); | |
unsigned char *data = (unsigned char *)malloc(size); |
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
import base64, sys | |
from cryptography.fernet import Fernet | |
from cryptography.hazmat.primitives import hashes | |
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC | |
key = bytes(sys.argv[4], encoding="utf-8") | |
kdf = PBKDF2HMAC(algorithm=hashes.SHA256(), length=32,salt=b'\xd8Y\x1c\xfb\xc0',iterations=2) | |
kys = base64.urlsafe_b64encode(kdf.derive(key)) | |
f = Fernet(kys) | |
def encrypt(text): print(f.encrypt(bytes(text, encoding="utf-8"))) | |
def decrypt(text): print(f.decrypt(bytes(text, encoding="utf-8"))) |
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
sudo pacman -Syu | |
sudo pacman -S pipewire pipewire-pulse pavucontrol | |
echo -e "/usr/bin/pipewire &\n/usr/bin/pipewire-pulse &\n/usr/bin/pipewire-media-session &\n$(cat ~/.xinitrc)" >> ~/.xinitrc | |
echo "Ready to reboot." |
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
/* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* For more information, please refer to <https://unlicense.org> | |
*/ | |
//Regular text | |
#define BLK "\e[0;30m" | |
#define RED "\e[0;31m" | |
#define GRN "\e[0;32m" |
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
sudo pacman -S base-devel linux-headers | |
git clone https://github.com/gnab/rtl8812au.git | |
cd rtl8812au | |
make | |
sudo cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless | |
sudo depmod -a |