Skip to content

Instantly share code, notes, and snippets.

View bluetoothfx's full-sized avatar

Syed Refat Al Abrar bluetoothfx

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"
@willccbb
willccbb / grpo_demo.py
Last active October 24, 2025 16:15
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
"""
citation:
@misc{brown2025grpodemo,
title={Granular Format Rewards for Eliciting Mathematical Reasoning Capabilities in Small Language Models},
author={Brown, William},
@Meldiron
Meldiron / backup.sh
Last active August 19, 2025 07:29
Backup and Restore Appwrite, the lazy way 🐌
# Make sure to stop Appwrite before this backup,
# and make sure you have enough space on the machine.
# After backing up, make sure there is a file in 'backups/backup-___.tar.gz'.
# Also please check size of this file, it should be at least 5kb, even for small instances.
docker run --rm \
-v appwrite_appwrite-mariadb:/backup/appwrite-mariadb \
-v appwrite_appwrite-redis:/backup/appwrite-redis \
-v appwrite_appwrite-cache:/backup/appwrite-cache \
public class SplashActivity extends AppCompatActivity
{
private static final int APP_PACKAGE_DOT_COUNT = 3; // number of dots present in package name
private static final String DUAL_APP_ID_999 = "999";
private static final char DOT = '.';
private void checkAppCloning()
{
String path = getFilesDir().getPath();
if (path.contains(DUAL_APP_ID_999))
@sonots
sonots / runs-on: ubuntu-latest.txt
Last active August 26, 2022 09:46
Environment Variables on Github Actions
GOROOT_1_11_X64=/usr/local/go1.11
ANDROID_HOME=/usr/local/lib/android/sdk
JAVA_HOME_11_X64=/usr/lib/jvm/zulu-11-azure-amd64
ImageVersion=20190930.2
LANG=C.UTF-8
INVOCATION_ID=029524e610de4329ac57a8f3e8b21281
JAVA_HOME_12_X64=/usr/lib/jvm/zulu-12-azure-amd64
ANDROID_SDK_ROOT=/usr/local/lib/android/sdk
RUNNER_TOOL_CACHE=/opt/hostedtoolcache
JAVA_HOME=/usr/lib/jvm/zulu-11-azure-amd64
@Mariovc
Mariovc / ImagePicker.java
Last active November 29, 2024 16:28
Utility for picking an image from Gallery/Camera with Android Intents
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.content.res.AssetFileDescriptor;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.media.ExifInterface;
@doneill
doneill / CbLiteCrud.java
Created February 9, 2015 00:54
Basic Couchbase Lite CRUD operations
final String TAG = "Hello-CouchBase";
Log.d(TAG, "Begin app");
// create a manager
Manager manager;
try{
manager = new Manager(new AndroidContext(this), Manager.DEFAULT_OPTIONS);
Log.d(TAG, "Manager created");
}catch (IOException e){
Log.e(TAG, "Cannot create Manager object");