Skip to content

Instantly share code, notes, and snippets.

@agokrani
agokrani / claude-code-prompt.txt
Last active April 26, 2026 08:11
Claude Code System Prompt
'system':
[
{
'type': 'text',
'text': "You are Claude Code, Anthropic's official CLI for Claude.",
'cache_control': {'type': 'ephemeral'}
},
{
'type': 'text',
'text': 'You are an interactive CLI tool that helps users with software engineering tasks.
@witnessmenow
witnessmenow / MAtrixHelloServer.ino
Created March 20, 2023 12:18
A proof that Matrix and Webserver can work in harmony
#include <WiFi.h>
#include <WiFiClient.h>
#include <WebServer.h>
#include <ESPmDNS.h>
// ----------------------------
// Additional Libraries - each one of these will need to be installed.
// ----------------------------
#include <ESP32-HUB75-MatrixPanel-I2S-DMA.h>
@wildstray
wildstray / qgenie_telnet.pl
Last active April 21, 2026 23:45
QNAP QG-103N "QGenie" hack: remote execution of telnetd ;-) It seems that QGenie firmware was originally something other (router?) from AXIMCom. Its firmware (up to last version available, 3.2.2) is really insecure: no privilege separation, no input validation neither user authentication for CGI scripts.
#!/usr/bin/perl
use strict;
use warnings;
use LWP::UserAgent;
use HTTP::Request::Common qw(GET POST);
my ($nas_ip) = @ARGV;
die "$0 <QGenie_IP_Address>\n" if (not defined $nas_ip);