Are you interested in software development? Looking to stay updated on the latest chats and feedback in the software development community? Look no further than the CPing App Telegram channel! This channel is dedicated to providing valuable content related to software development, with discussions on various topics and sharing feedback from users. Connect with like-minded individuals in the software development field and stay informed on the latest trends and technologies. Join CPing App today and be part of a community that values growth and collaboration. Thank you for following the channel's content!
01 Dec, 21:02
01 Dec, 08:17
25 Oct, 09:23
import random
import string
def generate_strong_password(length=16, use_digits=True, use_symbols=True):
"""
Generates a strong, random password.
Args:
length: The desired length of the password.
use_digits: Whether to include digits in the password.
use_symbols: Whether to include symbols in the password.
Returns:
A string representing the generated password.
"""
# Define character sets
letters = string.ascii_letters
digits = string.digits
symbols = string.punctuation
# Create a character set based on the specified options
characters = letters
if use_digits:
characters += digits
if use_symbols:
characters += symbols
# Generate the password
password = ''.join(random.choice(characters) for _ in range(length))
# Ensure at least one of each character type if specified
if use_digits and not any(char.isdigit() for char in password):
password = password[:-1] + random.choice(digits)
if use_symbols and not any(char in symbols for char in password):
password = password[:-1] + random.choice(symbols)
return password
# Generate a password with a length of 20 characters, including digits and symbols
password = generate_strong_password(20, True, True)
print(password)
21 Oct, 12:59
curl https://openrouter.ai/api/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer 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" -d '{
"model": "openai/gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "كيف حالك يا"
}
]
}'