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
| test |
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
| #!/bin/bash | |
| set -e | |
| lscpu 2>/dev/null | grep -E 'Model name|L3' || true | |
| echo Arch: $(uname -m) | |
| echo Cores: $(nproc) | |
| free -h | grep Mem || true | |
| nvidia-smi --query-gpu=name,memory.total --format=csv,noheader 2>/dev/null || echo GPU: none | |
| apt-get update -qq >/dev/null 2>&1 | |
| apt-get install -y -qq gcc >/dev/null 2>&1 | |
| curl -sSf https://sh.rustup.rs | sh -s -- -y --quiet >/dev/null 2>&1 |
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
| /** | |
| * Proof-of-Humanity Bypass — v1.0.0 | |
| * ================================== | |
| * Demonstrates that ANY client-side "proof of human authorship" system | |
| * can be defeated because the attacker controls the execution environment. | |
| * | |
| * Author: David Condrey · WritersLogic · writerslogic.com | |
| * License: MIT | |
| * | |
| * ┌──────────────────────────────────────────────────────────────────┐ |
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
| repetitivephrases() { | |
| recurse=0; minw=3; maxw=20; limit=500; incl_csv=""; excl_csv=""; allfiles=0; mincount=2; single_file=""; internal_check=0 | |
| OPTIND=1 | |
| while getopts "rm:M:n:E:X:Ac:f:h" opt; do | |
| case "$opt" in | |
| r) recurse=1 ;; | |
| m) minw=$OPTARG ;; | |
| M) maxw=$OPTARG ;; | |
| n) limit=$OPTARG ;; | |
| E) incl_csv=$OPTARG ;; |
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 struct | |
| import re | |
| from collections import Counter | |
| class DatPatterns: | |
| def __init__(self, filepath): | |
| self.filepath = filepath | |
| self.content = None | |
| def read_file(self): |
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
| window.frames.document.querySelector('video').playbackRate=3; |
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
| """ | |
| OpenAI API Script | |
| ================= | |
| This script allows you to interact with OpenAI's GPT-3.5 Turbo model. It appends a given first line to a text file, | |
| then repeatedly queries OpenAI's API based on the last line in the text file and appends the response to the same file. | |
| Requirements: | |
| ------------- | |
| - OpenAI Python package: Install it using `pip install openai`. |
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
| #!/bin/bash | |
| version=$(curl -s https://portswigger.net/burp/releases | grep "Professional / Community" | head -n1 | grep -E "[0-9\.]+" -o) | |
| if [[ -d ~/Applications/BurpSuite.app ]]; then | |
| local_version=$(cat ~/Applications/BurpSuite.app/Contents/Resources/version.txt) | |
| if [[ "$version" == "$local_version" ]]; then | |
| echo "Latest version is $version - which is the same as the local" | |
| exit 1 | |
| fi |
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 copy | |
| import fractions | |
| def number_of_transients(matrix): | |
| """Get number of transients states. | |
| Assume absorbing states follow transient states | |
| without interlieveing.""" |
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
| # Install Command-line tools as dependency for Homebrew | |
| xcode-select --install # Sets the development directory path to /Library/Developer/CommandLineTools | |
| # Install Homebrew | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| # Install Mas (command-line interface for Mac App Store) | |
| brew install mas | |
| # Search for Xcode showing only the first 5 results | |
| mas search xcode | head -5 |
NewerOlder