Skip to content

Instantly share code, notes, and snippets.

View cywf's full-sized avatar
:shipit:
Tinkering

Kylo P cywf

:shipit:
Tinkering
View GitHub Profile
@cywf
cywf / memgpt.md
Created October 20, 2023 20:53
This article delves into MemGPT, a novel system developed by researchers at UC Berkeley to address the limited context window issue prevalent in Large Language Models (LLMs). By drawing inspiration from traditional operating system memory management, MemGPT introduces a hierarchical memory architecture allowing LLMs to handle extended contexts e…

MemGPT: A Leap Towards Unbounded Context in Large Language Models

Introduction

In the realm of artificial intelligence, Large Language Models (LLMs) like GPT-3 have been groundbreaking in processing and generating human-like text. However, their prowess is hindered by the fixed context window—the maximum number of tokens they can process at a time. This limitation curtails their capability in handling long-term reasoning or memory-centric tasks such as analyzing extensive documents or maintaining coherent, multi-session conversations. MemGPT emerges as a beacon of advancement in overcoming these constraints, introducing a memory management system inspired by traditional operating systems (OS) to LLMs.

Background

MemGPT, developed by researchers at UC Berkeley, is engineered to manage the memory of LLMs efficiently, thereby extending the context window beyond its inherent limitations. The core inspiration for MemGPT stems from the hierarchical memory systems utilized in conventional operating syste

@cywf
cywf / privacy-protection.md
Created October 13, 2023 21:31
200+ Ways to Protect Your Privacy

Protecting Your Offline Privacy - at Home, in Public, and Everywhere In-Between

  1. Hang On to Your Privacy by "The Shred"
  2. Shut off the Junk Mail Data Siphon
  3. Watch out for falsely requested personal data via phone
  4. Protect your payment details when you order delivery food
  5. Don't fax private documents
  6. Lock up your personal private documents
  7. Only carry the necessities
  8. Keep your personal items close (and your personal data closer)
@cywf
cywf / prompt-engineering.md
Created September 28, 2023 07:05
Mastering Prompt Engineering: A Deep Dive into Language Model Mechanics

Introduction

Prompt Engineering is a burgeoning field that sits at the crossroads of Natural Language Processing (NLP), Machine Learning (ML), and Human-Computer Interaction. It's about crafting the right prompts to elicit desired responses from Language Models (LMs). This article embarks on an exploration into the three core LLM (Large Language Model) concepts, journeying through the latent and emergent properties of language models, all under the illuminating light of Bloom's Taxonomy.

3 Fundamental LLM Concepts

Reductive Operations

Reductive operations are about condensing information. They take a large amount of text and produce a smaller, more manageable output, ensuring the essence remains intact.

  • Summarization: Condensing information while retaining the core message.
@cywf
cywf / synced-htb-writeup.md
Created September 10, 2023 04:39
HackTheBox Write-up: Synced

Machine Details:

  • Machine Name: Synced
  • IP Address: 10.129.239.186
  • User: cywf

What I Did:

  1. NMAP Scan: I initiated the exploration with an NMAP scan to identify open ports and services on the target machine.
@cywf
cywf / mongod-htb-writeup.md
Created September 10, 2023 03:41
HackTheBox Write-up: MonGod

Machine Details:

  • Machine Name: MonGod
  • IP Address: 10.129.60.233
  • User: cywf

What I Did:

1. NMAP Scan: I started by running an NMAP scan to identify open ports and services running on the target machine.

@cywf
cywf / integrative-learning.md
Created September 6, 2023 04:05
An exploration into Integrative Learning, delving into the brain's mechanics, the significance of retrieval, the art of metacognition, and strategies for effective learning. This article provides insights into harnessing higher-order thinking and the importance of relevance in the learning process.

Integrative Learning: A Deep Dive

In the realm of learning, a pressing question often arises: Does the learning process need to be optimized for each individual, or is there a standardized ideal path? This article delves into the intricacies of integrative learning, drawing from key concepts such as Syntopical reading and Metacognition.

Understanding the Brain's Learning Mechanism

To truly harness the power of our brain, we must first understand its mechanics. Two primary steps can guide us:

  1. Identify the learning tasks we frequently engage in.
  2. Map out the learning process.
@cywf
cywf / satsec.md
Created August 7, 2023 17:09
Deep Dive into the Digital Underworld: A technical exploration of Emotet, DarkGate, and LokiBot. This gist breaks down the intricate workings of these notorious malware, from their infection chains to their evasion techniques. Packed with pseudo-code examples and witty analogies, it's a must-read for anyone looking to understand the ever-evolvin…

🛡️ Satellite Security Meets the Digital Underworld: A Deep Dive into Emotet, DarkGate, and LokiBot 🌌

Hey there, fellow code ninjas and cyber samurais! 🥷 Ever wondered what happens when the vastness of space collides with the dark alleys of the digital underworld? Let's embark on a journey through the matrix of malware, where Emotet haunts like a ghost ship, DarkGate emerges from the shadows, and LokiBot disguises its true intentions. Ready to dive deep? Let's decode! 🚀🔍

DarkGate: The Swiss Army Knife of Malware 🗡️🔧

# Pseudo-code to demonstrate DarkGate's multi-functionality

if environment_detected("AV"):
@cywf
cywf / ads-bc.md
Created August 5, 2023 17:45
Dive into the world of aviation technology with a focus on ADS-B and ADS-C. From the basics for beginners to the intricate details for advanced readers, this article breaks down these systems' workings and their security implications. Using relatable analogies and emojis, we explore the importance of safeguarding our skies. Whether you're new to…

🌱 For the Beginner Reader: "What's ADS-B and ADS-C?" ADS-B stands for Automatic Dependent Surveillance-Broadcast. Imagine it like a car's GPS system, but for airplanes. 🚗✈️ Every plane equipped with ADS-B sends out signals about its location, speed, and other details. It's like a plane saying, "Hey, I'm here!" to everyone around it.

ADS-C stands for Automatic Dependent Surveillance-Contract. Think of it as a special agreement between the plane and the air traffic control tower. The plane promises to send regular updates about its position. It's like setting a phone alarm to remind you to call your friend every hour. 📞⏰

Security Perspective: Just like you wouldn't want everyone to know your phone's location all the time, it's essential to ensure that the plane's location data is safe and secure. After all, we don't want any bad guys misusing this information. 🕵️‍♂️🔒

🌲 For the Intermediate Reader: "How Do These Systems Work?" ADS-B works by broadcasting information about the aircraft to ground stations and o

@cywf
cywf / rhl_sat-6_ansible.md
Created July 18, 2023 16:50
Exploring Red Hat Satellite 6.13 & Ansible: Setting Up Your Sandbox

Hello fellow tech enthusiasts,

While navigating the endlessly vast seas of tech, I recently found myself on the shores of Red Hat Satellite 6.13 and Ansible. Rather than just dipping my toes in, I dove head-first and boy, am I enjoying the swim! These platforms are not just cool to work with but are also key players in the DevOps game.

So, enough with the chatter! Let's get our hands dirty and create a test environment. By the end of this guide, you will have a fully-functioning sandbox to test and play with Red Hat Satellite and Ansible.

First off, we need to install Red Hat Satellite. I'm using a RHEL 7 server. Remember to replace satellite.example.com with your actual hostname. (And if you're wondering why I'm not using RHEL 8, well, it's a story for another time!)

# Update your system first
@cywf
cywf / deep_learning.md
Created July 18, 2023 03:03
Deep Learning Demystified: A Witty Crash Course 🚀 - Dive into the spicy world of Deep Learning with this light-hearted, sarcastically witty guide. Includes a simple Python example using Keras and a bash script to set up your dev environment. Perfect for those who love a good tech laugh while learning! 🌶️🧠🎢

Deep Learning: A Crash Course 🚀

Hey there, tech enthusiast! 👋 Ever wondered what's cooking in the world of AI? Well, it's a dish called Deep Learning, and it's hotter than a habanero right now! 🌶️

What's the Big Deal? 🤷‍♂️

Deep Learning is a subset of machine learning, which is essentially a neural network with three or more layers. These layers are like the layers of an onion, but instead of making you cry, they make you smarter! 🧠

The Nitty-Gritty 👨‍💻