yt-dlp $(xclip -o) -f m4a -o "%(id)s.%(ext)s"
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
const crypto = require("crypto"); | |
function B(e) { | |
return e.slice(e.byteOffset, e.byteOffset + e.byteLength); | |
} | |
async function _(e) { | |
const t = await j(e); | |
return G(t); | |
} |
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
#!/bin/bash | |
if [ "$EUID" -ne 0 ]; then | |
echo "This script must be run as root." | |
exit 1 | |
fi | |
if [ "$#" -lt 1 ]; then | |
echo "Usage: sudo tunbypass <add/del/list> [server_ip]" | |
exit 1 |
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 yt_dlp import YoutubeDL | |
from mutagen.easymp4 import EasyMP4 | |
import os | |
ydl = YoutubeDL() | |
# List files | |
files = os.listdir() | |
# Filter out non-m4a files | |
files = [f for f in files if f.endswith(".m4a")] |
You can find details like subnet and compartment ID by viewing the request made from browser
import oci
import time
COMPARTMENT_ID = (
Authentication:
- Set cookies from your browser
Step 1: GET https://beta.character.ai/chat/curated_categories/characters/
. It returns JSON. You are looking for external_id
of the character you want. This will be used for all following steps (external_id
or character_external_id
)
Step 2: POST https://beta.character.ai/chat/character/info/
with {"external_id":"..."}
as payload. Keep track of identifier
from the response as tgt
for step 4
Step 3: POST https://beta.character.ai/chat/history/create/
with the same payload as step 2. Keep track of external_id
in the response as history_external_id
.
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
import os | |
import fnmatch | |
import sys | |
def delete_files(patterns, directory="."): | |
if len(patterns) == 0: | |
print("No patterns specified.") | |
sys.exit(1) | |
if not os.p |
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
yes |
Prime Minister | President |
---|---|
Head of government | Head of state |
Elected by the legislature | Elected by the people |
Appointed by the head of state | Elected by the people or by a special body |
Represents the country on the international stage | Has the power to veto laws passed by the legislature and to appoint judges to the supreme court |
May be removed from office by a vote of no confidence in the legislature | May be removed from office by impeachment or by the expiration of their term of office |
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 <ApplicationServices/ApplicationServices.h> | |
#include <stdio.h> | |
__attribute__((constructor)) | |
void takeScreenshot() { | |
CGImageRef screenShot = CGDisplayCreateImage(kCGDirectMainDisplay); | |
CFURLRef fileURL = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, | |
CFSTR("screenshot.png"), | |
kCFURLPOSIXPathStyle, | |
false); | |
CGImageDestinationRef dest = CGImageDestinationCreateWithURL(fileURL, |