Skip to content

Instantly share code, notes, and snippets.

View pandruszkow's full-sized avatar

Piotr Andruszkow pandruszkow

View GitHub Profile
@MCastens
MCastens / gist:c9bafcc64247698d23c81534e336f196
Last active April 10, 2026 10:09
DEEP_AUDIT_RESULTS.json
═══════════════════════════════════════════════════════════════╗
║     DEEP AUDIT: NVIDIA NEMOTRON-3-NANO CLAIMS VALIDATION     ║
╚═══════════════════════════════════════════════════════════════╝
📊 TEST MATRIX:
   Questions: 9
   Configurations: 5
   Runs per config: 3
   Total tests: 135
@jun-lsh
jun-lsh / TEEs_and_the_Blockchain.md
Created July 30, 2024 13:21
A short writeup on what TEEs are and their potential applications (and non-applications) to blockchain projects.

What Exactly Are TEEs?

Before we can discuss the application of TEEs for blockchain related programs, we first have to establish what Trusted Execution Environments (TEEs) are.

At a high level, TEEs can be described as an isolated processing environment found on the CPU, a sort of separate secure area where whatever code and data enters remains confidential, where processes outside of a TEE cannot read or tamper with the data within it. These private regions of memory are known as enclaves.

By running code in this isolated, tamper-resistant processing environment, it "guarantees the authenticity of the executed code", where remote attestation can be provided to prove its trustworthiness to a third-party and untrusted code should not be able to interfere with the execution of a program within the TEE.

Ref: "Trusted Execution Environment: What It is, and What It is Not", Sabt et al.

Remote Attestation

@veekaybee
veekaybee / normcore-llm.md
Last active August 12, 2026 03:10
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@MrSimbax
MrSimbax / ffmpeg-compress.py
Last active November 8, 2024 10:33
A script to convert a video to a desired file size.
#!/usr/bin/env python
# A script to convert a video to a desired filesize.
# Example use case: 8 MB Discord upload limit
# NO WARRANTY
#
# Requirements:
# - Python 3
# - ffmpeg should be in PATH
# - ffmpeg-python
@tarruda
tarruda / etc-libvirt-qemu.conf
Created December 8, 2020 09:04
gpu-passthrough-debian-10.xml
# Necessary to prevent random host freeze. For more details, see:
# https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1849720/comments/65
seccomp_sandbox = 0
Rank Type Prefix/Suffix Length
1 Prefix my+ 2
2 Suffix +online 6
3 Prefix the+ 3
4 Suffix +web 3
5 Suffix +media 5
6 Prefix web+ 3
7 Suffix +world 5
8 Suffix +net 3
9 Prefix go+ 2
@ryan-blunden
ryan-blunden / reset_sourcegraph_admin_password.md
Last active February 6, 2025 07:27
Instructions for resetting the Sourcegraph admin password

Presuming you have access to the Sourcegraph Docker container and the container name is sourcegraph:

  1. Get the id for the admin account (should be 1 in most cases):
docker container exec sourcegraph psql -U postgres sourcegraph -c 'SELECT id, username, passwd FROM users'
  1. Set the $ID variable:
@reillysiemens
reillysiemens / signing-vbox-kernel-modules.md
Last active August 11, 2026 18:14
Signing VirtualBox Kernel Modules

Signing VirtualBox Kernel Modules

These are the steps I followed enable VirtualBox on my laptop without disabling UEFI Secure Boot. They're nearly identical to the process described on [Øyvind Stegard's blog][blog], save for a few key details. The images here are borrowed from the [Systemtap UEFI Secure Boot Wiki][systemtap].

  1. Install the VirtualBox package (this might be different for your platform).
    src='https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo'
@MrSimbax
MrSimbax / ffmpeg-cut.sh
Last active December 6, 2021 09:48
This script uses ffmpeg to cut a video without losing much quality
#!/bin/sh
# This script uses ffmpeg to cut a video without losing much quality
me=`basename "$0"`
# Check if necessary parameters were passed
if [ -z "$1" -o -z "$2" -o -z "$3" ]; then
echo "Usage: $me INPUT BEGIN END [OUTPUT=Dropbox]";
exit 0
fi
@sebble
sebble / stars.sh
Last active August 3, 2026 01:05
List all starred repositories of a GitHub user.
#!/bin/bash
USER=${1:-sebble}
STARS=$(curl -sI https://api.github.com/users/$USER/starred?per_page=1|egrep '^Link'|egrep -o 'page=[0-9]+'|tail -1|cut -c6-)
PAGES=$((658/100+1))
echo You have $STARS starred repositories.
echo