Skip to content

Instantly share code, notes, and snippets.

import os
from google import genai
from google.genai import types
client = genai.Client(api_key=os.getenv("GEMINI_API_KEY","xxx"))
# Repalce with the youtube url you want to analyze
youtube_url = "https://www.youtube.com/watch?v=RDOMKIw1aF4"
# Prompt to analyze and summarize the Youtube Video
@renschni
renschni / Manus_report.md
Last active April 23, 2025 07:06
In-depth technical investigation into the Manus AI agent, focusing on its architecture, tool orchestration, and autonomous capabilities.

I wrote an in-depth research prompt to conduct a GPT-Deep-Research on the Manus topic, seeking to replicate it with currently available open source tools. This is the result:

TLDR: Manus AI Agent Report

Manus is an autonomous AI agent built as a wrapper around foundation models (primarily Claude 3.5/3.7 and Alibaba's Qwen). It operates in a cloud-based virtual computing environment with full access to tools like web browsers, shell commands, and code execution. The system's key innovation is using executable Python code as its action mechanism ("CodeAct" approach), allowing it to perform complex operations autonomously. The architecture consists of an iterative agent loop (analyze → plan → execute → observe), with specialized modules for planning, knowledge retrieval, and memory management. Manus uses file-based memory to track progress and store information across operations. The system can be replicated using open-source components including CodeActAgent (a fine-tuned Mistral model), Docker for sandbox

@jlia0
jlia0 / agent loop
Last active April 23, 2025 11:59
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@taviso
taviso / .Xresources
Last active February 1, 2021 10:43
Enable Xft support in XTerm Menus
! Set the default XTerm UI font (menus, toolbar, etc)
XTerm*XftFont: Courier:size=10:antialias=true:style=Regular
! All my resources are available here (I disable the Xaw3D effect, I think it looks a bit dated!)
! https://gist.github.com/taviso/a4543b1752fba55017e8fcc2fe052c0a
! It looks like this: https://imgur.com/a/m2PGuuz
!
@65c22
65c22 / tuto_atmosphere_fr.md
Last active February 1, 2025 17:49
Tutoriel - Installer Atmosphère sur votre Nintendo Switch

Tutoriel - Comprendre et utiliser le CFW Atmosphère sur Nintendo Switch (+bonus)

Atmosphère est un CFW (Custom FirmWare - Logiciel modifié) opensource avec un développement très active. Son nom n'a pas été choisi par hazard, effet les developpeurs ont découpés le code en plusieurs couches (comme celle de l'atmosphère), vous n'allez pas tout comprendre mais vous allez pouvoir retenir les quelques features les plus importantes pour une utilisation lambda.

Les couches d'Atmosphère

  • Fusée - le custom bootloader, c'est la première couche lors de l'amorçage du CFW, elle permet le chargement des fichiers KIPs, le chargement d'un kernel personalisé... La configuration de ce composant se situe dans le fichier atmosphere/BCT.ini

  • Exosphère - le custom secure monitor, c'est une réplimentation complète de la TrustZone du firmware de la Switch, permettant la récuperation d'une multitude d'informations pour les Homebrews par exemple.

@haproxytechblog
haproxytechblog / blog20181127-01.cfg
Last active January 24, 2024 13:23
Bot Protection with HAProxy
backend per_ip_and_url_rates
stick-table type binary len 8 size 1m expire 24h store http_req_rate(24h)
backend per_ip_rates
stick-table type ip size 1m expire 24h store gpc0,gpc0_rate(30s)
@avishayp
avishayp / Dockerfile
Created September 25, 2018 19:02
Add non-root user for alpine linux
# non root user example for alpine
#
# usage:
# $ docker build --build-arg "USER=someuser" --tag test .
# $ docker run --rm test
FROM alpine
ARG USER=default
ENV HOME /home/$USER
@paolocarrasco
paolocarrasco / README.md
Last active April 7, 2025 22:13
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

error: gpg failed to sign the data
fatal: failed to write commit object

Debug

@secfigo
secfigo / gist:ff5910b2965fbbea5bc96564a944e62c
Created May 27, 2018 15:07
Gitlab runner registration with extra-hosts for both docker and shell executor
sudo gitlab-runner register \
--non-interactive \
--url "https://gitlab.local/" \
--registration-token "xJWfniGqvSeVyKc3vaQx" \
--executor "docker" \
--docker-image ubuntu:16.04 \
--description "docker-runner" \
--tag-list "docker,aws" \
--run-untagged \
--docker-extra-hosts "gitlab.local:10.0.1.15" \
@acobaugh
acobaugh / git-crypt-list-keys.sh
Created September 29, 2017 15:23
List git-crypt gpg keys
for key in .git-crypt/keys/default/0/* ; do gpg -k $(echo $(basename $key) | sed -e 's/.gpg//') ; done ;