Skip to content

Instantly share code, notes, and snippets.

View arkenidar's full-sized avatar
🎯
focusing on : life

Dario Cangialosi a.k.a Arkenidar arkenidar

🎯
focusing on : life
View GitHub Profile
@Fuwn
Fuwn / README.md
Last active July 3, 2025 20:13
Windows XP All Editions Universal Product Keys Collection.

Windows XP Logo

Although Microsoft does not support Windows XP updates any more, I'm sure there are still many users using it due to their personal habits or job demands. Therefore, XP's product keys may still be necessary. Here lies the most comprehensive list of Windows XP product keys.

The following CD keys are official and original from Microsoft, primarily used for Windows XP Professional Service Pack 2/3 VOL/VLK system images, which are among the easiest to find on the Internet.

Windows XP Setup

Windows XP Professional 32-bit Edition

@arkenidar
arkenidar / php_mysql_demo.php
Last active January 20, 2019 17:00
php plus mysql demo
<!doctype html>
<!-- submit text -->
<form method="get"> <input name="text"> </form>
<?php
require 'credentials.php'; $dbname='testdb';
$dbh=initpdo($user,$password,$dbname);
@gcatlin
gcatlin / sdl-metal-example.m
Last active February 24, 2025 15:11
Minimal C SDL2 Metal example
//
// cc sdl-metal-example.m `sdl2-config --cflags --libs` -framework Metal -framework QuartzCore && ./a.out
//
#include <SDL.h>
#import <Metal/Metal.h>
#import <QuartzCore/CAMetalLayer.h>
int main (int argc, char *args[])
{
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "metal");
@arkenidar
arkenidar / primes_as_sum_of_primes.js
Last active July 23, 2018 11:26
// algorithm for sums of non-composites (see the concept of composite number) errata corrige: non-composites not primes
// @ repl.it: https://repl.it/@dariocangialosi/primesassumofprimesjs
// @ gist.github.com: https://gist.github.com/arkenidar/91198b654b119c97284588d6451117c6/
////////////////////////////////////////
primeSum()
// the algorithm for: "a prime as sum of primes"
function primeSumPrimes(limit=NaN){
var primes=[]
for(let n of primesGenerator(0,limit+1)){
@Acry
Acry / SDL_Demos.md
Last active August 22, 2022 21:52
My Github SDL2 Repo's
@whiler
whiler / echo.lua
Created January 4, 2017 10:14
Simple TCP Echo Server in Lua
local signal = require("posix.signal")
local socket = require("socket")
local string = require("string")
-- create a TCP socket and bind it to the local host, at any port
local server = assert(socket.bind("127.0.0.1", 0))
local ip, port = server:getsockname()
print(string.format("telnet %s %s", ip, port))
@jtallant
jtallant / setting-up-sinatra-with-active-record.md
Last active March 25, 2024 13:26
Setting up Sinatra with Active Record

Setting up Sinatra Project

create an empty project and add a Gemfile

cd ~/Desktop
mkdir project-name
cd project-name
touch Gemfile
@thorsummoner
thorsummoner / python-sdl2-opengl.py
Last active October 12, 2022 10:53
Simple python app setting up SDL2 & OpenGL.
#!/usr/bin/env python
# The MIT License (MIT)
#
# Copyright (c) 2014 Richard Hawkins
#
# 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
@fschr
fschr / main.cpp
Last active March 14, 2025 02:31
SDL2 Hello World | SDL2 Getting Started | SDL | OpenGL
// SDL2 Hello, World!
// This should display a white screen for 2 seconds
// compile with: clang++ main.cpp -o hello_sdl2 -lSDL2
// run with: ./hello_sdl2
#include <SDL2/SDL.h>
#include <stdio.h>
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
@matiasinsaurralde
matiasinsaurralde / Makefile
Created August 24, 2016 11:39 — forked from huxuan/Makefile
Hello World for LuaJIT FFI/C++ binding.
all: lib run
lib:
g++ -shared -fPIC -o libhello.so libhello.cpp hello.cpp
run:
luajit main.lua
clean:
rm *.so