Skip to content

Instantly share code, notes, and snippets.

View AvasDream's full-sized avatar
🎯
Focusing

AvasDream

🎯
Focusing
View GitHub Profile
@AvasDream
AvasDream / nutrition-mcp-instructions.md
Last active October 20, 2025 18:27
Agent instructions to create mcp server

Agent Instructions: Nutritional Value MCP Server Setup

This guide will help you create a complete MCP (Model Context Protocol) server that provides nutritional information from the USDA FoodData Central API.

IMPORTANT

Explain what you are going to implement to the user in a way that he is able to follow you. Adjust your language to the level of technical expertise the user has based on the available conversation history. If no history or memories are available ask the user before starting to explain.

Project Overview

@AvasDream
AvasDream / readme.md
Created October 9, 2024 07:39
Local Chatgpt setup

Local ChatGPT Setup with LLaMA 3.2

This guide helps you set up a local instance of ChatGPT with LLaMA 3.2 for macOS or tablet access.

Requirements

  1. Docker is installed on your machine.
  2. Ollama is installed.

Installation Steps

echo 'shopt -s histappend
export PROMPT_COMMAND="history -a; history -n"
export HISTFILESIZE=-1
export HISTSIZE=-1
export HISTTIMEFORMAT="%F %T "' >> /root/.bashrc
@AvasDream
AvasDream / qrcodeimageurl.md
Created October 8, 2023 14:23
Flutterflow generate and Display QR Code Image URL / Copy & Paste

generateQRCode custom action

// Automatic FlutterFlow imports
import '/backend/backend.dart';
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/actions/index.dart'; // Imports other custom actions
import '/flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
@AvasDream
AvasDream / qrcode.md
Created October 8, 2023 13:33
Flutterflow QRCode Custom Widget / Copy & Paste

Dependencies:

qr_flutter: ^4.0.0

Code:

// Automatic FlutterFlow imports
@AvasDream
AvasDream / react-confetti-nextjs.md
Created December 14, 2022 11:25
React Confetti in Nextjs
import { Box, Center, Text } from "@chakra-ui/react";
import { useEffect, useState } from "react";
import ApplicationForm from "../components/application/ApplicationForm";
import Confetti from "react-confetti";

export default function Application() {
 const [dimensions, setDimensions] = useState({
@AvasDream
AvasDream / my-tmux-config.sh
Created November 6, 2022 12:54
Setup tmux.
#!/usr/bin/env bash
sudo apt install -y tmux
echo '#set prefix
set -g prefix C-a
bind C-a send-prefix
unbind C-b
set -g history-limit 100000
set -g allow-rename off
@AvasDream
AvasDream / gatsby-hydration-issue.md
Created February 9, 2022 15:08
Gatsby hydration issue information

Information

For later reference this may be helpful to future me and some other people. The Gatsby hydration issue: Styled components do not work on the initial page load or other strange things are happening in the production build but not in dev.

Resources:

# will spray only users that currently have 0 bad password attempts
# dependency - powerview
function Get-BadPasswordCount {
param(
$username = "username",
$domain = "offense.local"
)
$pdc = (get-netdomain -domain $domain).PdcRoleOwner
$badPwdCount = (Get-NetUser $username -Domain $domain -DomainController $pdc.name).badpwdcount
@AvasDream
AvasDream / preview.md
Last active September 7, 2022 20:59
Config file usage preview

Module options

single-hardcoded.yaml

Command:

root@2badad6374c1:/minerva# minerva squad-execute -m definitions/execution/single-hardcoded.yaml -p marion
[+] Executed command 'echo hello $(date) && echo world' on marion7