Skip to content

Instantly share code, notes, and snippets.

View akarapatakis's full-sized avatar

Karapatakis Angelos akarapatakis

View GitHub Profile
@Aldaviva
Aldaviva / wmp_h.265_hevc.md
Last active July 30, 2025 02:58
Play H.265/HEVC videos in Windows Media Player (Classic) without a third-party codec pack or media player. Tested using Microsoft.HEVCVideoExtension_2.0.60091.0_x64__8wekyb3d8bbwe with WMP 12.0.20348.1311 on Windows Server 2022 21H2 and 12.0.22621.1105 on Windows 11 22H2.

Download

  1. Go to https://store.rg-adguard.net.
  2. Search for the HEVC Video Extensions from Device Manufacturer (Microsoft.HEVCVideoExtension) app by entering the following store URL into the search box and clicking the button.
    https://www.microsoft.com/en-us/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq
    
    • Do not use the normal HEVC Video Extensions app URL, because that can't play HEVC videos in Windows Media Player for some inscrutable reason.
  3. Download the AppxBundle file.
    • You may have to right click › Save Link As because the URL scheme is http, not https, if your browser is set to enforce HTTPS-only mode.
  • If it tries to save as a filename that's just a GUID, you may copy the correct .AppxBundle filename and save it as that instead.
@verNANDo57
verNANDo57 / 8GB_android-12_compilation-note
Created March 18, 2022 06:53
Workarounds for building Android 12 on 8GB RAM
Workarounds for building S on 8GB RAM environment:
1. At the start of the build:
[ 99% 138/139] /mnt/ssd/lineage/out/soong/.bootstrap/bin/soong_build /mnt/ssd/lineage/out/soong/build.ninja
This used to take around 30mins, after enabling zram now it takes around 30secs (thanks to @kdrag0n for the zram idea) which is on par with what happens in 16GB RAM building environments
sudo apt install zram-config for installing zram-config package
sudo nano /etc/fstab and add a # in front of the swap disk if you have one and then reboot
After booting cat /proc/swaps to check if zram is enabled or not
@mvaisakh
mvaisakh / Bringup.md
Last active July 24, 2025 07:00
An Android Device Tree Bringup Guide

A small Device Tree Bringup Guide

Introduction

So, you guys might be wondering, how do these "Developers" get your favourite Custom roms, such as LineageOS, Paranoid Android etc., to their own devices. Well I'm here to Guide you on how to do it, specifically on how to bringup or make your own device tree from scratch or adapting.

Gist of this Guide: This is for people with genuine interest in Android OS porting/development. After going through this guide, you should be able to do a total device tree bringup on your own.

Prerequisite: Certain requirements are to be met before you start with this amazing journey.

@bkanhu
bkanhu / dart.json
Last active March 20, 2025 19:23
Flutter snippets for making stateful and stateless widgets. Open Visual Studio Code press "Control+Shift+P", Search for Snippet, then choose dart. and paste this code to that "dart.json" file and save it.
{
"stateless": {
"prefix": "stless",
"body": [
"class $1 extends StatelessWidget {",
"\t@override",
"\tWidget build(BuildContext context) {",
"\t\treturn Container(",
"\t\t\t$2",
"\t\t);",
@auyongcheemeng
auyongcheemeng / ffmp-flac-alac.bat
Last active March 24, 2025 16:59
ffmpeg flac to alac conversion batch script (windows)
:::: ffmpeg script for converting FLAC to ALAC
:: ffmpeg windows binary is required (https://ffmpeg.org)
:: Script creates the folders ['flac' and 'alac'] on first run.
:: Copy the associated files to the appropriate folder [ie. '.flac' files to 'flac' folder]
:: and run the
IF NOT EXIST alac\NUL mkdir alac
@legnaleurc
legnaleurc / telnet_client.c
Last active December 4, 2024 10:12
Simple Telnet Client
/* http://l3net.wordpress.com/2012/12/09/a-simple-telnet-client/ */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <arpa/inet.h>
#include <termios.h>
#include <fcntl.h>