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
[V1] | |
You are a powerful agentic AI coding assistant, powered by [Claude 3.7 Sonnet]. You operate exclusively in Cursor, the world's best IDE. | |
Your main goal is to follow the USER's instructions at each message. | |
# Additional context | |
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more. | |
Some information may be summarized or truncated. | |
This information may or may not be relevant to the coding task, it is up for you to decide. |
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
# Path and cmdline: | |
# /usr/bin/entry/images/py_interpreter.runfiles/rules_python~0.31.0~python~python_3_10_x86_64-unknown-linux-gnu/bin/python3 /usr/bin/entry/images/py_interpreter.runfiles/_main/images/py_interpreter.py --input /tmp/sandbox_in --output /tmp/sandbox_out --rpc_input /tmp/sandbox_rpc_in --rpc_output /tmp/sandbox_rpc_out | |
"""Executes Python code provided via a string input parameter. | |
This method can accept any string of one or more lines of Python code that limit | |
non-built-in module use to the dependencies defined for the py_type binary built | |
using this script. | |
""" |
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 IPython | |
import threading | |
import time | |
import os | |
def display_netron(path): | |
os.system(f'netron {path}') | |
thread = threading.Thread(target=display_netron, args=(output_path,)) | |
thread.start() |
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
TOOLKIT_CUDA_VERSION=cu114 pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/$TOOLKIT_CUDA_VERSION | |
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
alias locate='find / -name $!' |
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
wget -qO- "http://ipwhois.app/json/$(wget -qO- http://checkip.amazonaws.com)" | |
# Optionally - pipe the JSON output to jq: | |
# wget -qO- "http://ipwhois.app/json/$(wget -qO- http://checkip.amazonaws.com)" | jq |
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 file can be saved as 'bruteforce_wordpress_users.sh' | |
# | |
# Requirements: | |
# - python2 (with requests) | |
# - jq | |
# - wget | |
# - WPForce | |
# 1. Cloning WPForce: | |
# git clone https://github.com/n00py/WPForce.git && cd ./WPForce |
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
python -c 'import redis; print(redis.Redis().flushall())' |
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
cat /var/log/auth.log | grep -i -e "disconnected from invalid user" | awk -F' ' '{print $10}' | sort | uniq # INVALID LOGINS USERNAMES (for bash autocompletion and reverse-i search) |