Skip to content

Instantly share code, notes, and snippets.

@Trenly
Trenly / README.md
Last active September 5, 2025 03:28
Install Winget to the Windows Sandbox Base Image

This powershell script modifies the Base Image, or the Virtual Hard Disk, which the Windows Sandbox launches upon startup. It will copy the required files to the sandbox and add a registry key which will install them upon startup. By default the script will install the latest stable release of Winget. You can specify to use the latest pre-release with the -PreRelease switch.

When a new version of Winget is released, run this script again to update the installation in the sandbox to the latest version

@straker
straker / README.md
Last active March 1, 2026 11:26
Basic Bust-a-Move / Puzzle Bobble / Bubble Shooter HTML and JavaScript Game

ICE Out; Abolish ICE

Basic Bust-a-Move / Puzzle Bobble / Bubble Shooter HTML and JavaScript Game

This is a basic implementation of the game Bust-a-Move / Puzzle Bobble / Bubble Shooter, but it's missing a few things intentionally and they're left as further exploration for the reader.

Further Exploration

@Mluckydwyer
Mluckydwyer / opengl-in-wsl.md
Last active December 24, 2025 19:51
Install OpenGL on Ubuntu in WSL

How to Install OpenGL in Ubuntu in WSL2

These steps have been tested on Windows 10 with WSL2 running Ubuntu.

1. Dependencies

First install the dependencies:

apt install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev

There are more than we need, but also include GLut and Glu libraries to link aginst during compilation for application development (these can be removed if that functionality is not required).

@marie-bnl
marie-bnl / ventoy.json
Last active April 2, 2025 17:26
A complete as possible list of menu_class icons for Ventoy
{
"menu_class": [
{
"key": "arch",
"class": "arch"
},
{
"key": "arcolinux",
"class": "arcolinux"
},
@CaptainHandyman
CaptainHandyman / main.cpp
Created June 9, 2020 12:48
C++, SDL2, OpenGL - Texture example
#include <SDL2/SDL_image.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <string>
using namespace std;
SDL_Window *window;
SDL_Event event;
SDL_Surface *texture;
@jelovac
jelovac / README.md
Last active February 20, 2026 22:18
Ubuntu Mate 20.04 XRDP setup

Ubuntu Mate 20.04 XRDP setup

Documenting XRDP setup which worked for me on Ubuntu Mate 20.04.

Some parts are taken from: http://c-nergy.be/blog/?p=14093.

Install xrdp

sudo apt install xrdp
@matthewearl
matthewearl / smblevextract.py
Last active February 21, 2025 03:24
Super Mario Bros Level Extractor
#!/usr/bin/env python3
#
# Copyright (c) 2018 Matthew Earl
#
# 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:
@wblondel
wblondel / graph.sh
Last active September 18, 2019 14:31 — forked from nicolasazrak/README.md
Graph process memory
#!/bin/sh
# https://stackoverflow.com/questions/7998302/graphing-a-processs-memory-usage
# Usage ./graph.sh <pid>
# It requires having gnuplot installed
# trap ctrl-c and call ctrl_c()
trap ctrl_c INT
LOG=$(mktemp)
@sidneys
sidneys / youtube_format_code_itag_list.md
Created January 20, 2018 11:12
YouTube video stream format codes itags

YouTube video stream format codes

Comprehensive list of YouTube format code itags

itag Code Container Content Resolution Bitrate Range VR / 3D
5 flv audio/video 240p - - -
6 flv audio/video 270p - - -
17 3gp audio/video 144p - - -
18 mp4 audio/video 360p - - -
22 mp4 audio/video 720p - - -
@bolry
bolry / kkloepper_fav.cpp
Last active June 14, 2022 18:21
C++11 Stopwatch
class Stopwatch {
using clock = std::chrono::high_resolution_clock;
bool is_running() const { return stop_time_ == clock::time_point::min(); }
clock::time_point end_time() const { return is_running() ? clock::now() : stop_time_; }
clock::time_point begin_time_{clock::now()}, stop_time_{clock::time_point::min()};
public:
void stop() { if (is_running()) stop_time_ = clock::now(); }
clock::duration elapsed() const { return end_time() - begin_time_; }
};