Skip to content

Instantly share code, notes, and snippets.

View apollon's full-sized avatar
👨‍💻
git push

Kostiantyn Pinchuk apollon

👨‍💻
git push
View GitHub Profile

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@apollon
apollon / find_venv.sh
Last active January 11, 2026 12:58
Look for python's venv in top folders
#!/bin/bash
# Set the starting directory
#start_dir=$(readlink -f "$0")
start_dir=$(pwd)
# Get the absolute path to the user's home directory
home_dir="$HOME"
# Iterate from start_dir to user's home directory
@apollon
apollon / mail_server.sh
Last active September 23, 2024 15:43
Mail server
python3 -m smtpd -c DebuggingServer -n 0.0.0.0:25
# list processes which is using port:
# netstat -pantu
@apollon
apollon / restart coreaudio daemon
Last active January 27, 2021 14:37 — forked from felipecsl/restart coreaudio daemon
Restart Mac OS X coreaudio daemon. Useful if you cannot change the audio output device to Airplay.
sudo kill -9 `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
@apollon
apollon / encryption.md
Last active January 21, 2025 11:17
File [un]encryption

File [un]encryption

Create private key & public certificate

MacOS

export KeyName=$(openssl rand -hex 6) && KeyPWD=$(uuidgen) && openssl req -x509 -days 1 -newkey rsa:4096 -passout pass:$KeyPWD -sha384 -subj "/CN=$KeyName" -keyout $KeyName -out public.crt

Windows

for /f %i in ('openssl rand -hex 6') do @set KeyName=%i & for /f %i in ('openssl rand -hex 16') do @set KeyPWD=%i & call openssl req -x509 -days 1 -newkey rsa:4096 -passout pass:%^KeyPWD% -sha384 -subj "/CN=%^KeyName%" -keyout %^KeyName% -out public.crt

Encryption

@apollon
apollon / [un]encryption.md
Last active October 12, 2020 20:04
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt:

@apollon
apollon / macos_install_update.sh
Created July 22, 2020 10:03
Terminal command to install all available updates on MacOx
#!/bin/bash
sudo softwareupdate -i -a --reboot
#!/bin/bash
IFS=$'\n'
t_interfaces=( $(networksetup -listallnetworkservices | grep "Ethernet Adaptor") )
count=${#t_interfaces[*]}
#delete all interfaces except last one
for ((index = 0; index < count-1; index++))
do
interface=${t_interfaces[index]}
@apollon
apollon / URLRequest+MultipartFormData.swift
Last active May 5, 2020 19:29
Swift: URLRequest > uploadFormData
extension URLRequest {
public enum MultipartFormDataType {
case json
case stream
}
public enum MultipartFormDataEncodingError: Error {
case characterSetName
case name(String)
case value(name: String)
@apollon
apollon / ls-size.sh
Last active September 27, 2020 19:44
Size for all subfolders
#!/bin/bash
du -d 1 -h . | sort -nr | head
du -sm * | sort -nr