Skip to content

Instantly share code, notes, and snippets.

@P-rgb-max
P-rgb-max / groq.sh
Created January 9, 2025 21:57
GROQ KidAI role script
#!/usr/bin/env bash
# This script makes a request to the GroQ API with a role of a kid on a playground.
# Comment this line if you want to receive the GroQ API key from the environment variable where this program is ran (not recommended).
# Get an API key for free here: https://console.groq.com/keys
GROQ_API_KEY="<GROQ_API_KEY>"
echo 'Warning: Remember, this AI is just a kid, so the only things he can talk of are playground and games.'
if [[ $# -lt 1 ]];then
@P-rgb-max
P-rgb-max / gh-top.py
Last active February 4, 2024 17:08
Shows last GitHub gists via API
#!/usr/bin/env python3
import requests as req
listUrl = 'https://api.github.com/gists/public'
rawGists = req.get(listUrl).json()[:30]
gists = {}
for gist in rawGists:
files = {}
@P-rgb-max
P-rgb-max / banner.py
Created February 2, 2024 17:29
Banner with my name and HackTheBox slogan
#!/usr/bin/env python3
welcome = '''
__ ____ ____ ____
/ \ || | | | |
\ || |--- | | |---
--\ || | | | |
\__/ || |--- \/ |___
'''
print(welcome)
@P-rgb-max
P-rgb-max / main.dart
Last active March 29, 2023 21:49
DartPad Embed example embed-dart
void main() {
for (int i = 0; i < 5; i++) {
print('hello ${i + 2}');
}
}