Skip to content

Instantly share code, notes, and snippets.

View komodoooo's full-sized avatar
🔁
learning

komodo komodoooo

🔁
learning
View GitHub Profile
@hackermondev
hackermondev / ClydeAI-Jailbreak.md
Last active June 16, 2024 08:41
Discord ClydeAI jailbreak
@komodoooo
komodoooo / fernet.py
Created September 20, 2022 18:32
Just a simple fernet implementation
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")))
@komodoooo
komodoooo / pipewire.sh
Last active December 12, 2022 19:20
Script to configure pipewire audio server on arch based systems
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."

Setup tor proxy on Arch Linux

Copied from this article.

Installation

  1. Install tor

         $ sudo pacman -S tor
         $ ## nyx provides a terminal status monitor for bandwidth usage, connection details and more.

$ sudo pacman -S nyx

@RabaDabaDoba
RabaDabaDoba / ANSI-color-codes.h
Last active July 1, 2024 06:54 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes working in C!
/*
* 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"
@watzon
watzon / rtl8812au.sh
Created December 29, 2017 07:38
Install rtl8812au driver arch
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