Skip to content

Instantly share code, notes, and snippets.

View Alex313031's full-sized avatar

Alex F. Alex313031

View GitHub Profile
@Alex313031
Alex313031 / unistd.h
Created August 30, 2025 08:54 — forked from mbikovitsky/unistd.h
Windows unistd.h replacement
#ifndef _UNISTD_H
#define _UNISTD_H 1
/* This file intended to serve as a drop-in replacement for
* unistd.h on Windows.
* Please add functionality as neeeded.
* Original file from: http://stackoverflow.com/a/826027
*/
#include <stdlib.h>
@Alex313031
Alex313031 / chudnovsky.cpp
Created August 7, 2025 17:44 — forked from komasaru/chudnovsky.cpp
C++ source code to compute pi with Chudnovsky formula and Binary Splitting Algorithm using GMP libarary.
/***************************************************************
* Computing pi by Binary Splitting Algorithm with GMP libarary.
**************************************************************/
#include <cmath>
#include <iostream>
#include <fstream>
#include <gmpxx.h>
using namespace std;
@Alex313031
Alex313031 / keys.md
Created April 6, 2024 11:46 — forked from thepwrtank18/keys.md
Windows XP/2003 Product Keys

Windows XP/2003 Product Keys

These keys have been tested to work. These are a combination of keys from Chinese websites, trial keys inside ISO's, auto-activate keys in OEM ISO's, and directly from Microsoft's website, all aggregated for your convenience.

Usage

In order to use these keys, you need the right edition of Windows XP/2003. Not just Home/Pro/Enteprise/etc, whether it's a Retail, OEM or Volume version. There's a clear cut way to check this.

If you see this, you have a Retail copy.
image

@Alex313031
Alex313031 / smutnyleszek-themerc
Created February 29, 2024 19:12 — forked from magicznyleszek/smutnyleszek-themerc
Crunchbang Openbox theme
!! --------------------------------------------------
!! Theme: smutnyleszek
!! Description: Based on waldorf CrunchBang theme
!! Author: Leszek Pietrzak <smutnyleszek@gmail.com>
!! Web: http://leszekpietrzak.com
!! --------------------------------------------------
!! --------------------------------------------------
!! Color palette:
@Alex313031
Alex313031 / vdi-file-compacting.md
Created January 4, 2024 22:47
How to compact VirtualBox's VDI file size?

Source: StackOverflow

1. Run defrag in the guest (Windows only)

2. Nullify free space:

With a Linux Guest run this:

sudo dd if=/dev/zero | pv | sudo dd of=/bigemptyfile bs=4096k
sudo rm -rf /bigemptyfile