Skip to content

Instantly share code, notes, and snippets.

View ReneNyffenegger's full-sized avatar

Rene Nyffenegger ReneNyffenegger

View GitHub Profile
@ReneNyffenegger
ReneNyffenegger / grok-system-prompt.md
Last active March 13, 2026 00:15
The "complete, unmodified system prompt block", as per grok's own declaration

The current date is March 13, 2026.

Tools:

You use tools via function calls to help you solve questions. Make sure to use the following format for function calls, including the Do not escape any of the function call arguments. The arguments will be parsed as normal text.

You can use multiple tools in parallel by calling them together.

Available Tools:

@ReneNyffenegger
ReneNyffenegger / peb.c
Created March 21, 2021 19:50 — forked from Wack0/peb.c
Getting a pointer to the PEB in C, for every architecture that NT was ported to (where at least one build of the port was leaked/released)
// Gets a pointer to the PEB for x86, x64, ARM, ARM64, IA64, Alpha AXP, MIPS, and PowerPC.
// This relies on MS-compiler intrinsics.
// It has only been tested on x86/x64/ARMv7.
inline PEB* NtCurrentPeb() {
#ifdef _M_X64
return (PEB*)(__readgsqword(0x60));
#elif _M_IX86
return (PEB*)(__readfsdword(0x30));
@ReneNyffenegger
ReneNyffenegger / Create-Mdb.ps1
Created March 6, 2020 22:12 — forked from zippy1981/Create-Mdb.ps1
A powershell script that demonstrates using PInvoke to create an access database.
# Copyright (c) 2011 Justin Dearing <zippy1981@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in
@ReneNyffenegger
ReneNyffenegger / HttpClientApproach.cs
Created November 5, 2019 15:47 — forked from acamino/HttpClientApproach.cs
4 Ways to Parse a JSON API with C#
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Headers;
namespace HttpClientApproach
{
internal class Contributor
{
public string Login { get; set; }
@ReneNyffenegger
ReneNyffenegger / HttpClientApproach.cs
Created November 5, 2019 15:47 — forked from acamino/HttpClientApproach.cs
4 Ways to Parse a JSON API with C#
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Headers;
namespace HttpClientApproach
{
internal class Contributor
{
public string Login { get; set; }
msys2 vs msys vs msysgit
MinGW doesn't provide a linux-like environment, that is MSYS(2) and/or Cygwin
Cygwin is an attempt to create a complete UNIX/POSIX environment on Windows.
MinGW is a C/C++ compiler suite which allows you to create Windows executables - you only
need the normal MSVC runtimes, which are part of any normal Microsoft Windows installation.
MinGW provides headers and libraries so that GCC (a compiler suite,
not just a "unix/linux compiler") can be built and used against the Windows C runtime.
@ReneNyffenegger
ReneNyffenegger / gist:20d2ed058d86bdfaeae6
Created September 6, 2014 06:23
ftp download gz file and unzip it in one go
import zlib
from ftplib import FTP
def get_gz(ftp, ftp_filename, local_filename):
decomp = zlib.decompressobj(16+zlib.MAX_WBITS)
unzip = open (local_filename, 'wb')
def next_packet(data):
@ReneNyffenegger
ReneNyffenegger / FixedHeaderTableTest.html
Created March 16, 2012 18:01
Demonstration of nfluence of DOCTYPE
<!DOCTYPE>
<html>
<head>
<title>FixedHeaderTable Test</title>
<link href="https://raw.github.com/golovko/Fixed-Header-Table/master/css/defaultTheme.css" type="text/css" rel="stylesheet" media="screen" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/golovko/Fixed-Header-Table/master/jquery.fixedheadertable.js"></script>